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

Match schema based on existence of a root file #3965

Open
hyperupcall opened this issue Aug 1, 2024 · 0 comments
Open

Match schema based on existence of a root file #3965

hyperupcall opened this issue Aug 1, 2024 · 0 comments
Labels
enhancement:build-server Propose something new for the SchemaStore web site or build server. (auto-generated by issue forms)

Comments

@hyperupcall
Copy link
Member

hyperupcall commented Aug 1, 2024

Description of the feature / enhancement.

The existence of a root file should be able to change the precedence of globs associated with schemas. As seen #3948, a project customarily looks for YAML files in directories like **/models/**.yaml. While this is too generic to apply to all situations, it would be useful for this glob to apply if and only if there is some sort of $MYPROJECTNAME.yaml file at the root directory.

In monorepos, the logic of detecting this file may increase code complexity or decrease performance too much, so at least initially, I propose that this logic only runs in "non-monorepos".

Are you making a PR for this?

Yes, I will create a PR.

@hyperupcall hyperupcall added the enhancement:build-server Propose something new for the SchemaStore web site or build server. (auto-generated by issue forms) label Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement:build-server Propose something new for the SchemaStore web site or build server. (auto-generated by issue forms)
Projects
None yet
Development

No branches or pull requests

1 participant