-
-
Save pastuhov/76c65d9f6ec6ec56e14cf7a366778996 to your computer and use it in GitHub Desktop.
JSON schema test (see https://json-schema-faker.js.org/#gist/76c65d9f6ec6ec56e14cf7a366778996)
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
{ | |
"id": "base", | |
"properties": { | |
"prop1": { | |
"type": "number" | |
}, | |
"prop2": { | |
"type": "number" | |
}, | |
"prop_obj": { | |
"type": "object", | |
"properties": { | |
"sprop1": { | |
"type": "number" | |
}, | |
"sprop2": { | |
"type": "number" | |
} | |
} | |
} | |
} | |
} |
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
{ | |
"allOf": [ | |
{ | |
"$ref": "base" | |
} | |
], | |
"properties": { | |
"prop3": { | |
"type": "number" | |
}, | |
"prop1": { | |
"const": "val" | |
}, | |
"prop_obj": { | |
"type": "object", | |
"properties": { | |
"sprop1": { | |
"const": "sprop_val" | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment