Skip to content

Instantly share code, notes, and snippets.

@pastuhov
Last active January 13, 2023 11:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pastuhov/76c65d9f6ec6ec56e14cf7a366778996 to your computer and use it in GitHub Desktop.
Save pastuhov/76c65d9f6ec6ec56e14cf7a366778996 to your computer and use it in GitHub Desktop.
{
"id": "base",
"properties": {
"prop1": {
"type": "number"
},
"prop2": {
"type": "number"
},
"prop_obj": {
"type": "object",
"properties": {
"sprop1": {
"type": "number"
},
"sprop2": {
"type": "number"
}
}
}
}
}
{
"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