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

Which JsonSchema version is used? Why is $schema not allwoed? #4455

Open
1 task done
rufreakde opened this issue Jan 19, 2025 · 1 comment
Open
1 task done

Which JsonSchema version is used? Why is $schema not allwoed? #4455

rufreakde opened this issue Jan 19, 2025 · 1 comment
Labels
awaiting response needs reproducible example Missing a link to a reproduction in the playground, CodeSandbox, JSFiddle, etc. question

Comments

@rufreakde
Copy link

Prerequisites

What theme are you using?

validator-ajv8

What is your question?

I am using c# to export some classes with a tool:
https://github.com/RicoSuter/NJsonSchema

Which seems to export with:
https://json-schema.org/draft-05

With a property within

{
"$schema":"http://json-schema.org/draft-04/schema#"
}

I had to manually modify and delete $schema property.

exampe

@rufreakde rufreakde added needs triage Initial label given, to be assigned correct labels and assigned question labels Jan 19, 2025
@nickgros
Copy link
Contributor

@rufreakde Can you provide an example with the $schema property and explain how it doesn't work? The schema you sent seems to work fine at first glance, and if I add the $schema property to the top level, it still seems to work.

@nickgros nickgros added awaiting response needs reproducible example Missing a link to a reproduction in the playground, CodeSandbox, JSFiddle, etc. and removed needs triage Initial label given, to be assigned correct labels and assigned labels Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting response needs reproducible example Missing a link to a reproduction in the playground, CodeSandbox, JSFiddle, etc. question
Projects
None yet
Development

No branches or pull requests

2 participants