Skip to content

Commit

Permalink
Backport of [VAULT-5887] TypeInt64 support added to OpenApi Spec gene…
Browse files Browse the repository at this point in the history
…ration into release/1.9.x (#15144)

* backport of commit 133c827

* backport of commit 6b3c594

Co-authored-by: Annalise Diroff <adiroff@hashicorp.com>
  • Loading branch information
hc-github-team-secure-vault-core and AnPucel committed Apr 22, 2022
1 parent a2a7bd0 commit 34f0ee9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions changelog/15104.txt
@@ -0,0 +1,3 @@
```release-note:bug
sdk: Fix OpenApi spec generator to properly convert TypeInt64 to OAS supported int64
```
3 changes: 3 additions & 0 deletions sdk/framework/openapi.go
Expand Up @@ -556,6 +556,9 @@ func convertType(t FieldType) schemaType {
ret.format = "lowercase"
case TypeInt:
ret.baseType = "integer"
case TypeInt64:
ret.baseType = "integer"
ret.format = "int64"
case TypeDurationSecond, TypeSignedDurationSecond:
ret.baseType = "integer"
ret.format = "seconds"
Expand Down

0 comments on commit 34f0ee9

Please sign in to comment.