Browse code

Merge pull request #39075 from giovanism/39067-swagger

Update container name pattern in swagger.yaml

Sebastiaan van Stijn authored on 2019/04/15 23:24:43
Showing 1 changed files
... ...
@@ -4611,9 +4611,9 @@ paths:
4611 4611
       parameters:
4612 4612
         - name: "name"
4613 4613
           in: "query"
4614
-          description: "Assign the specified name to the container. Must match `/?[a-zA-Z0-9_-]+`."
4614
+          description: "Assign the specified name to the container. Must match `/?[a-zA-Z0-9][a-zA-Z0-9_.-]+`."
4615 4615
           type: "string"
4616
-          pattern: "/?[a-zA-Z0-9_-]+"
4616
+          pattern: "^/?[a-zA-Z0-9][a-zA-Z0-9_.-]+$"
4617 4617
         - name: "body"
4618 4618
           in: "body"
4619 4619
           description: "Container to create"