Skip to content

Commit f0d9826

Browse files
committed
Define the representation for a tag.
Signed-off-by: Brian de Alwis <[email protected]>
1 parent f576ba2 commit f0d9826

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

spec.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,11 +137,15 @@ Typically, the first step in pulling an artifact is to retrieve the manifest. Ho
137137
To pull a manifest, perform a `GET` request to a URL in the following form:
138138
`/v2/<name>/manifests/<reference>` <sup>[end-3](#endpoints)</sup>
139139

140-
`<name>` refers to the namespace of the repository. `<reference>` MUST be either (a) the digest of the manifest or (b) a tag name.
140+
`<name>` refers to the namespace of the repository. `<reference>` MUST be either (a) the digest of the manifest or (b) a tag.
141141
The `<reference>` MUST NOT be in any other format. Throughout this document, `<name>` MUST match the following regular expression:
142142

143143
`[a-z0-9]+([._-][a-z0-9]+)*(/[a-z0-9]+([._-][a-z0-9]+)*)*`
144144

145+
Throughout this document, `<reference>` as a tag MUST be at most 128 characters in length and MUST match the following regular expression:
146+
147+
`[a-zA-Z0-9_]+[a-zA-Z0-9._-]*`
148+
145149
The client SHOULD include an `Accept` header indicating which manifest content types it supports.
146150
In a successful response, the `Content-Type` header will indicate the type of the returned manifest.
147151
For more information on the use of `Accept` headers and content negotiation, please see [Content Negotiation](./content-negotiation.md)

0 commit comments

Comments
 (0)