Skip to content

Document JSON query parameters using content - #1078

Open
Sanjays2402 wants to merge 2 commits into
marshmallow-code:devfrom
Sanjays2402:docs/json-query-parameters
Open

Sanjays2402 wants to merge 2 commits into
marshmallow-code:devfrom
Sanjays2402:docs/json-query-parameters

Conversation

@Sanjays2402

Copy link
Copy Markdown

Related to #922.

Add a complete OpenAPI 3 example for a JSON query parameter using an explicit parameter component with content. The example registers a Marshmallow schema, resolves it inside application/json, and references the reusable parameter from a GET operation. Explain the schema/content exclusivity rule, the single media type requirement, and the distinction from parameters generated directly from a Marshmallow schema.

This documents the existing explicit dictionary API and does not change Marshmallow parameter hooks.

Validation: executed the exact documentation code block, validated the resulting document with openapi-spec-validator, and checked both component references. The Sphinx HTML build passed with warnings treated as errors; all 636 existing tests passed (6 skipped). Prepared with Codex.

This branch has not been deployed

No deployments
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