Skip to content

Within an OperationObject, a ParametersObject doesn't accept in: path as a valid location #1797

@ChristineBoersen

Description

@ChristineBoersen

Q&A (please complete the following information)

  • Method of installation: Public hosted Testing
  • Swagger-Editor version: Public hosted @ https://editor.swagger.io
  • Swagger/OpenAPI version: OpenAPI 3.0

Content & configuration

Example Swagger/OpenAPI definition:

openapi: 3.0.1
info:
  title: Foo OpenApi Spec
  version: 1.0.0
servers:
  - url: 'https://localhost/BasePath'
paths:
  '/Account/{id}':
    get:
      description: |-
      operationId: Account1
      parameters:
        - name: id
          in: path
          allowEmptyValue: true
          schema:
            type: integer
            format: int32
      responses:
        '200':
          description: |-

Swagger-Editor configuration options:
n/a - using editor.swagger.io as a validator

Describe the bug you're encountering

Validation error of OpenApi schema - within an OperationObject, a ParametersObject doesn't accept in: path as a valid location

To reproduce...

  1. Paste the above YAML into the editor on editor.swagger.io
  2. Read the Errors on the right side

Expected behavior

No validation Errors and for "path" to be an acceptable "in" location

Screenshots

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions