Skip to content

Add content field support for path, query, header, and cookie parameters#26

Merged
Flowneee merged 2 commits into
Flowneee:masterfrom
oriontvv:feature/content-parameter-support
May 21, 2026
Merged

Add content field support for path, query, header, and cookie parameters#26
Flowneee merged 2 commits into
Flowneee:masterfrom
oriontvv:feature/content-parameter-support

Conversation

@oriontvv

Copy link
Copy Markdown
Contributor

Parameters now accept an optional content field (media type string, e.g. "application/json"). When set, the macro emits ParameterValue::Content with a single-entry media type map instead of ParameterValue::Schema, in compliance with the OpenAPI 3.0 spec.

Backward-compatible: existing schema-only usage is unchanged.

Parameters now accept an optional `content` field (media type string,
e.g. "application/json"). When set, the macro emits
`ParameterValue::Content` with a single-entry media type map instead of
`ParameterValue::Schema`, in compliance with the OpenAPI 3.0 spec.

Backward-compatible: existing `schema`-only usage is unchanged.
@oriontvv oriontvv marked this pull request as ready for review May 18, 2026 14:28
@oriontvv

Copy link
Copy Markdown
Contributor Author

@Flowneee review plz

@Flowneee Flowneee merged commit 732cecb into Flowneee:master May 21, 2026
3 checks passed
@oriontvv oriontvv deleted the feature/content-parameter-support branch May 23, 2026 11:54
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.

2 participants