Skip to content

Schema id not validated as required #116

@rido-min

Description

@rido-min

DTDL v2 requires all schema elements to have an id, as reported by the parser:

{
    "@context": "dtmi:dtdl:context;2",
    "@id": "dtmi:test:schemas;1",
    "@type": "Interface",
    "schemas": [
        {
            "@type": "Object",
            "fields": [
                {
                    "name": "rf1",
                    "schema": "integer"
                }
            ]
        }
    ]
}
dtmi:test:schemas;1's property 'schemas' requires an identifer but none provided. Add an '@id' property whose value is a string that conforms to the DTMI syntax -- see https://github.com/Azure/digital-twin-model-identifier.

Current behavior. The Language server does not point this issue
Expected.

  • Show the issue in the problems tab
  • Squiggles
  • Show @id as required in the intellisense drop down

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