flow2schema/tests/samples/references/schema.json

40 lines
1.2 KiB
JSON

{
"$schema": "http://json-schema.org/draft-06/schema#",
"definitions": {
"references::A": {"type": "string"},
"references::Type": {
"type": "object",
"properties": {
"a": {"$ref": "#/definitions/references::A"},
"b": {
"type": "array",
"items": {"$ref": "#/definitions/references::A"}
}
},
"required": ["a", "b"]
},
"references::Interface": {
"type": "object",
"properties": {
"a": {"$ref": "#/definitions/references::A"},
"b": {
"type": "array",
"items": {"$ref": "#/definitions/references::A"}
}
},
"required": ["a", "b"]
},
"references::Class": {
"type": "object",
"properties": {
"a": {"$ref": "#/definitions/references::A"},
"b": {
"type": "array",
"items": {"$ref": "#/definitions/references::A"}
}
},
"required": ["a", "b"]
}
}
}