Unknown format integer is used in schema at path "...
# pactflow
v
Unknown format integer is used in schema at path "#/properties/price" https://github.com/pactflow/example-bi-directional-provider-postman/blob/master/oas/swagger.yml In the above example swagger file, if I change the price property type from number to integer and introduce format as int32 based on the below documentation: https://swagger.io/specification/v3/ I am getting the Unknown format integer is used in schema at path "#/properties/price" Please note if I keep the type as number - all good but in our company, providers are using integer format.
đź‘‹ 1
m
Hi! It should work with something like this:
Copy code
price:
  type: integer
  format: int32
  example: 99.99
You folks are running on-prem right? Do you know which version you’re on?
Is that what you’re doing?
oh, I think you’re saying:
Copy code
price:
  type: number
  format: integer
  example: 99.99
That doesn’t work on the latest on-prem, however in the next release it should, as it uses a newer validator version. Is that an allowed format type though?
v
Thanks @Matt (pactflow.io / pact-js / pact-go) Noticed it is failing because the type is integer and the format is integer rather than int32/int64 We are letting the development team to correct the format type
👍 1