Skip to content

Commit

Permalink
TD instance for action forms valid and invalid
Browse files Browse the repository at this point in the history
  • Loading branch information
mahdanoura committed Jul 8, 2024
1 parent aa78ab3 commit 8ea3dfe
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/data/3-actions/actions-forms-td-invalid.jsonld
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"@context": ["https://www.w3.org/2019/wot/td/v1"],
"@type": "Thing",
"id": "urn:example:thing:actions1",
"title": "Example Thing with Actions",
"actions": {
"toggle": {
"href": "https://example.com/actions/toggle"
}
}
}
13 changes: 13 additions & 0 deletions tests/data/3-actions/actions-forms-td-valid.jsonld
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"@context": ["https://www.w3.org/2019/wot/td/v1"],
"@type": "Thing",
"id": "urn:example:thing:actions1",
"title": "Example Thing with Actions",
"actions": {
"toggle": {
"forms": [{
"href": "https://example.com/actions/toggle"
}]
}
}
}

0 comments on commit 8ea3dfe

Please sign in to comment.