Ver Fonte

Update container name pattern in swagger.yaml

Signed-off-by: giovanism <giovanism@outlook.co.id>
giovanism há 6 anos atrás
pai
commit
65e68f6222
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:
         - name: "name"
           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"
-          pattern: "/?[a-zA-Z0-9_-]+"
+          pattern: "^/?[a-zA-Z0-9][a-zA-Z0-9_.-]+$"
         - name: "body"
           in: "body"
           description: "Container to create"