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
toJSONString() produces invalid JSON when containing string values.
Swagger-codegen version
swagger-codegen-cli-2.4.0-20180821.200234-311
Swagger declaration file content or url
swagger: "2.0"info:
description: ""title: "repro"version: "1"paths:
/pet:
post:
tags:
- "pet"summary: "Add a new pet to the store"description: ""operationId: "addPet"parameters:
- in: "body"name: "body"description: "Pet object that needs to be added to the store"required: trueschema:
$ref: "#/definitions/Pet"responses:
200:
description: ""definitions:
Pet:
type: "object"properties:
foo:
type: string
Command line used for generation
java -jar swagger-codegen-cli-2.4.0-20180821.200234-311.jar generate --lang r -i swagger.yaml
Description
toJSONString()
produces invalid JSON when containing string values.Swagger-codegen version
swagger-codegen-cli-2.4.0-20180821.200234-311
Swagger declaration file content or url
Command line used for generation
java -jar swagger-codegen-cli-2.4.0-20180821.200234-311.jar generate --lang r -i swagger.yaml
Steps to reproduce
Related issues/PRs
#8610
Suggest a fix/enhancement
Quote string values.
The text was updated successfully, but these errors were encountered: