Search code examples
openapiswagger-2.0

Does Swagger(OpenAPI) 2.0 support tuple type?


I am a noobie. I am trying to document an API with swagger 2.0 yaml and its response is like this

enter image description here

As you can see, the type of 'type' is string, 'id' is integer, 'name' is string. But what type is 'geography'? I was going to put 'object' type but it seems object type is simply a json object.

According to the website, OpenAPI only supports these types string (this includes dates and files) number integer boolean array object


Solution

  • In your example, geography is a string.

    geography:
      type: string