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

Migrate Swagger to SpringDoc #470

Merged
merged 5 commits into from
Feb 10, 2024
Merged

Migrate Swagger to SpringDoc #470

merged 5 commits into from
Feb 10, 2024

Conversation

timtebeek
Copy link
Contributor

@timtebeek timtebeek commented Jan 5, 2024

What's changed?

Added recipe to migrate from Swagger to SpringDoc, and upgrade SpringDoc itself.

What's your motivation?

Required for a complete migration to Spring Boot 3, which was not covered up to now.
Informally shared and tested; now adopted here to help folks that still need to migrate.

Any additional context

TODO

  • Merge rewrite-openapi as it's needed here
  • add rough regression tests that load yaml recipes to spot validation issues
  • consider whether migration is strong enough to be included with Spring Boot 3 upgrade

@timtebeek timtebeek added dependencies Pull requests that update a dependency file recipe Recipe requested boot-3.0 labels Jan 5, 2024
@timtebeek timtebeek self-assigned this Jan 5, 2024
timtebeek added a commit to openrewrite/rewrite-openapi that referenced this pull request Jan 5, 2024
timtebeek added a commit to openrewrite/rewrite-openapi that referenced this pull request Feb 10, 2024
* Convert Swagger to SpringDoc & OpenAPI

* Drop springdoc tag where not applicable

* Add missing license headers

* Move SpringDoc recipes to openrewrite/rewrite-spring

- openrewrite/rewrite-spring#470

* Implement and test ConvertApiResponseCodesToStrings

* Consistently use package including swagger

* Update categories

* Trigger validation of Yaml recipes with a test
github-actions[bot]

This comment was marked as outdated.

github-actions[bot]

This comment was marked as duplicate.

github-actions[bot]

This comment was marked as duplicate.

@timtebeek timtebeek marked this pull request as ready for review February 10, 2024 17:26
@timtebeek timtebeek merged commit bd98661 into main Feb 10, 2024
2 checks passed
@timtebeek timtebeek deleted the swagger-to-springdocs branch February 10, 2024 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
boot-3.0 dependencies Pull requests that update a dependency file recipe Recipe requested
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

1 participant