Ver Fonte

Merge pull request #39075 from giovanism/39067-swagger

Update container name pattern in swagger.yaml
Sebastiaan van Stijn há 6 anos atrás
pai
commit
66edc40e86
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      api/swagger.yaml

+ 2 - 2
api/swagger.yaml

@@ -4611,9 +4611,9 @@ paths:
       parameters:
       parameters:
         - name: "name"
         - name: "name"
           in: "query"
           in: "query"
-          description: "Assign the specified name to the container. Must match `/?[a-zA-Z0-9_-]+`."
+          description: "Assign the specified name to the container. Must match `/?[a-zA-Z0-9][a-zA-Z0-9_.-]+`."
           type: "string"
           type: "string"
-          pattern: "/?[a-zA-Z0-9_-]+"
+          pattern: "^/?[a-zA-Z0-9][a-zA-Z0-9_.-]+$"
         - name: "body"
         - name: "body"
           in: "body"
           in: "body"
           description: "Container to create"
           description: "Container to create"