Skip to content

feat(hydra): read hydra:property from ApiProperty::jsonLdContext #6240

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 23, 2024

Conversation

soyuka
Copy link
Member

@soyuka soyuka commented Mar 22, 2024

Allows to add informations to the hydra:property documentation:

class Dummy {
    #[ApiProperty(jsonLdContext: ['hydra:property' => ['rdfs:label' => 'change this value', 'owl:maxCardinality' => 5]]);
    public array $foo;
}

Previously only @type was read from getIris, this brings more flexibility.

@soyuka soyuka force-pushed the feat/hydra-jsonldcontext branch from 1d14799 to e0ab86f Compare March 22, 2024 09:40
@soyuka soyuka merged commit 31d24ac into api-platform:main Mar 23, 2024
78 checks passed
@soyuka soyuka deleted the feat/hydra-jsonldcontext branch March 23, 2024 09:34
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