Hi everybody,
I've been trying the perl client generator from Swagger. It looks like 
there is a problem in handling Number in the response object 
I defined the property as following: 
  type: number
  format: int32 

In the Perl code, the datatype is "Number.

But in the _deserialize function, it looks for 'int', 'double', 'string', 
'boolean'. Only these datatype are deserialized as i. Since 'Number' is not 
in the list, the library tries to deserialize the property as a hash and 
fails. I had to manually add 'Number' to the list for the library to work.

Even "int" is not a a valid typer according to the specs 
(http://swagger.io/specification/#securityDefinitionsObject), it should be 
integer. 'double' is not a type but a format. I'm very new to Swagger, did 
I misunderstand anything?

Thank you
Julien Sobrier

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to