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

fix invalid json schema (required field) #172

Merged
merged 1 commit into from
Dec 26, 2024
Merged

fix invalid json schema (required field) #172

merged 1 commit into from
Dec 26, 2024

Conversation

k-yle
Copy link
Collaborator

@k-yle k-yle commented Dec 12, 2024

required: true isn't valid, it needs to be required: ["my field name", ...]

@k-yle k-yle added bug Something isn't working json-schema labels Dec 12, 2024
@k-yle k-yle force-pushed the kh/invalid-schema branch from 6fea81b to 20e8a60 Compare December 19, 2024 20:44
@tordans
Copy link
Collaborator

tordans commented Dec 20, 2024

What so the best way to test this (before/after)?

@k-yle
Copy link
Collaborator Author

k-yle commented Dec 20, 2024

The simplest method would be to paste the current schemas into a json schema validator, or checkout PR #173 and see the errors in your IDE:

image

@tordans
Copy link
Collaborator

tordans commented Dec 25, 2024

Tested the old vs new file with https://www.jsonschemavalidator.net/ and the errors go away:

before after
Bildschirmfoto 2024-12-25 um 18 14 31 Bildschirmfoto 2024-12-25 um 18 14 36

@k-yle k-yle merged commit 54c2a7d into main Dec 26, 2024
1 check passed
@k-yle k-yle deleted the kh/invalid-schema branch December 26, 2024 01:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working json-schema
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants