You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[BUG][GRADLE] When the open-api-specification is changed for the schemas referred via $ref, gradle task "GenerateTask" does not detect the changes. #16723
Issue Description:
When changes are made to open-api-schemas referred via the $ref keyword, gradle is unable to detect the changes made to the schema.
However,gradle is able to detect changes for schema changes provided directly in openapi.yml .
Steps to reproduce: https://github.com/DeepikaSridhar2112/open-api-issue contains sampler project to recreate the issue. In the sample, schema is being defined via searchResults.yml.When changes are made to searchResult.yml
and openApiGenerate task is invoked, the generated code doesnt reflect the schema changes
Suggested fix:
The openApiTask is unaware of the schema location,. Adding it as an input argument in GenerateTask fixes this refresh issue.