fastapi-hypermodel
fastapi-hypermodel copied to clipboard
Embedded HAL results on collection
Using latest version v2.2.0. Python 3.13 Pydantic 2.11.3
I have tried to follow the Item and ItemCollection example and my collection endpoint returns links, but not the embedded sc:items. The curies are populated in the links as well as the individual self, find, and update links.
The only difference I can see in my code is that I am using routers rather than direct app endpoints.
app.include_router(items.router, prefix="/items", tags=["Items"])
# ...
@router.get(...)
The items are coming from a JSON file currently, but match the example otherwise. I verified the data before the response.
Any help would be appreciated.