sphobjinv.schema¶
JSON schema to validate inventory dictionaries.
This module is part of sphobjinv
,
a toolkit for manipulation and inspection of
Sphinx objects.inv files.
- Author
- Brian Skinn (bskinn@alum.mit.edu)
- File Created
- 7 Dec 2017
- Copyright
- (c) Brian Skinn 2016-2018
- Source Repository
- http://www.github.com/bskinn/sphobjinv
- Documentation
- http://sphobjinv.readthedocs.io
- License
- The MIT License; see LICENSE.txt for full license terms
Members
-
json_schema
= {'$schema': 'http://json-schema.org/schema#', 'additionalProperties': False, 'patternProperties': {'^\\d+': {'additionalProperties': False, 'properties': {'domain': {'type': 'string'}, 'role': {'type': 'string'}, 'priority': {'type': 'string'}, 'dispname': {'type': 'string'}, 'name': {'type': 'string'}, 'uri': {'type': 'string'}}, 'required': ['domain', 'role', 'priority', 'dispname', 'name', 'uri'], 'type': 'object'}}, 'properties': {'count': {'type': 'integer'}, 'project': {'type': 'string'}, 'version': {'type': 'string'}, 'metadata': {}}, 'required': ['project', 'version', 'count'], 'type': 'object'}¶ JSON schema for validating the
dict
forms of Sphinx objects.inv inventories as generated from or expected byInventory
classes.