Skip to content

Commit eee8749

Browse files
authored
Merge pull request opencontainers#529 from wking/rfc-3339
config: Require RFC 3339's more restricted version of ISO 8601
2 parents 84072d8 + 83915d0 commit eee8749

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

config.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Note: Any OPTIONAL field MAY also be set to null, which is equivalent to being a
5151

5252
- **created** *string*, OPTIONAL
5353

54-
An ISO-8601 formatted combined date and time at which the image was created.
54+
An combined date and time at which the image was created, formatted as defined by [RFC 3339, section 5.6][rfc3339-s5.6].
5555

5656
- **author** *string*, OPTIONAL
5757

@@ -146,7 +146,7 @@ Note: Any OPTIONAL field MAY also be set to null, which is equivalent to being a
146146

147147
- **created** *string*, OPTIONAL
148148

149-
Creation time, expressed as an ISO-8601 formatted combined date and time.
149+
A combined date and time at which the layer was created, formatted as defined by [RFC 3339, section 5.6][rfc3339-s5.6].
150150

151151
- **author** *string*, OPTIONAL
152152

@@ -228,4 +228,5 @@ Here is an example image configuration JSON document:
228228
}
229229
```
230230

231+
[rfc3339-s5.6]: https://tools.ietf.org/html/rfc3339#section-5.6
231232
[runtime-platform]: https://github.com/opencontainers/runtime-spec/blob/v1.0.0-rc2/config.md#platform

specs-go/v1/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ type History struct {
7171
// Image is the JSON structure which describes some basic information about the image.
7272
// This provides the `application/vnd.oci.image.config.v1+json` mediatype when marshalled to JSON.
7373
type Image struct {
74-
// Created defines an ISO-8601 formatted combined date and time at which the image was created.
74+
// Created is the combined date and time at which the image was created, formatted as defined by RFC 3339, section 5.6.
7575
Created string `json:"created,omitempty"`
7676

7777
// Author defines the name and/or email address of the person or entity which created and is responsible for maintaining the image.

0 commit comments

Comments
 (0)