Skip to content

Semtype objects that override schema #98

@jtc42

Description

@jtc42

This would make the property builder a LOT more useful.

Some semantic types require extra schema info, for example: https://iot.mozilla.org/schemas/#LevelProperty
LevelProperty requires limits.

Rather than having semantic types as a string, instead pass an object, such as semantics.LevelProperty(0, 100) which would automatically set the field to int type, and set the field limits to 0-100.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions