-
Notifications
You must be signed in to change notification settings - Fork 22
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
meaningless entryTypeDefinition.aCollectionOf property defiition #114
Comments
@jrambla This issue by @redmitry was also found by our work on the code generator. The file aCollectionOf:
description: If the entry type...
includedConcepts:
type: array
$ref: ../common/basicElement.yaml I'm not sure what is the reason for the aCollectionOf:
description: If the entry type...
type: array
$ref: ../common/basicElement.yaml Note: |
This one is trickier , IMO, as it will break the current implementations. |
The point is that the current schema is wrong. "aCollectionOf": {
"description": "If the entry...",
"type": "object",
"properties": {
"includedConcepts": {
"type": "array",
"items": {
"$ref": "../common/basicElement.json"
}
}
}
} OR (IMO what the intention was): "aCollectionOf": {
"description": "If the entry...",
"type": "array",
"items": {
"$ref": "../common/basicElement.json"
}
} Cheers, D. |
IMU, the second one will be a breaking change while the first one is not (THIS is the important thing to me). |
No. The current schema is just invalid. So we can't break something that is already broken. "aCollectionOf": {
"description": "If the entry...",
"includedConcepts": { here the "includedConcepts" should be ignored by schema parser. If the intention was to define a property, e.g. for json like: {
"aCollectionOf": {
"includedConcepts":
}
} this is 1. Actually, there are two errors in the schema. "includedConcepts": {
"$ref": "../common/basicElement.json",
"type": "array"
} "includedConcepts" is "type": "array",
"items": {
"$ref": "../common/basicElement.json"
} |
@redmitry can you do a PR for the option:
Thanks! |
Hi all,
There is invalid entryTypeDefinition.aCollectionOf property definition in the spec.
"includedConcepts"
here is something to be ignored by schemas, so basically equivalentBest,
Dmitry
The text was updated successfully, but these errors were encountered: