How to define double data type in OpenAPI (Swagger)?

Viewed 9308

For integers, I use

userId:
  type: integer
  format: int32

But what if I want to assign the double type?

I tried looking through Swagger documentation but couldn't find the answer.

1 Answers

We can write as

userId:
    type: number
    format: double
Related