0
votes

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

1
geography is a string, not a tuple. A tuple would look like this. - Helen

1 Answers

1
votes

In your example, geography is a string.

geography:
  type: string