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

feat(generate-spec): Disallow unused schemas #196

Merged
merged 3 commits into from
Dec 17, 2024

Conversation

provokateurin
Copy link
Member

Closes #85

We only need to check if the schema is used in any of the non-full scopes. The full scope doesn't need to be checked, because any schema not used in any non-full scope is also not used in the full scope.

@provokateurin provokateurin marked this pull request as draft December 17, 2024 16:13
@provokateurin
Copy link
Member Author

Ah Capabilities should be excluded of course. Finally the red CI did something, although it was hard to spot between all the "false positives" 😅

@provokateurin provokateurin force-pushed the feat/generate-spec/disallow-unused-schemas branch from 5b76ba4 to 68fefe0 Compare December 17, 2024 16:25
@provokateurin provokateurin marked this pull request as ready for review December 17, 2024 16:25
Signed-off-by: provokateurin <[email protected]>
@provokateurin provokateurin force-pushed the feat/generate-spec/disallow-unused-schemas branch from 68fefe0 to 86dfdc3 Compare December 17, 2024 16:30
@provokateurin provokateurin merged commit a644eac into main Dec 17, 2024
9 of 15 checks passed
@provokateurin provokateurin deleted the feat/generate-spec/disallow-unused-schemas branch December 17, 2024 16:31
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

Successfully merging this pull request may close these issues.

Warn about schemas that are never used
2 participants