Guest User

Untitled

a guest
Jul 16th, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. {
  2. "type": ["object", "integer"],
  3.  
  4.  
  5. "properties": {
  6. "abcde": {
  7. "type": "object",
  8. "patternProperties": {
  9. "^[a-zA-Z0-9_]+$": {
  10. "oneOf": [
  11. {"const": "a"},
  12. {"const": "b"},
  13. {"$ref": "#/cde"}
  14. ]}}},
  15. "not1": false,
  16. "not2": {"not":{}},
  17. "not3": {"not": true}
  18. },
  19. "cde": {"$ref": "#/cdeDef"},
  20. "cdeDef": {"anyOf": [
  21. {"const": "c"},
  22. {"const": "d"},
  23. {"const": "e"}
  24. ]},
  25.  
  26.  
  27. "anyOf": [
  28. {"properties": {"foo": {"enum": ["a"]}, "bar": {"multipleOf": 3}}},
  29. {"properties": {"foo": {"enum": ["b"]}, "bar": {"multipleOf": 5}}}
  30. ],
  31.  
  32.  
  33. "oneOf": [
  34. {"type": "object"},
  35. {"minimum": 15},
  36. {"maximum": 5}
  37. ],
  38.  
  39.  
  40. "if": {"minimum": 15},
  41. "then": {"multipleOf": 5},
  42. "else": {"multipleOf": 3}
  43.  
  44. }
Add Comment
Please, Sign In to add comment