Skip to content

feat(Spec): add the OpenAPI 3.2 querystring parameter location - #2414

Merged
DerManoMann merged 1 commit into
zircote:masterfrom
DerManoMann:feat/spec-3.2-querystring
Nov 18, 2026
Merged

DerManoMann merged 1 commit into
zircote:masterfrom
DerManoMann:feat/spec-3.2-querystring

Conversation

@DerManoMann

Copy link
Copy Markdown
Collaborator

Overview

OpenAPI 3.2 adds querystring as a parameter location, for an operation that takes the whole query string as one value. This adds it, with a typed OA\Parameter\Querystring.

Summary

  • A querystring parameter is described by its content, so OA\Parameter\Querystring takes no schema, style or explode
  • 3.2 reports an error for a querystring parameter without content or with schema, style, explode or allowReserved, and for an operation with more than one, or one beside query parameters. Parameters shared through the path item count too
  • A 3.0 or 3.1 document leaves a querystring parameter out whole with a warning, inline, by reference and in components, for example something like Querystring uses in "querystring", not supported in OpenAPI 3.1, omitted
  • A querystring parameter on a method parameter gets no schema from the PHP type

`ParameterIn::Querystring` and a typed `Parameter\Querystring`, which takes `content` and no
`schema`, `style` or `explode`.

3.0 and 3.1 leave a querystring parameter out whole, since `in` is required: inline, by
reference and in `components`, each with a warning. 3.2 reports one without `content` or with
the fields that serialize a schema, and an operation with more than one, or one beside query
parameters. `Types` gives it no schema from the PHP type.
@DerManoMann
DerManoMann merged commit e5a3c15 into zircote:master Nov 18, 2026
20 checks passed
@DerManoMann
DerManoMann deleted the feat/spec-3.2-querystring branch November 18, 2026 01:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant