Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request]: Form support display json schema #3228

Open
Flithor opened this issue Jan 22, 2025 · 1 comment
Open

[Feature request]: Form support display json schema #3228

Flithor opened this issue Jan 22, 2025 · 1 comment

Comments

@Flithor
Copy link

Flithor commented Jan 22, 2025

Is your feature request related to a specific problem? Or an existing feature?

Object type field for multipart-form should display json schema

Describe the solution you'd like

...
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                file:
                  type: string
                  description: Upload File
                  format: binary
                JsonDataField:
                  type: object
                  allOf:
                    - $ref: '#/components/schemas/MyJsonData'
                  description: Upload Json into Form Field
            encoding:
              file:
                style: form
              JsonDataField:
                contentType: application/json
...

It should display MyJsonData schema tab

this feature is valid in Swagger 5.0

Image

Additional context

No response

@martincostello
Copy link
Collaborator

I don't fully understand what you're asking for here.

It looks like you're asking for SwaggerUI to do something it doesn't, which wouldn't be something to ask us about.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants