Skip to content

Commit 3389975

Browse files
committed
schema validate container_name with regex
Provides a better editing experience Signed-off-by: kpbaks <kristoffer.pbs@tuta.io>
1 parent 8da9902 commit 3389975

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

schema/compose-spec.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,8 @@
206206
},
207207
"container_name": {
208208
"type": "string",
209-
"description": "Specify a custom container name, rather than a generated default name."
209+
"description": "Specify a custom container name, rather than a generated default name.",
210+
"pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+"
210211
},
211212
"cpu_count": {
212213
"oneOf": [

0 commit comments

Comments
 (0)