Skip to content

Surface which field is failing in schema validation #334

Open
@somechild

Description

@somechild

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions