agrestio / agrest

Server-side Java REST Framework for easy access to data graphs from various backends
https://agrest.io
Apache License 2.0
81 stars 34 forks source link

OpenAPI docs for EntityUpdate should include relationships #607

Closed andrus closed 1 year ago

andrus commented 1 year ago

Currently, generated OpenAPI descriptors for EntityUpdate<T> only include entity attributes. They should also include to-one and to-many relationships with the corresponding target entity ID descriptors. Of course we can't simply use a "ref" to the T entity here, as on update we only take an id (for to-one) or arrays of IDs (for to-many).