Skip to content

Commit f92b19c

Browse files
author
Andrew Gray
committed
Handle bools
1 parent fc1f6ec commit f92b19c

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

hcs/swagger.json

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1326,6 +1326,15 @@
13261326
},
13271327
"description": "Tier represents one billing tier of a price dimension."
13281328
},
1329+
"hashicorp.cloud.consulama.ama.Boolean": {
1330+
"type": "string",
1331+
"enum": [
1332+
"FALSE",
1333+
"TRUE"
1334+
],
1335+
"default": "FALSE",
1336+
"title": "Boolean is an enum for handling true/false values as Azure swagger validation doesn't\nlike bools: \nhttps://github.com/Azure/azure-rest-api-specs/blob/master/documentation/openapi-authoring-automated-guidelines.md#r3018"
1337+
},
13291338
"hashicorp.cloud.consulama.ama.ClusterMode": {
13301339
"type": "string",
13311340
"enum": [
@@ -2111,8 +2120,7 @@
21112120
"description": "snapshot_id is the ID of the Consul snapshot to restore."
21122121
},
21132122
"takeSnapshot": {
2114-
"type": "boolean",
2115-
"format": "boolean",
2123+
"$ref": "#/definitions/hashicorp.cloud.consulama.ama.Boolean",
21162124
"description": "take_snapshot determines if a snapshot should be taken before performing a restore."
21172125
}
21182126
},

0 commit comments

Comments
 (0)