Last active
November 19, 2023 11:26
-
-
Save KalleDK/5ad83f13cde06e2cbe242fc09c650957 to your computer and use it in GitHub Desktop.
DNAC Site Schema
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "http://json-schema.org/draft-07/schema#", | |
"title": "Generated schema for Root", | |
"type": "object", | |
"additionalProperties": false, | |
"properties": { | |
"areas": { | |
"type": "array", | |
"items": { | |
"$ref": "#/$defs/area" | |
} | |
}, | |
"buildings": { | |
"type": "array", | |
"items": { | |
"$ref": "#/$defs/building" | |
} | |
} | |
}, | |
"$defs": { | |
"floor": { | |
"type": "object", | |
"additionalProperties": false, | |
"required": [ | |
"name" | |
], | |
"properties": { | |
"name": { | |
"type": "string" | |
} | |
} | |
}, | |
"building": { | |
"type": "object", | |
"additionalProperties": false, | |
"required": [ | |
"name" | |
], | |
"properties": { | |
"name": { | |
"type": "string" | |
}, | |
"area": { | |
"type": "string" | |
}, | |
"floors": { | |
"type": "array", | |
"items": { | |
"$ref": "#/$defs/floor" | |
} | |
} | |
} | |
}, | |
"area": { | |
"type": "object", | |
"additionalProperties": false, | |
"required": [ | |
"name" | |
], | |
"properties": { | |
"name": { | |
"description": "Name of area", | |
"type": "string" | |
}, | |
"parent": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment