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

Add support extra Schemas #1610

Merged
merged 1 commit into from
Jul 5, 2024

Conversation

altro3
Copy link
Collaborator

@altro3 altro3 commented Jun 30, 2024

Move schema definition logic to different class

Fixed #1598

*/
@Internal
@SupportedOptions(MICRONAUT_OPENAPI_ENABLED)
public class OpenApiExtraSchemaVisitor implements TypeElementVisitor<Object, Object> {
Copy link
Contributor

Choose a reason for hiding this comment

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

override getVisitorKind and return ISOLATING since this processes just a single annotation

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

if I set ISOLATING kind, it doesn't work

@graemerocher graemerocher added the type: enhancement New feature or request label Jul 1, 2024
@altro3 altro3 force-pushed the extra-schemas branch 5 times, most recently from 7518b61 to 2423d33 Compare July 2, 2024 07:24
@graemerocher
Copy link
Contributor

could you target the 6.12.x branch?

@altro3 altro3 changed the base branch from 6.11.x to 6.12.x July 3, 2024 07:15
@altro3
Copy link
Collaborator Author

altro3 commented Jul 3, 2024

could you target the 6.12.x branch?

@graemerocher done

@graemerocher graemerocher merged commit e84043f into micronaut-projects:6.12.x Jul 5, 2024
6 checks passed
@graemerocher
Copy link
Contributor

Thanks for the contribution

altro3 added a commit to altro3/micronaut-openapi that referenced this pull request Jul 9, 2024
Move schema definition logic to different class

Fixed micronaut-projects#1598
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement New feature or request
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Allow the ability to register extra models to the OpenAPI schema
2 participants