Closed kt81 closed 6 years ago
In some cases, we want to use primitive type as just a response data (string, boolean or number).
Example:
// definition of the api "/ping" { // ... responses: { 200: { description: "Success", schema: { type: "string", example: "pong" } } } // ... }
At present, a definition like below generates Primitive<any> return value. This PR handles such a case.
Primitive<any>
Thank you!
In some cases, we want to use primitive type as just a response data (string, boolean or number).
Example:
At present, a definition like below generates
Primitive<any>
return value. This PR handles such a case.