agrestio / agrest

Server-side Java REST Framework for easy access to data graphs from various backends
https://agrest.io
Apache License 2.0
80 stars 34 forks source link

Swagger: do not expose UriInfo unless annotated with @Parameter #619

Closed andrus closed 1 year ago

andrus commented 1 year ago

To follow a principle of least surprise, let's stop automatically expanding UriInfo parameter into a list of protocol parameters in the generated OpenAPI model. Only do that when it is explicitly annotated with @Parameter. This fits nicely with the recent improvement per #615