You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's not clear whether optional fields in manifests and descriptors can be null. By extension, it's also not clear whether or not the canonicalized form of a manifest should omit or set to null any optional fields that are not provided.
I noticed that the config spec and schema allows that optional fields may be null:
From the Go implementations, the preference is to omit the field, rather than explicitly set it to null, in the JSON. That's seen with omitempty defined on various fields. I don't believe this is a hard requirement, but it's a convention you'll see from most implementations.
It's not clear whether optional fields in manifests and descriptors can be null. By extension, it's also not clear whether or not the canonicalized form of a manifest should omit or set to null any optional fields that are not provided.
I noticed that the config spec and schema allows that optional fields may be null:
image-spec/config.md
Line 93 in 8b9d41f
The schemas for manifests and descriptors don't allow for null values. Should the spec be updated to clarify this? Happy to do that.
The text was updated successfully, but these errors were encountered: