Skip to content

Validation message when oneOf fails for example(s) #1489

@joeljons

Description

@joeljons
Q A
Bug or feature request? ¯\(ツ)
Which Swagger/OpenAPI version? OAS3
Which Swagger-Editor version? 3.1.6
How did you install Swagger-Editor? -
Which broswer & version? Chrome
Which operating system? Windows

Demonstration API definition

openapi: 3.0.0
info:
  version: "validation"
  title: Spec with both example and examples
paths:
  /myPath:
    get:
      responses:
        '200':
          description: OK
          content:
            text/plain:
              example: sample response
              examples:
                foo:
                  value: anonther response

Expected Behavior

One error message that states that I can't have both example and examples in paths['/myPath'].get.responses['200'].content['text/plain']

Current Behavior

Three error messages there neither one of them nails the error description.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions