wotpy.wot.validation¶
Schemas following the JSON Schema specification used to validate the shape of Thing Description documents.
Functions
interaction_schema_for_type (interaction_type) |
Returns the JSON schema that describes an interaction for the given interaction type. |
is_valid_safe_name (val) |
Returns True if the given value is a safe machine-readable name. |
is_valid_uri (val) |
Returns True if the given value is a valid URI. |
Exceptions
InvalidDescription |
Exception raised when a document for an object in the TD hierarchy has an invalid format. |
-
exception
wotpy.wot.validation.
InvalidDescription
¶ Bases:
Exception
Exception raised when a document for an object in the TD hierarchy has an invalid format.
-
wotpy.wot.validation.
interaction_schema_for_type
(interaction_type)¶ Returns the JSON schema that describes an interaction for the given interaction type.
-
wotpy.wot.validation.
is_valid_safe_name
(val)¶ Returns True if the given value is a safe machine-readable name.
-
wotpy.wot.validation.
is_valid_uri
(val)¶ Returns True if the given value is a valid URI.