Skip to content
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

Question: How to set proper artifactType #1143

Open
chlins opened this issue Oct 19, 2023 · 2 comments
Open

Question: How to set proper artifactType #1143

chlins opened this issue Oct 19, 2023 · 2 comments

Comments

@chlins
Copy link

chlins commented Oct 19, 2023

By referring to the information provided in the artifact guidelines, users can effectively build non-image artifacts. In cases where an artifact does not have a specific config layer, the config can be supplemented with an empty layer. The media type can be specified in the artifactType field. For instance, an example value is application/vnd.example+type. I would like to clarify the meaning of the +type component in this context. Is it similar to +json or +xml? I am confused because the artifactType already represents the type, so the inclusion of the format type only seems relevant if it pertains to the config.mediaType. Could you please provide more guidance or suggestions on defining a proper artifactType?

@sudo-bmitch
Copy link
Contributor

The artifactType field is defined above:

This OPTIONAL property contains the type of an artifact when the manifest is used for an artifact. This MUST be set when config.mediaType is set to the empty value. If defined, the value MUST comply with RFC 6838, including the naming requirements in its section 4.2, and MAY be registered with IANA. Implementations storing or copying image manifests MUST NOT error on encountering an artifactType that is unknown to the implementation.

See the RFC links for details about the syntax for a media type, and the link to the already registered IANA media types serve as a list of examples.

@KUNNATHFAHAD

This comment has been minimized.

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

No branches or pull requests

3 participants