File tree Expand file tree Collapse file tree 1 file changed +1
-12
lines changed
Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -111,9 +111,7 @@ export const OperationTypeSchema = v.picklist([
111111/**
112112 * Validates OTP (6-digit code)
113113 */
114- const OtpSchema = v . optional (
115- v . pipe ( v . string ( ) , v . regex ( / ^ \d { 6 } $ / , 'OTP must be a 6-digit code' ) ) ,
116- )
114+ const OtpSchema = v . optional ( v . pipe ( v . string ( ) , v . regex ( / ^ \d { 6 } $ / , 'OTP must be a 6-digit code' ) ) )
117115
118116/**
119117 * Validates a hex token (like session tokens and operation IDs)
@@ -124,15 +122,6 @@ const HexTokenSchema = v.pipe(
124122 v . regex ( / ^ [ a - f 0 - 9 ] + $ / i, 'Invalid token format' ) ,
125123)
126124
127- /**
128- * Validates operation ID (16-char hex)
129- */
130- const OperationIdSchema = v . pipe (
131- v . string ( ) ,
132- v . nonEmpty ( 'Operation ID is required' ) ,
133- v . regex ( / ^ [ a - f 0 - 9 ] { 16 } $ / i, 'Invalid operation ID format' ) ,
134- )
135-
136125// ============================================================================
137126// Request Body Schemas
138127// ============================================================================
You can’t perform that action at this time.
0 commit comments