{ "definitions": {}, "$schema": "http://json-schema.org/draft-07/schema#", "$id": "http://www.onap.org/policy/models/schemas/onap.policies.typeA.schema.json", "type": "object", "title": "The Root Schema", "required": [ "type", "type_version", "version", "metadata", "properties" ], "properties": { "type": { "$id": "#/properties/type", "type": "string", "title": "Policy Type", "default": "onap.policies.typeA", "examples": [ "onap.policies.typeA" ], "pattern": "^(.+)$" }, "type_version": { "$id": "#/properties/type_version", "type": "string", "title": "Policy Type Version", "default": "1.0.0", "examples": [ "1.0.0" ], "pattern": "^(.+)$" }, "name": { "$id": "#/properties/name", "type": "string", "title": "Policy Name", "default": "", "examples": [ "example" ], "pattern": "^(.*)$" }, "version": { "$id": "#/properties/version", "type": "string", "title": "Policy Version", "default": "1.0.0", "examples": [ "1.0.0" ], "pattern": "^(.+)$" }, "metadata": { "$id": "#/properties/metadata", "type": "object", "title": "Metadata", "required": [ "policy-id" ], "properties": { "policy-id": { "$id": "#/properties/metadata/properties/policy-id", "type": "string", "title": "Policy ID", "examples": [ "operational.restart" ], "pattern": "^(.+)$" } } }, "properties": { "$id": "#/properties/properties", "type": "object", "title": "Properties", "required": [ "fieldA", "fieldB" ], "properties": { "fieldA": { "$id": "#/properties/properties/properties/fieldA", "type": "string", "title": "Field A", "examples": [ "FieldA" ], "pattern": "^(.+)$" }, "fieldB": { "$id": "#/properties/properties/properties/fieldB", "type": "integer", "title": "Timeout in seconds", "minimum": 1, "maximum": 5, "default": 1, "examples": [ 3 ] } } } } }