You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to describe RequestBody for multipart/form-data content-type with encoding to particular fields
Description
The multipart/form-data content-type allows you to describe "contentType" for individual fields.
Right now I am receiving the problem like the following:
Feature "form content encoding" is not implemented yet.
Try to create ogen.yml with:
generator:
ignore_not_implemented: "form content encoding"
or
generator:
ignore_not_implemented: ["all"]
to skip unsupported operations.
generation failed:
main.run
/home/oleg/go/pkg/mod/github.com/ogen-go/ogen@v0.81.1/cmd/ogen/main.go:308
exit status 1
make: *** [Makefile:80: api/client/example/ogen/oas_client_gen.go] Error 1
for the following RequestBody
requestBodies:
PetCreate:
content:
multipart/form-data:
encoding:
document:
contentType: application/vc+ld+json
pet:
contentType: application/json
tags:
contentType: application/json
schema:
$ref: '#/components/schemas/PetCreate'
required: true
PetUpdate:
content:
multipart/form-data:
encoding:
document:
contentType: application/vc+ld+json
pet:
contentType: application/json
tags:
contentType: application/json
schema:
$ref: '#/components/schemas/PetUpdate'
required: true
schemas:
PetCreate:
type: object
description: Schema for create pet's resource.
required:
- tags
- document
- pet
properties:
tags:
$ref: #/components/schemas/Tags
document:
type: string
format: binary
description: Schema for document linked to pet's resource.
pet:
$ref: '#/components/schemas/Pet'
PetDocument:
type: string
format: binary
description: Schema for document linked to pet's resource.
TagKey:
type: string
description: Key of tag of resource.
TagValue:
type: string
description: Value of the tag of the resource.
Tags:
type: object
additionalProperties:
$ref: '#/components/schemas/TagValue'
Pet:
type: object
description: A pet.
required:
- nickname
- issued
properties:
nickname:
type: string
description: Nickname of a pet.
issued:
type: string
format: date
description: Issuance date.
readOnly: true
I would like to describe RequestBody for multipart/form-data content-type with encoding to particular fields
Description
The multipart/form-data content-type allows you to describe "contentType" for individual fields.
Right now I am receiving the problem like the following:
for the following RequestBody
in the config file I specified the following
References
OpenAPI v3.0.3 specification - Encoding Object
The text was updated successfully, but these errors were encountered: