modelsObject.json 1008 B

123456789101112131415161718192021222324252627282930313233343536
  1. {
  2. "id": "https://raw.githubusercontent.com/OAI/OpenAPI-Specification/master/schemas/v1.2/modelsObject.json#",
  3. "$schema": "http://json-schema.org/draft-04/schema#",
  4. "type": "object",
  5. "required": [ "id", "properties" ],
  6. "properties": {
  7. "id": { "type": "string" },
  8. "description": { "type": "string" },
  9. "properties": {
  10. "type": "object",
  11. "additionalProperties": { "$ref": "#/definitions/propertyObject" }
  12. },
  13. "subTypes": {
  14. "type": "array",
  15. "items": { "type": "string" },
  16. "uniqueItems": true
  17. },
  18. "discriminator": { "type": "string" }
  19. },
  20. "dependencies": {
  21. "subTypes": [ "discriminator" ]
  22. },
  23. "definitions": {
  24. "propertyObject": {
  25. "allOf": [
  26. {
  27. "not": { "$ref": "#" }
  28. },
  29. {
  30. "$ref": "dataTypeBase.json#"
  31. }
  32. ]
  33. }
  34. }
  35. }