Skip to content

Changes to device schema needed for W3C compliance #20

@benfrancis

Description

@benfrancis

For better or worse the schemas defined in definitions.json are currently used by the WebThings Gateway application to validate parts of Thing Descriptions and to generate TypeScript types used to represent them.

There are certain changes needed to these schemas in order to validate W3C compliant Thing Descriptions. Notably:

  1. Add data wrapper for event data schema Add data wrapper for event data schema gateway#2810
  2. Change mediaType to type for links in API Change mediaType to type for links in API gateway#2808
  3. Change @context of Thing Descriptions to an array Change @context of Thing Descriptions gateway#2809

Ideally we would also remove or vendor-prefix non-standard members of the Thing Description

  1. Remove name member of property affordances in Thing Descriptions Remove name member of property affordances in Thing Descriptions gateway#2855
  2. Remove value member of property affordances in Thing Descriptions Remove value member of property affordances in Thing Descriptions gateway#2854
  3. Add prefix to proprietary members of Thing Descriptions Remove or add prefix to proprietary members of Thing Descriptions gateway#2832

Before releasing these changes we'll need to evaluate the impact on any existing add-ons which may use these terms directly.

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