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

Uncollapse single-use defs #10

Open
ProbablePrime opened this issue Dec 3, 2024 · 0 comments
Open

Uncollapse single-use defs #10

ProbablePrime opened this issue Dec 3, 2024 · 0 comments
Assignees

Comments

@ProbablePrime
Copy link
Member

The latest version of our schemas, for some reason splits even objects that are only used once, into their own def location within the schema.

Here's an example where a single value is for some reason converted to a separate def. https://github.com/Yellow-Dog-Man/JSONSchemas/blob/main/schemas/AppConfig.schema.json#L151-L153

It makes sense to do this with common values, such as enums, but for basic values like string. It shouldn't be doing this.

@ProbablePrime ProbablePrime self-assigned this Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant