labthings_fastapi.thing_description.validation
Module Contents
Functions
Validate a Thing Description. |
API
- labthings_fastapi.thing_description.validation.validate_thing_description(td: dict) None
Validate a Thing Description.
This accepts a dictionary (usually generated from
labthings_fastapi.thing_description.model.ThingDescription.model_dump()) and validates it against the JSON schema for Thing Descriptions. This is obtained from the W3C’s Thing Description repository on GitHub, URL in the file.