-
Notifications
You must be signed in to change notification settings - Fork 7
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
Cannot add a role to a contributor #53
Comments
It is linked to the latest modification; we have to add a |
good catch, thanks. we should check the properties match eventually, but for now let's only change it so it passes. Could you do it? |
Adding a reply to this. Should the correct syntax be the following in this instance? "author": [
{
"id": "_:author_1",
"type": "Person",
"givenName": "test"
},
{
"type": "schema:Role",
"schema:author": "_:author_1",
"schema:roleName": "test",
"schema:startDate": "2024-08-15"
}
],
"contributor": [
{
"id": "_:contributor_1",
"type": "Person",
"givenName": "Test 2"
},
{
"type": "schema:Role",
"schema:contributor": "_:contributor_1",
"schema:roleName": "Test3"
}
] |
|
@progval so both are valid? "contributor": [
{
"id": "_:contributor_1",
"type": "Person",
"givenName": "Test 2"
},
{
"type": "schema:Role",
"schema:contributor": "_:contributor_1",
"schema:roleName": "Test3"
}
],
"contributor": [
{
"id": "_:contributor_1",
"type": "Person",
"givenName": "Test 2"
},
{
"type": "schema:Role",
"contributor": "_:contributor_1",
"schema:roleName": "Test3"
}
] |
yes, both are semantically equivalent |
Gotcha. It's just that the validator was failing on them. I guess we shall need to wait for an update to the generator |
When adding a role to a contributor (not an author), I get the error
Unknown field "contributor" in "contributor".
cc @hjonin
The text was updated successfully, but these errors were encountered: