We have the following situation: In our API we can eager load other projects like this /user?includes=projects
this results in a nested response
{
"name": "John",
...
"projects": [
{
"title": "Example"
...
}
]
}
If we call the endpoint without the includes /user
the response does not include the projects
{
"name": "John",
...
}
How would you document this in OpenAPI 3?