generated from AMWA-TV/is-template
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replaced MS-05 descriptor with JSON schema
- Loading branch information
1 parent
6efcf36
commit ac50ac4
Showing
1 changed file
with
54 additions
and
54 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,57 @@ | ||
{ | ||
"description": "Descriptor of a class", | ||
"name": "NcClassDescriptor", | ||
"type": 2, | ||
"fields": [ | ||
{ | ||
"description": "Identity of the class", | ||
"name": "classId", | ||
"typeName": "NcClassId", | ||
"isNullable": false, | ||
"isSequence": false, | ||
"constraints": null | ||
}, | ||
{ | ||
"description": "Name of the class", | ||
"name": "name", | ||
"typeName": "NcName", | ||
"isNullable": false, | ||
"isSequence": false, | ||
"constraints": null | ||
}, | ||
{ | ||
"description": "Role if the class has fixed role (manager classes)", | ||
"name": "fixedRole", | ||
"typeName": "NcString", | ||
"isNullable": true, | ||
"isSequence": false, | ||
"constraints": null | ||
}, | ||
{ | ||
"description": "Property descriptors", | ||
"name": "properties", | ||
"typeName": "NcPropertyDescriptor", | ||
"isNullable": false, | ||
"isSequence": true, | ||
"constraints": null | ||
}, | ||
{ | ||
"description": "Method descriptors", | ||
"name": "methods", | ||
"typeName": "NcMethodDescriptor", | ||
"isNullable": false, | ||
"isSequence": true, | ||
"constraints": null | ||
}, | ||
{ | ||
"description": "Event descriptors", | ||
"name": "events", | ||
"typeName": "NcEventDescriptor", | ||
"isNullable": false, | ||
"isSequence": true, | ||
"constraints": null | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "NcClassDescriptor", | ||
"description": "Descriptor of a class", | ||
"allOf": [ | ||
{ | ||
"$ref": "NcDescriptor.json" | ||
} | ||
], | ||
"type": "object", | ||
"required": [ | ||
"classId", | ||
"name", | ||
"fixedRole", | ||
"properties", | ||
"methods", | ||
"events" | ||
], | ||
"properties": { | ||
"classId": { | ||
"$ref": "NcClassId.json", | ||
"description": "Identity of the class" | ||
}, | ||
"name": { | ||
"$ref": "NcName.json", | ||
"description": "Name of the class" | ||
}, | ||
"fixedRole": { | ||
"type": [ | ||
"string", | ||
"null" | ||
], | ||
"description": "Role if the class has fixed role (manager classes)" | ||
}, | ||
"properties": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "NcPropertyDescriptor.json" | ||
}, | ||
"description": "Property descriptors" | ||
}, | ||
"methods": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "NcMethodDescriptor.json" | ||
}, | ||
"description": "Method descriptors" | ||
}, | ||
"events": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "NcEventDescriptor.json" | ||
}, | ||
"description": "Event descriptors" | ||
} | ||
} | ||
], | ||
"parentType": "NcDescriptor", | ||
"constraints": null | ||
} |