You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm failing to use Swagger to generate an Objective-C client that have nested items in the "200" response for a POST operation.
More specifically, my server responds to a certain POST operation with the following json data:
{
"collection_of_stuff": {
"entry_1": "some_string",
"entry_2": "another_string",
"entry_3": "yet_another_string"
}
}
I describe this in Swagger like this:
In other words, the generated code doesn't parse the response at all - it tries to initialize an anonymous NSObject with the raw json string. (Which produces a compilation error.)
The text was updated successfully, but these errors were encountered:
I'm failing to use Swagger to generate an Objective-C client that have nested items in the "200" response for a POST operation.
More specifically, my server responds to a certain POST operation with the following json data:
{
"collection_of_stuff": {
"entry_1": "some_string",
"entry_2": "another_string",
"entry_3": "yet_another_string"
}
}
I describe this in Swagger like this:
...
"definitions": {
"Output": {
"type": "object",
"properties": {
"entry_1": {
"type": "string"
},
"entry_2": {
"type": "string"
},
"entry_3": {
"type": "string"
}
}
}
}
Both the online editor and codegen seems to accept this definition. But the generated Objective-C code looks like this:
In other words, the generated code doesn't parse the response at all - it tries to initialize an anonymous NSObject with the raw json string. (Which produces a compilation error.)
The text was updated successfully, but these errors were encountered: