File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change 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 )))
You can’t perform that action at this time.
0 commit comments