Skip to content

OpenAPI 3.2: Import whole raw binary request bodies #1016

Open

Description

@CaliLuke

OpenAPI 3.2: Import whole raw binary request bodies

Problem. Importer-only wire-location gap. Whole raw binary response bodies and multipart parts are supported; whole raw request bodies are outside the importer subset.

Reproduce. Run go test ./internal/openapiimport -run '^TestImportedBinaryRepresentationLocations$' -count=1 from the repository root. The focused existing test exercises the current boundary. Minimal schema: OAS 3.2 requestBody required with application/octet-stream: {schema: {type: string, format: binary}}; compare with supported whole response-body occurrence. Existing probe: TestImportedBinaryRepresentationLocations.

Expected behavior. Carry raw request body ownership through importer, rendered DSL, HTTP generated encoder, and OpenAPI regeneration without base64 conversion; test empty/nonempty octets, required/optional bodies, errors, and compile generated Go.

Evidence at revision 98131b0.

Specification. OAS 3.2 §4.24.4.3 and §4.14

Activity

  1. added
    enhancement
    on Oct 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions