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

"ExampleValue can only be a primitive or an array" #89

Open
martinbonnin opened this issue Sep 29, 2024 · 0 comments
Open

"ExampleValue can only be a primitive or an array" #89

martinbonnin opened this issue Sep 29, 2024 · 0 comments

Comments

@martinbonnin
Copy link

martinbonnin commented Sep 29, 2024

Composite examples are not handled:

openapi: 3.0.1
info:
  title: Hello World API
  description: A sample API to demonstrate authentication and connectivity
  version: '1.0'
paths:
  /hello-world:
    put:
      operationId: hello-world
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
              example:
                name: "Foo"
      responses:
        '200':
          description: updated

Output:

ExampleValue can only be a primitive or an array, found {"name":"Foo"}
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