Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validate things interaction forms in TM #277

Closed
farshidtz opened this issue Feb 21, 2022 · 0 comments · Fixed by #282
Closed

Validate things interaction forms in TM #277

farshidtz opened this issue Feb 21, 2022 · 0 comments · Fixed by #282

Comments

@farshidtz
Copy link
Member

The forms of the things interaction may be wrong. Some uri variables are not used. The second form is redundant since every uri variable is optional:

"forms": [
{
"href": "/things",
"htv:methodName": "GET",
"response": {
"description": "Success response",
"htv:statusCodeValue": 200,
"contentType": "application/ld+json"
},
"scopes": "readAll"
},
{
"href": "/things{?offset,limit,sort_by,sort_order}",
"htv:methodName": "GET",
"response": {
"description": "Success response",
"htv:statusCodeValue": 200,
"contentType": "application/ld+json",
"htv:headers": [
{
"htv:fieldName": "Link"
}
]
},
"additionalResponses": [
{
"description": "Invalid query arguments",
"contentType": "application/problem+json",
"htv:statusCodeValue": 400
}
],
"scopes": "readAll"
}
]

Related comment: #273 (comment)_
Also related to #86

@farshidtz farshidtz changed the title Validate things interfaction forms in TM Validate things interaction forms in TM Feb 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant