-
Notifications
You must be signed in to change notification settings - Fork 596
schema: fix two regressions #1307
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
Conversation
commit af0d16d introduced the regression. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
| "items": [ | ||
| { | ||
| "$ref": "defs-vm.json#/definitions/IOMemEntryFormat" | ||
| } | ||
| ] | ||
| "items": { | ||
| "anyOf": [ | ||
| { | ||
| "$ref": "defs-vm.json#/definitions/IOMemEntryFormat" | ||
| } | ||
| ] | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not 100% sure if I understand this one; isn't items with a direct reference in it valid as well? That format is used in various other places, e.g.;
Lines 157 to 168 in fd25dd3
| "uidMappings": { | |
| "type": "array", | |
| "items": { | |
| "$ref": "#/definitions/IDMapping" | |
| } | |
| }, | |
| "gidMappings": { | |
| "type": "array", | |
| "items": { | |
| "$ref": "#/definitions/IDMapping" | |
| } | |
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it should an object, not an array.
I'll drop the anyOf.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh! I see it now; it was using an array for the items 👍 (sorry, the $anyOf put me on the wrong foot)
commit af0d16d introduced the regression. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
thaJeztah
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
marquiz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
|
@opencontainers/runtime-spec-maintainers PTAL |
commit af0d16d introduced the issues