Repository navigation
schema-form-lint: static checks for schema and uiSchema #5533
Yomu1273
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I published schema-form-lint, a static linter for react-jsonschema-form configs.
It catches the uiSchema mistakes that fail at runtime or get ignored:
Unknown widget names are assumed to be ones you register. Pass --custom-widgets only for names that are built-ins you have replaced. Conditional properties are not required in ui:order, because the linter cannot prove that branch is shown.
schema-form-lint rjsf --schema schema.json --ui-schema ui-schema.json
Install: npm install --save-dev schema-form-lint
npm: https://www.npmjs.com/package/schema-form-lint
source: https://github.com/Yomu1273/schema-form-lint
It also checks JSON Forms uischema. Comments on false alarms from real forms are welcome.
All reactions