Skip to content

Instantly share code, notes, and snippets.

@halfak
Created October 11, 2018 20:46
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 halfak/2308f2b32f818582a97343715e8bad7b to your computer and use it in GitHub Desktop.
Save halfak/2308f2b32f818582a97343715e8bad7b to your computer and use it in GitHub Desktop.
"schemas": {
"contentquality": {
"type": "object",
"properties": {
"contentquality": {
"type": "string"
}
},
"required": ["contentquality"]
},
"editquality": {
"type": "object",
"properties": {
"damaging": {
"type": "boolean"
},
"goodfaith": {
"type": "boolean"
}
},
"required": ["damaging", "goodfaith"]
}
}
...........
"judgment": {
"type": "object",
"properties": {
"schema": {
"oneOf": [
{"$ref": "#/schemas/contentquality"},
{"$ref": "#/schemas/editquality"}
],
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment