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

Swagger UI 5.4.2 Redoc 2.1.1 #1179

Merged
merged 1 commit into from
Sep 13, 2023

Conversation

altro3
Copy link
Collaborator

@altro3 altro3 commented Aug 26, 2023

Also:

  • Allow null values for extensions properties in openapi object
  • Added Swagger UI property persistAuthorization

Fixed #1178

@altro3 altro3 requested a review from graemerocher August 26, 2023 07:25
Redoc 2.1.1
Allow null values for extensions properties in openapi object

Added Swagger UI property persistAuthorization

Fixed micronaut-projects#1178
@@ -36,6 +37,7 @@
public abstract class OpenAPIMixin {

@JsonAnyGetter
@JsonInclude
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is @JsonInclude necessary? Do we have any test to verify it is necessary?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sdelamo Yeas, it necessary. We don't need to test it. These classes just copied from swagger-core project. This change i got from here: swagger-api/swagger-core#4468

I keep these classes up to date all the time. Why did I copy this piece from swagger-core? For two reasons:

  1. This allowed me to remove a bunch of unnecessary dependencies from the project, i.e. from swagger-core, we used only the jackson settings.

  2. Now there is a possibility to customize logic, due to this we managed to fix a couple of problems in serialization / deserialization.

@sdelamo sdelamo merged commit 10869e4 into micronaut-projects:master Sep 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Allow Setting of persistAuthorization for Swagger UI Authorization
3 participants