Skip to content

Embedded HAL results on collection #106

@scottux

Description

@scottux

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions