Standardize label validation in JSON schemas to conform with GCP platform limits (#4021)
Co-authored-by: Ludovico Magnocavallo <ludomagno@google.com>
This commit is contained in:
@@ -11,7 +11,14 @@
|
||||
"type": "string"
|
||||
},
|
||||
"labels": {
|
||||
"type": "object"
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"patternProperties": {
|
||||
"^[a-z][a-z0-9_-]{0,62}$": {
|
||||
"type": "string",
|
||||
"pattern": "^[a-z0-9_-]{0,63}$"
|
||||
}
|
||||
}
|
||||
},
|
||||
"metadata_template": {
|
||||
"type": "string"
|
||||
|
||||
@@ -9,6 +9,9 @@
|
||||
- **description**: *string*
|
||||
- **display_name**: *string*
|
||||
- **labels**: *object*
|
||||
<br>*additional properties: false*
|
||||
- **`^[a-z][a-z0-9_-]{0,62}$`**: *string*
|
||||
<br>*pattern: ^[a-z0-9_-]{0,63}$*
|
||||
- **metadata_template**: *string*
|
||||
- **iam**: *reference([iam](#refs-iam))*
|
||||
- **iam_bindings**: *reference([iam_bindings](#refs-iam_bindings))*
|
||||
|
||||
Reference in New Issue
Block a user