Hi,

We are using a Swagger 2.0 spec and it has a response entity with an 
integer property with a string example as below

 "person": {
      "type": "object",
      "properties": {
        "age": {
          "type": "integer",
          "description": "Persons age",
          "example": "10000"
        }
      }
   }

Is it valid to define example with a String when the type of property is 
integer?
Should the actual API return an integer or String if this is the case?

Thanks,
Murali

-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to swagger-swaggersocket+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to