Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"glob": "^7.1.6",
"jsonpointer": "^5.0.0",
"mocha": "^11.1.0",
"typescript": "^3.8.3",
"typescript": "^4.9.5",
"vscode-test": "^1.3.0",
"wot-thing-description": "github:w3c/wot-thing-description#bafa33e47c84bb879e1f5a102649cc3bea1ec3ca"
}
Expand Down
3 changes: 2 additions & 1 deletion schemas/TD.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"$id": "https://raw.githubusercontent.com/w3c/wot-thing-description/main/validation/td-json-schema-validation.json",
"definitions": {
"anyUri": {
"type": "string"
"type": "string",
"format": "iri-reference"
Comment on lines -9 to +10
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The validation schema should be compliant with https://github.com/w3c/wot-resources/blob/main/td/v1.1/validation/td-json-schema-validation.json, which does not have the format keyword. I don't remember why it was removed, but I recall it was problematic for some reason. @egekorkan do you remember?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was due to different implementations not validating it exactly correct. So we just say string now.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, we should then see how vscode interpret it. Do you have some test cases we can use?

},
"description": {
"type": "string"
Expand Down