Open
Description
Description
Hey, great lib. I was just wondering what is the current status of this feature: complex form schema
I have this reference schema:
openapi: 3.0.4
info:
title: Sample API
description: Optional multiline or single-line description in [CommonMark](http://commonmark.org/help/) or HTML.
version: 0.1.9
servers:
- url: http://api.example.com/v1
description: Optional server description, e.g. Main (production) server
- url: http://staging-api.example.com
description: Optional server description, e.g. Internal staging server for testing
paths:
/users:
post:
summary: Returns a list of users.
description: Optional extended description in CommonMark or HTML.
requestBody:
required: true
content:
multipart/form-data:
schema:
oneOf:
- $ref: '#/components/schemas/MLModel'
- $ref: '#/components/schemas/FMModel'
discriminator:
propertyName: type
mapping:
ML: '#/components/schemas/MLModel'
FM: '#/components/schemas/FMModel'
responses:
200:
description: Model Response.
components:
schemas:
BaseModel:
type: object
required:
- type
properties:
type:
type: string
enum: [ML, FM]
MLModel:
allOf:
- $ref: "#/components/schemas/BaseModel"
- type: object
properties:
file:
type: string
format: binary
required:
- file
FMModel:
allOf:
- $ref: "#/components/schemas/BaseModel"
- type: object
properties:
modelName:
type: string
required:
- modelName
I managed to generate by ignoring that like suggested by the tool:
generator:
ignore_not_implemented: ["complex form schema"]
But the resulting handler is an empty interface which is not very useful.