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

openapi-inject admin scope validation NPE on gateway without openapi spec #243

Closed
stevehu opened this issue Nov 17, 2022 · 2 comments
Closed

Comments

@stevehu
Copy link
Contributor

stevehu commented Nov 17, 2022

The openapi-inject.yml will merge with openapi.yml for the application during the server startup, it there is no openapi.yml, the merging will stop and there would be no specification available on the gateway. In this case, the scope validation will fail as there is no spec to compare the defined scopes.

@stevehu
Copy link
Contributor Author

stevehu commented Nov 18, 2022

At this moment, we cannot reproduce this issue reported by one of our users. If there is no openapi.yml provided in the gateway, the default dummy openapi.yml will be loaded and merged with the openapi-inject.yml in the same default module config.

https://github.com/networknt/light-rest-4j/tree/master/openapi-meta/src/main/resources/config

@stevehu
Copy link
Contributor Author

stevehu commented Dec 11, 2022

This issue is resolve with the following.

#266
#264

@stevehu stevehu closed this as completed Dec 11, 2022
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