codeconsole commented on PR #16275: URL: https://github.com/apache/grails-core/pull/16275#issuecomment-5824395963
@zyro23 A group declared as a `GroupedOpenApi` bean, in `springdoc.group-configs`, or under `grails.openapi.groups` applies to the Grails endpoints like this, at runtime and in the `generate-open-api` command: - `pathsToMatch`, `pathsToExclude`: the mapped path. - `packagesToScan`, `packagesToExclude`: the controller's package. - `producesToMatch`: the media types of the controller's `responseFormats`, matched the way springdoc matches a handler's `produces` (f6fbe997bd, 2002a02d03). - `consumesToMatch`: the same media types, where the action binds a body (2002a02d03). - `headersToMatch`: a URL mapping declares no header condition, so as with a Spring handler without one, it is not matched (2002a02d03). - `addOpenApiMethodFilter`, `OpenApiMethodFilter` and `GlobalOpenApiMethodFilter` beans: called with the method the action is declared as (c54ef6e80f). - `addOperationCustomizer`, `OperationCustomizer` and `GlobalOperationCustomizer` beans: called for each Grails operation with a `HandlerMethod` for the controller and action (1f7d7a7332). - `addOpenApiCustomizer`, `OpenApiCustomizer` and `GlobalOpenApiCustomizer` beans: run after the Grails operations are added (ce37f48224), and in the command too (2c78f28828). `springdoc.group-configs` needed a fix to Grails' YAML config binding (12c05b5ce2). -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
