Skip to content

OpenAPISpecPathItem does not support path level "Common Parameters" #5760

@tatemz

Description

@tatemz

What version of Effect is running?

3.19.4

What steps can reproduce the bug?

Open API Common Parameters are supported at the path level.

Today only method keys are allowed on path items: https://github.com/Effect-TS/effect/blob/effect%403.19.4/packages/platform/src/OpenApi.ts#L590-L592

What is the expected behavior?

export type OpenAPISpecPathItem = {
  [K in OpenAPISpecMethodName]?: OpenAPISpecOperation
} & {
  parameters: Array<OpenAPISpecParameter>
}

What do you see instead?

export type OpenAPISpecPathItem = {
  [K in OpenAPISpecMethodName]?: OpenAPISpecOperation
}

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions