fix: use int32/int64 formats for integer types
Fixed integer type mapping in OpenAPI 2.0: replaced the invalid integer format with int32/int64 and added the toSwaggerFormat function to map PostgreSQL types to valid OpenAPI 2.0 formats: smallint -> int32 integer -> int32 bigint -> int64
This commit is contained in:
committed by
Steve Chavez
parent
250747aadc
commit
0d4d1dca51
@@ -281,7 +281,7 @@ spec =
|
||||
"properties" : {
|
||||
"id" : {
|
||||
"description" : "Note:\nThis is a Primary Key.<pk/>",
|
||||
"format" : "integer",
|
||||
"format" : "int32",
|
||||
"type" : "integer"
|
||||
},
|
||||
"name" : {
|
||||
@@ -310,7 +310,7 @@ spec =
|
||||
"properties" : {
|
||||
"id" : {
|
||||
"description" : "Note:\nThis is a Primary Key.<pk/>",
|
||||
"format" : "integer",
|
||||
"format" : "int32",
|
||||
"type" : "integer"
|
||||
},
|
||||
"name" : {
|
||||
@@ -339,7 +339,7 @@ spec =
|
||||
"properties" : {
|
||||
"id" : {
|
||||
"description" : "Note:\nThis is a Primary Key.<pk/>",
|
||||
"format" : "integer",
|
||||
"format" : "int32",
|
||||
"type" : "integer"
|
||||
},
|
||||
"name" : {
|
||||
@@ -368,7 +368,7 @@ spec =
|
||||
"properties" : {
|
||||
"id" : {
|
||||
"description" : "Note:\nThis is a Primary Key.<pk/>",
|
||||
"format" : "integer",
|
||||
"format" : "int32",
|
||||
"type" : "integer"
|
||||
},
|
||||
"another_value" : {
|
||||
|
||||
Reference in New Issue
Block a user