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
{{ message }}
Repository navigation
use 'OpenAPI link' to detect relations between entities #129
In order to reference the resources between themselves (embeddeds or relations), the library guesses embeddeds or references from property names.
For instance if a book schema has a reviews property, the library tries to find a Review resource.
If there is, a relation or an embedded between Book and Review resources is made for the reviews field.
The property name can also be like review_id, reviewId, review_ids or reviewIds for references.
OpenAPI links is a new feature. Only a few schemas use it (API Platform does not).
But it can be an improvement: if links are used in the schema, do not guess the relations.
It should be an optional config parameter though.
Activity
alanpoulain commentedon Dec 12, 2022
OpenAPI links is a new feature. Only a few schemas use it (API Platform does not).
But it can be an improvement: if links are used in the schema, do not guess the relations.
It should be an optional config parameter though.