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

GET /{collection}/{obj_uuid}/attributes/{attr} return type is incorrect #13

Open
Apollo3zehn opened this issue Mar 20, 2023 · 0 comments

Comments

@Apollo3zehn
Copy link

Sorry for spamming this project with issues! However I prefer to document my findings here to keep track of them.

The actual response of the GET /{collection}/{obj_uuid}/attributes/{attr} endpoint also returns a type property which is not documented here:

hdf-rest-api/openapi.yaml

Lines 2221 to 2232 in e6f1a68

properties:
created:
type: number
lastModified:
type: number
name:
type: string
shape:
type: object
value:
type: string # TODO whatever the user put there?
hrefs:

Additionally the openapi.yaml file defines that the value is of type string, but in my test setup the server (http://hsdshdflab.hdfgroup.org) returns an array of values. This leads to the problem that the returned json string cannot be deserialized properly (there is a type mismatch between string and array).

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

No branches or pull requests

1 participant