Skip to content

Commit c65f494

Browse files
committed
fix(patch): remove obsolete patch line
1 parent b8af961 commit c65f494

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

patch.jq

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
# Change components' schema definitions
22
.components.schemas."Instance Flavor Fields".properties.ram.type = "number" |
33
.components.schemas."Flavor Fields".properties.ram.type = "number" |
4-
.components.schemas."Images".properties.data = .components.schemas.Images.properties.images | del(.components.schemas.Images.properties.images) |
54
.components.schemas."Volume Fields".properties.size.type = "integer" |
65

76
# Remove spaces in schema definitions to conform with the specs
87
.components.schemas |= (to_entries | map({key: (.key | gsub(" |%20"; "")), value: .value}) | from_entries) |
98

109
# Fix references to these schemas
11-
walk(if type == "object" then with_entries( if .key == "$ref" then .value |= gsub(" |%20"; "") end) else . end) |
10+
walk(if type == "object" then with_entries( if .key == "$ref" then .value |= gsub(" |%20"; "") else . end) else . end) |
1211

1312
# Remove duplicate tags
1413
.tags |= (map(.key = .name | .value = .description) | from_entries | to_entries | map(.name = .key | .description = .value | del(.key, .value)))

0 commit comments

Comments
 (0)