Skip to content

Commit 4ceae34

Browse files
committed
Allow null values
1 parent 92a1de9 commit 4ceae34

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

infrastructure/swagger/07_components--schemas--domain.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ components:
5858
status: "active"
5959
created_on: "2024-10-15T10:00:00Z"
6060
updated_on: "2024-10-15T10:00:00Z"
61-
deleted_on: null
61+
deleted_on: "null"
6262
keys:
6363
- key_type: "product_team_id_alias"
6464
key_value: "FOOBAR"
@@ -103,7 +103,7 @@ components:
103103
key_value: "bar"
104104
created_on: "2024-10-15T10:00:00Z"
105105
updated_on: "2024-10-15T10:00:00Z"
106-
deleted_on: null
106+
deleted_on: "null"
107107

108108
Questionnaire:
109109
type: object
@@ -130,7 +130,7 @@ components:
130130
key_value: "bar"
131131
created_on: "2024-10-15T10:00:00Z"
132132
updated_on: "2024-10-15T10:00:00Z"
133-
deleted_on: null
133+
deleted_on: "null"
134134

135135
DeviceResponse:
136136
type: object
@@ -233,8 +233,8 @@ components:
233233
- key_type: "foo"
234234
key_value: "bar"
235235
created_on: "2025-10-15T10:00:00Z"
236-
updated_on: null
237-
deleted_on: null
236+
updated_on: "null"
237+
deleted_on: "null"
238238

239239
DeviceRefDataSearchResponse:
240240
type: object
@@ -254,5 +254,5 @@ components:
254254
- key_type: "foo"
255255
key_value: "bar"
256256
created_on: "2024-10-15T10:00:00Z"
257-
updated_on: null
258-
deleted_on: null
257+
updated_on: "null"
258+
deleted_on: "null"

scripts/infrastructure/swagger/merge.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,7 @@ function _02_clean(){
4747
yq 'del(.x-ibm-configuration)' |
4848
yq 'del(.components.schemas.*.discriminator)' |
4949
yq 'explode(.)' |
50-
yq '(.. | select(style == "single")) style |= "double"' |
51-
# Remove null dead-ends
52-
yq 'del(.. | select(. == null))' \
50+
yq '(.. | select(style == "single")) style |= "double"' \
5351
> ${_02_CLEAN_FILE}
5452
validate_yaml ${_02_CLEAN_FILE}
5553
}

0 commit comments

Comments
 (0)