You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to document the following class, which is returned by a Spring-based API:
publicclassCytoscapeJsWrapper
{
...
@Schema ( description =
""" As per Cytoscape.js, this contains a 'data' element, containing node properties (eg, id, type, label, and a few others). See /graphDetails for more information. """
)
publicJsonNodegetNodes ()
{
returnnodes;
}
@Schema ( description =
""" Same as /elements/nodes, with the addition of the 'source' and 'target' properties. """
)
publicJsonNodegetEdges ()
{
returnedges;
}
}
The generated OpenAPI I can see at http://localhost:8080/v3/api-docs/v1:
...
"CytoscapeJsWrapper": {"type": "object","properties": {"nodes": {"$ref": "#/components/schemas/JsonNode"},"edges": {"$ref": "#/components/schemas/JsonNode"}},"description": "The graph obtained from merging all the resulting semantic motif paths..."}...
And only one JsonNode definition in the components section:
...
"JsonNode": {"type": "object","description": "Same as /elements/nodes, with the addition of the 'source' and 'target' properties.\n"}...
While it should apply both the @Schema annotations and describe the two different fields properly.
The text was updated successfully, but these errors were encountered:
I'm trying to document the following class, which is returned by a Spring-based API:
The generated OpenAPI I can see at
http://localhost:8080/v3/api-docs/v1
:And only one JsonNode definition in the
components
section:While it should apply both the
@Schema
annotations and describe the two different fields properly.The text was updated successfully, but these errors were encountered: