We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug When using @JsonValue from Jackson, the @Schema on the field is not picked up by swagger and not present in the docs.
@JsonValue
@Schema
To Reproduce
class Request { @Schema(description = "Description of ID.") private Id id; public Id getId() { return id; } public void setId(Id id) { this.id = id; } }
class Id { private String value; @JsonValue public String getValue() { return value; } }
Actual API docs
{ "components": { "schemas": { "Request": { "type": "object", "properties": { "id": { "type": "string" } } } } } }
Expected behavior Expected API Docs
{ "components": { "schemas": { "Request": { "type": "object", "properties": { "id": { "type": "string", "description": "Description of ID." } } } } } }
The text was updated successfully, but these errors were encountered:
@martin-tarjanyi,
The resolution is not handled by springdoc-openapi. You can check the following schema, generated by swagger-core.
ResolvedSchema resolvedSchema = ModelConverters.getInstance() .resolveAsResolvedSchema( new AnnotatedType(Request.class));
You can ask the swagger-core project instead.
Sorry, something went wrong.
No branches or pull requests
Describe the bug
When using
@JsonValue
from Jackson, the@Schema
on the field is not picked up by swagger and not present in the docs.To Reproduce
Actual API docs
Expected behavior
Expected API Docs
The text was updated successfully, but these errors were encountered: