Skip to content

docs: use iris to map a property to an external vocabulary - #2366

Open
Maxcastel wants to merge 1 commit into
api-platform:5.0from
Maxcastel:fix/api-property-iris
Open

Maxcastel wants to merge 1 commit into
api-platform:5.0from
Maxcastel:fix/api-property-iris

Conversation

@Maxcastel

Copy link
Copy Markdown

#[ApiProperty(types: [...])] doesn't change the JSON-LD context since types and iris were split (api-platform/core#4769): the context and the Hydra docs read iris, types is only used as externalDocs in the JSON Schema. With the current example, name is still Book/name in the context.

This uses iris in the examples (external vocabularies, JSON-LD context, file upload, GraphQL) and says what types is for.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant