Class metawidget.inspector.JsonSchemaInspector
Inspects JSON Schemas for their properties.
Because Metawidget already uses JSON Schema (v3) internally as its inspection result format, this Inspector does not need to do much. However it adds support for:
- schemas that contain nested schemas (by traversing the given 'names' array)
- checking the 'type' property of the schema
- schemas that describe arrays (by traversing the 'items' property)
- schemas that have a top-level 'required' array (JSON Schema v4)
Defined in: metawidget-inspectors.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Method Attributes | Method Name and Description |
---|---|
inspect(toInspect, type, names)
|
Method Detail
inspect(toInspect, type, names)
- Parameters:
- toInspect
- type
- names