JSON Schema for validating TD instances against the TD model. TD instances can be with or without terms that have default values
$ jsonschema install https://schemas.sourcemeta.com/w3c/wot/v1.0/td-json-schema-validation schemas/td-json-schema-validation.json$ref: "https://schemas.sourcemeta.com/w3c/wot/v1.0/td-json-schema-validation"import schema from "https://schemas.sourcemeta.com/w3c/wot/v1.0/td-json-schema-validation" with { type: "json" };| Identifier | https://schemas.sourcemeta.com/w3c/wot/v1.0/td-json-schema-validation |
|---|---|
| Base Dialect | Draft7 |
| Dialect | http://json-schema.org/draft-07/schema# |
| Health | |
| Size | 0.021530 MB |
This schema declares 0 examples.
This schema has 60 quality errors.
top_level_examplesSet a non-empty examples array at the top level of the schema to illustrate the expected data
/properties/@typesimple_properties_identifiersSet properties to identifier names that can be easily mapped to programming languages (matching [A-Za-z_][A-Za-z0-9_]*)
/definitions/action_element/properties/@typesimple_properties_identifiersSet properties to identifier names that can be easily mapped to programming languages (matching [A-Za-z_][A-Za-z0-9_]*)
/definitions/dataSchema/properties/@typesimple_properties_identifiersSet properties to identifier names that can be easily mapped to programming languages (matching [A-Za-z_][A-Za-z0-9_]*)
/definitions/dataSchema/properties/constempty_object_as_trueThe empty schema {} accepts all values and is equivalent to the boolean schema true
/definitions/dataSchema/properties/type/enumenum_with_typeSetting type alongside enum is considered an anti-pattern, as the enumeration choices already imply their respective types
/definitions/event_element/properties/@typesimple_properties_identifiersSet properties to identifier names that can be easily mapped to programming languages (matching [A-Za-z_][A-Za-z0-9_]*)
/definitions/form_element_action/properties/op/oneOfoneof_to_anyof_disjoint_typesA oneOf where all branches have disjoint types can be safely converted to anyOf
/definitions/form_element_action/properties/op/oneOf/0/enumenum_with_typeSetting type alongside enum is considered an anti-pattern, as the enumeration choices already imply their respective types
/definitions/form_element_action/properties/op/oneOf/0/enumenum_to_constAn enum of a single value can be expressed as const
/definitions/form_element_action/properties/op/oneOf/1/items/enumenum_with_typeSetting type alongside enum is considered an anti-pattern, as the enumeration choices already imply their respective types
/definitions/form_element_action/properties/op/oneOf/1/items/enumenum_to_constAn enum of a single value can be expressed as const
/definitions/form_element_event/properties/op/oneOfoneof_to_anyof_disjoint_typesA oneOf where all branches have disjoint types can be safely converted to anyOf
/definitions/form_element_event/properties/op/oneOf/0/enumenum_with_typeSetting type alongside enum is considered an anti-pattern, as the enumeration choices already imply their respective types
/definitions/form_element_event/properties/op/oneOf/1/items/enumenum_with_typeSetting type alongside enum is considered an anti-pattern, as the enumeration choices already imply their respective types
/definitions/form_element_property/properties/op/oneOfoneof_to_anyof_disjoint_typesA oneOf where all branches have disjoint types can be safely converted to anyOf
/definitions/form_element_property/properties/op/oneOf/0/enumenum_with_typeSetting type alongside enum is considered an anti-pattern, as the enumeration choices already imply their respective types
/definitions/form_element_property/properties/op/oneOf/1/items/enumenum_with_typeSetting type alongside enum is considered an anti-pattern, as the enumeration choices already imply their respective types
/definitions/form_element_root/properties/op/oneOfoneof_to_anyof_disjoint_typesA oneOf where all branches have disjoint types can be safely converted to anyOf
/definitions/form_element_root/properties/op/oneOf/0/enumenum_with_typeSetting type alongside enum is considered an anti-pattern, as the enumeration choices already imply their respective types
/definitions/form_element_root/properties/op/oneOf/1/items/enumenum_with_typeSetting type alongside enum is considered an anti-pattern, as the enumeration choices already imply their respective types
/definitions/property_element/properties/@typesimple_properties_identifiersSet properties to identifier names that can be easily mapped to programming languages (matching [A-Za-z_][A-Za-z0-9_]*)
/definitions/property_element/properties/constempty_object_as_trueThe empty schema {} accepts all values and is equivalent to the boolean schema true
/definitions/property_element/properties/type/enumenum_with_typeSetting type alongside enum is considered an anti-pattern, as the enumeration choices already imply their respective types
/definitions/scopes/oneOfoneof_to_anyof_disjoint_typesA oneOf where all branches have disjoint types can be safely converted to anyOf
/definitions/security/oneOfoneof_to_anyof_disjoint_typesA oneOf where all branches have disjoint types can be safely converted to anyOf
/definitions/securityScheme/oneOf/0/properties/@typesimple_properties_identifiersSet properties to identifier names that can be easily mapped to programming languages (matching [A-Za-z_][A-Za-z0-9_]*)
/definitions/securityScheme/oneOf/0/properties/scheme/enumenum_with_typeSetting type alongside enum is considered an anti-pattern, as the enumeration choices already imply their respective types
/definitions/securityScheme/oneOf/0/properties/scheme/enumenum_to_constAn enum of a single value can be expressed as const
/definitions/securityScheme/oneOf/1/properties/@typesimple_properties_identifiersSet properties to identifier names that can be easily mapped to programming languages (matching [A-Za-z_][A-Za-z0-9_]*)
/definitions/securityScheme/oneOf/1/properties/in/enumenum_with_typeSetting type alongside enum is considered an anti-pattern, as the enumeration choices already imply their respective types
/definitions/securityScheme/oneOf/1/properties/scheme/enumenum_with_typeSetting type alongside enum is considered an anti-pattern, as the enumeration choices already imply their respective types
/definitions/securityScheme/oneOf/1/properties/scheme/enumenum_to_constAn enum of a single value can be expressed as const
/definitions/securityScheme/oneOf/2/properties/@typesimple_properties_identifiersSet properties to identifier names that can be easily mapped to programming languages (matching [A-Za-z_][A-Za-z0-9_]*)
/definitions/securityScheme/oneOf/2/properties/in/enumenum_with_typeSetting type alongside enum is considered an anti-pattern, as the enumeration choices already imply their respective types
/definitions/securityScheme/oneOf/2/properties/qop/enumenum_with_typeSetting type alongside enum is considered an anti-pattern, as the enumeration choices already imply their respective types
/definitions/securityScheme/oneOf/2/properties/scheme/enumenum_with_typeSetting type alongside enum is considered an anti-pattern, as the enumeration choices already imply their respective types
/definitions/securityScheme/oneOf/2/properties/scheme/enumenum_to_constAn enum of a single value can be expressed as const
/definitions/securityScheme/oneOf/3/properties/@typesimple_properties_identifiersSet properties to identifier names that can be easily mapped to programming languages (matching [A-Za-z_][A-Za-z0-9_]*)
/definitions/securityScheme/oneOf/3/properties/in/enumenum_with_typeSetting type alongside enum is considered an anti-pattern, as the enumeration choices already imply their respective types
/definitions/securityScheme/oneOf/3/properties/scheme/enumenum_with_typeSetting type alongside enum is considered an anti-pattern, as the enumeration choices already imply their respective types
/definitions/securityScheme/oneOf/3/properties/scheme/enumenum_to_constAn enum of a single value can be expressed as const
/definitions/securityScheme/oneOf/4/properties/@typesimple_properties_identifiersSet properties to identifier names that can be easily mapped to programming languages (matching [A-Za-z_][A-Za-z0-9_]*)
/definitions/securityScheme/oneOf/4/properties/in/enumenum_with_typeSetting type alongside enum is considered an anti-pattern, as the enumeration choices already imply their respective types
/definitions/securityScheme/oneOf/4/properties/scheme/enumenum_with_typeSetting type alongside enum is considered an anti-pattern, as the enumeration choices already imply their respective types
/definitions/securityScheme/oneOf/4/properties/scheme/enumenum_to_constAn enum of a single value can be expressed as const
/definitions/securityScheme/oneOf/5/properties/@typesimple_properties_identifiersSet properties to identifier names that can be easily mapped to programming languages (matching [A-Za-z_][A-Za-z0-9_]*)
/definitions/securityScheme/oneOf/5/properties/scheme/enumenum_with_typeSetting type alongside enum is considered an anti-pattern, as the enumeration choices already imply their respective types
/definitions/securityScheme/oneOf/5/properties/scheme/enumenum_to_constAn enum of a single value can be expressed as const
/definitions/securityScheme/oneOf/6/properties/@typesimple_properties_identifiersSet properties to identifier names that can be easily mapped to programming languages (matching [A-Za-z_][A-Za-z0-9_]*)
/definitions/securityScheme/oneOf/6/properties/flow/enumenum_with_typeSetting type alongside enum is considered an anti-pattern, as the enumeration choices already imply their respective types
/definitions/securityScheme/oneOf/6/properties/flow/enumenum_to_constAn enum of a single value can be expressed as const
/definitions/securityScheme/oneOf/6/properties/scheme/enumenum_with_typeSetting type alongside enum is considered an anti-pattern, as the enumeration choices already imply their respective types
/definitions/securityScheme/oneOf/6/properties/scheme/enumenum_to_constAn enum of a single value can be expressed as const
/definitions/securityScheme/oneOf/6/properties/scopes/oneOfoneof_to_anyof_disjoint_typesA oneOf where all branches have disjoint types can be safely converted to anyOf
/definitions/subprotocol/enumenum_with_typeSetting type alongside enum is considered an anti-pattern, as the enumeration choices already imply their respective types
/definitions/thing-context-w3c-uri/enumenum_with_typeSetting type alongside enum is considered an anti-pattern, as the enumeration choices already imply their respective types
/definitions/thing-context-w3c-uri/enumenum_to_constAn enum of a single value can be expressed as const
/definitions/type_declaration/oneOfoneof_to_anyof_disjoint_typesA oneOf where all branches have disjoint types can be safely converted to anyOf
/properties/security/oneOfoneof_to_anyof_disjoint_typesA oneOf where all branches have disjoint types can be safely converted to anyOf