Skip to content

Inconsistency in runtime expression examples for request headers #1323

Open
@hkosova

Description

@hkosova

Runtime expression examples include the following:

Source Location example expression notes
Requested media type $request.header.accept
Request parameter $request.path.id Request parameters MUST be declared in the parameters section of the parent operation or they cannot be evaluated. This includes request headers.

The 2nd example says that headers MUST be defined as parameters. But the 1st example refers to the Accept header which is not allowed in parameters.

Is $request.header.accept is an invalid example? Or are runtime expressions supposed to access any request headers?


Similarly, the section about callback path keys provides an example with the Content-Type header:

$request.header.content-Type	application/json

Like Accept, Content-Type is not allowed in parameters. Is this example valid or not?

Metadata

Metadata

Assignees

No one assigned

    Labels

    clarificationrequests to clarify, but not change, part of the spec

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions