Skip to content

Better error messages when given a non-supported JSON Schema #29

@sandrina-p

Description

@sandrina-p

Problem

Currently, given a JSON Schema not supported by json-schema-form, the error message is hard to understand and trace back to where the problem originates from.

Solution

Evaluate a JSON Schema structure before trying to parse it, to spot and warn about invalid types.

For example, in this #21 , the error should be:

- JSON Schema invalid TypeError: innerFields.forEach is not a function
+ JSON Schema invalid: data/properties/hobbies/items/type must be object

Investigate the possibility of using TypeScript, Zod, or any other typing tool for this type check.

Metadata

Metadata

Assignees

No one assigned

    Labels

    new featureNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions