-
Notifications
You must be signed in to change notification settings - Fork 669
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
descriptor schema: add missing data and artifactType definitions #1022
Conversation
I'm honestly not sure I've done the base64 definition correct. It's basically only a |
59e7093
to
2b0a16b
Compare
updated PTAL |
"base64": { | ||
"type": "string", | ||
"media": { | ||
"binaryEncoding": "base64" |
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.
Shouldn't this be contentEncoding
?
(http://json-schema.org/draft/2020-12/json-schema-validation.html#name-contentencoding)
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 in draft 4 which we are using. See https://json-schema.org/specification-links.html which links to https://datatracker.ietf.org/doc/html/draft-luff-json-hyper-schema-00#section-4.3.1.1
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.
Doh, sorry @vbatts 🙃 ❤️
2b0a16b
to
5f78e4c
Compare
updated PTAL |
Here's a test for invalid base64 (I just removed the required
|
Fixes: opencontainers#1019 Signed-off-by: Vincent Batts <[email protected]>
5f78e4c
to
4136bec
Compare
updated PTAL |
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. Thanks!
descriptor schema: add missing data and artifactType definitions
Fixes: #1019
Signed-off-by: Vincent Batts [email protected]