Closed
Description
When creating a Hateoas CollectionModel with springdoc-openapi, then the naming "content" and "links" is given within the Schema as specified by OpenAPI 3.0. However, these names do not follow the convention of the HAL Specification which is "_embedded" and "_links".
Describe the solution you'd like
It would be nice to change the OpenAPI 3.0 Specification of "content" and "links" to "_embedded" and "_links". It would be more natural to follow the HAL Specification as this is specific for Hateoas 1.0. Result shown below:
"components":{
"schemas": {
"CollectionModel«EntityModel«RelatedCode»»":{
"type":"object",
"properties":{
"_embedded":{
...
},
"_links":{
...
}
},
"title":"CollectionModel«EntityModel«RelatedCode»»"
}
}
}
Links to the specifications
- OpenAPI 3.0 Specification: https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#response-object
- HAL Specification: https://tools.ietf.org/html/draft-kelly-json-hal-08#section-4.1
Metadata
Metadata
Assignees
Labels
No labels