Skip to content

["$id"] declaring a unique identifier to the schema #99

Description

@jpradocueva

Add to the schema document "sdf-schema.json" a unique identifier ($id) property:

"$id": "http://yourdomain.org/schemas/v1_0/sdf-schema.json"

It is part of the base practice to include this property on each schema.

Points for discussion:

  • by a domain for "onedatamodel"
  • in the URI path - (converted into a URL) - is suggested to add the /versionx_y/

The addition of this "$id": will allow to insert the "$schema": property:

"$schema": "http://yourdomain.org/schemas/v1_0/sdf-schema.json"

inside of each model. This will allow to validate the model against the defined schema "sdf-schema.json".

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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