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

How to define properties on @Schema? #4614

Open
andlbrei opened this issue Feb 6, 2024 · 0 comments
Open

How to define properties on @Schema? #4614

andlbrei opened this issue Feb 6, 2024 · 0 comments

Comments

@andlbrei
Copy link

andlbrei commented Feb 6, 2024

Hello,

I am having issues trying to set properties on a @Schema. I see the field is there on the class, but I can't figure out how to use it.
I see from issue #3547 that the same question has been asked before, and the issue is closed, but from the examples it seems as though the way to implement this is through the @Content annotation, which does not seem to solve the issue that was originally opened.
Using @Content makes some sense at the root level, but not further down.

Link to example referred to in the previous issue:
https://github.com/swagger-api/swagger-core/blob/158a57a180d98b1413309a4fd6096c5f7f54bff7/modules/swagger-jaxrs2/src/test/java/io/swagger/v3/jaxrs2/resources/SchemaPropertiesResource.java

How does one set properties on a @Schema directly?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant