Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug : mock mode return string not compliant ( missing " " ) #143

Open
LasneF opened this issue Dec 20, 2024 · 0 comments
Open

Bug : mock mode return string not compliant ( missing " " ) #143

LasneF opened this issue Dec 20, 2024 · 0 comments

Comments

@LasneF
Copy link

LasneF commented Dec 20, 2024

given this spec

openapi: 3.0.0
info:
  title: Sample API
  description: Optional multiline or single-line description in [CommonMark](http://commonmark.org/help/) or HTML.
  version: 0.1.9



paths:
  /toto:
    get:
      responses:
        "200": # status code
          description: A JSON array of user names
          content:
            application/json:
              schema:
                  type: string

GET /toto

return bob , should return "bob" it misses the " so it is not valid json

notice that when changing the schema to

type : object
properties :
"jo" :
type : string

it returns correctly { "jo" : "bob" }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant