Skip to content

Instantly share code, notes, and snippets.

@ponelat
Created February 28, 2025 12:21
Show Gist options
  • Save ponelat/18c17d0e388f7318def68fe01a2498f6 to your computer and use it in GitHub Desktop.
Save ponelat/18c17d0e388f7318def68fe01a2498f6 to your computer and use it in GitHub Desktop.
Exploding encoding type
openapi: 3.0.4
info:
title: Encoding
version: '1.0'
paths:
/foo/post:
post:
requestBody:
content:
multipart/form-data:
schema:
$ref: '#/components/schemas/PostBody'
encoding:
intArrProp:
explode: true
responses:
'200':
description: OK
components:
schemas:
PostBody:
type: object
properties:
content:
type: string
nullable: true
intArrProp:
type: array
items:
type: integer
format: int32
nullable: true
additionalProperties: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment