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(scopes): Add scope suffix even for single scopes #82

Closed
wants to merge 1 commit into from

Conversation

provokateurin
Copy link
Member

When an app has all routes under a single scope we still want to have suffix (unless it is default ofc).
Affected apps are cloud_federation_api (where everything should be federation) and settings, updatenotification and user_ldap where everything is administration.

@provokateurin provokateurin added the bug Something isn't working label Jan 18, 2024
Copy link
Member

@nickvergessen nickvergessen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It felt weird to me, but okay

@provokateurin
Copy link
Member Author

Otherwise the scopes make no sense when all endpoints have the same scope. In some cases you might want to get all specs that are federation only, so you would check for each app if it has a openapi-federation.json. Now if that isn't present it would never detect it.

@provokateurin
Copy link
Member Author

I thought about this again and I agree that it is weird. Also makes it impossible to fallback to openapi.json if no openapi-full.json is present.

@provokateurin provokateurin deleted the fix/scopes/single-scope-suffix branch January 23, 2024 10:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants