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

Surface which field is failing in schema validation #334

Open
somechild opened this issue May 13, 2020 · 0 comments
Open

Surface which field is failing in schema validation #334

somechild opened this issue May 13, 2020 · 0 comments

Comments

@somechild
Copy link

somechild commented May 13, 2020

When building the conjure object itself, ex:

item = ItemConjureInstance(
       id=id,
       val=val
)

validation works fine and doesn't throw an error,

but in the API definition when validating the output, I'd get an error like:
{"message": "Output type check failed with exception: Expected to find <class 'str'> type but found <class 'int'> instead"}

It doesn't tell me which exact field failed - slowing down debug cycles.

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