Skip to content

Headers should have stricter criteria #36

Description

@charjr

It is invalid to have duplicated parameters. Their uniqueness is defined by a combination of their name and in.

According to the OpenAPI parameter names are case-insensitive. So as far as a valid spec goes param and PARAM are different.

But Headers are case-insensitive. So param and PARAM would be identical. It's a valid spec, but one of them is going to be ignored.

Because it's not invalid, throwing an exception may be harsh but a warning should still be added.

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