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

Opaque error message when "length":"30" is used #64

Closed
jbfaden opened this issue Mar 19, 2024 · 1 comment
Closed

Opaque error message when "length":"30" is used #64

jbfaden opened this issue Mar 19, 2024 · 1 comment

Comments

@jbfaden
Copy link
Contributor

jbfaden commented Mar 19, 2024

I wonder if this error could be made less opaque:

http://localhost:8080/HapiServer/hapi/info?id=solar_wind_mag_pt3m&parameters=bt_min
  ✗ is.HAPIJSON(): Expect body to be valid HAPI 3.1 'info' schema.
  Got:   [
           "parameters[0].length is not exactly one from [subschema 0],</Ref>"
       ]

The error was that "length":"30" was used when "length":30 should have been. I realize that this is the schema validator output, but we should either check that in the semmantic test or write the schema so that a better error is presented.

@rweigel
Copy link
Collaborator

rweigel commented Apr 10, 2024

Closing and adding to hapi-server/data-specification-schema#17

@rweigel rweigel closed this as completed Apr 10, 2024
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

2 participants