-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(*): use scalar validator regex as pattern value
Signed-off-by: Jonathan Casey <[email protected]>
- Loading branch information
1 parent
5f410ab
commit a458152
Showing
2 changed files
with
36 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1706,7 +1706,8 @@ exports[`codegen #formats check we can convert all formats from namespace unvers | |
"description": "An instance of org.acme.hr.EmployeeDirectory", | ||
"type": "object", | ||
"propertyNames": { | ||
"type": "string" | ||
"type": "string", | ||
"pattern": "/\\\\d{3}-\\\\d{2}-\\\\{4}+/" | ||
}, | ||
"additionalProperties": { | ||
"$ref": "#/definitions/org.acme.hr.Employee" | ||
|
@@ -1720,7 +1721,8 @@ exports[`codegen #formats check we can convert all formats from namespace unvers | |
"description": "An instance of org.acme.hr.base.EmployeeTShirtSizes", | ||
"type": "object", | ||
"propertyNames": { | ||
"type": "string" | ||
"type": "string", | ||
"pattern": "/\\\\d{3}-\\\\d{2}-\\\\{4}+/" | ||
}, | ||
"additionalProperties": { | ||
"$ref": "#/definitions/org.acme.hr.TShirtSizeType" | ||
|
@@ -1751,7 +1753,8 @@ exports[`codegen #formats check we can convert all formats from namespace unvers | |
"type": "string" | ||
}, | ||
"additionalProperties": { | ||
"type": "SSN" | ||
"type": "SSN", | ||
"pattern": "/\\\\d{3}-\\\\d{2}-\\\\{4}+/" | ||
} | ||
} | ||
} | ||
|
@@ -2951,7 +2954,8 @@ exports[`codegen #formats check we can convert all formats from namespace unvers | |
"description": "An instance of org.acme.hr.EmployeeDirectory", | ||
"type": "object", | ||
"propertyNames": { | ||
"type": "string" | ||
"type": "string", | ||
"pattern": "/\\\\d{3}-\\\\d{2}-\\\\{4}+/" | ||
}, | ||
"additionalProperties": { | ||
"$ref": "#/definitions/org.acme.hr.Employee" | ||
|
@@ -2965,7 +2969,8 @@ exports[`codegen #formats check we can convert all formats from namespace unvers | |
"description": "An instance of org.acme.hr.base.EmployeeTShirtSizes", | ||
"type": "object", | ||
"propertyNames": { | ||
"type": "string" | ||
"type": "string", | ||
"pattern": "/\\\\d{3}-\\\\d{2}-\\\\{4}+/" | ||
}, | ||
"additionalProperties": { | ||
"$ref": "#/definitions/org.acme.hr.TShirtSizeType" | ||
|
@@ -2996,7 +3001,8 @@ exports[`codegen #formats check we can convert all formats from namespace unvers | |
"type": "string" | ||
}, | ||
"additionalProperties": { | ||
"type": "SSN" | ||
"type": "SSN", | ||
"pattern": "/\\\\d{3}-\\\\d{2}-\\\\{4}+/" | ||
} | ||
} | ||
} | ||
|
@@ -7506,7 +7512,8 @@ exports[`codegen #formats check we can convert all formats from namespace versio | |
"description": "An instance of [email protected]", | ||
"type": "object", | ||
"propertyNames": { | ||
"type": "string" | ||
"type": "string", | ||
"pattern": "/\\\\d{3}-\\\\d{2}-\\\\{4}+/" | ||
}, | ||
"additionalProperties": { | ||
"$ref": "#/definitions/[email protected]" | ||
|
@@ -7520,7 +7527,8 @@ exports[`codegen #formats check we can convert all formats from namespace versio | |
"description": "An instance of [email protected]", | ||
"type": "object", | ||
"propertyNames": { | ||
"type": "string" | ||
"type": "string", | ||
"pattern": "/\\\\d{3}-\\\\d{2}-\\\\{4}+/" | ||
}, | ||
"additionalProperties": { | ||
"$ref": "#/definitions/[email protected]" | ||
|
@@ -7551,7 +7559,8 @@ exports[`codegen #formats check we can convert all formats from namespace versio | |
"type": "string" | ||
}, | ||
"additionalProperties": { | ||
"type": "SSN" | ||
"type": "SSN", | ||
"pattern": "/\\\\d{3}-\\\\d{2}-\\\\{4}+/" | ||
} | ||
} | ||
} | ||
|
@@ -8767,7 +8776,8 @@ exports[`codegen #formats check we can convert all formats from namespace versio | |
"description": "An instance of [email protected]", | ||
"type": "object", | ||
"propertyNames": { | ||
"type": "string" | ||
"type": "string", | ||
"pattern": "/\\\\d{3}-\\\\d{2}-\\\\{4}+/" | ||
}, | ||
"additionalProperties": { | ||
"$ref": "#/definitions/[email protected]" | ||
|
@@ -8781,7 +8791,8 @@ exports[`codegen #formats check we can convert all formats from namespace versio | |
"description": "An instance of [email protected]", | ||
"type": "object", | ||
"propertyNames": { | ||
"type": "string" | ||
"type": "string", | ||
"pattern": "/\\\\d{3}-\\\\d{2}-\\\\{4}+/" | ||
}, | ||
"additionalProperties": { | ||
"$ref": "#/definitions/[email protected]" | ||
|
@@ -8812,7 +8823,8 @@ exports[`codegen #formats check we can convert all formats from namespace versio | |
"type": "string" | ||
}, | ||
"additionalProperties": { | ||
"type": "SSN" | ||
"type": "SSN", | ||
"pattern": "/\\\\d{3}-\\\\d{2}-\\\\{4}+/" | ||
} | ||
} | ||
} | ||
|