-
Notifications
You must be signed in to change notification settings - Fork 9.2k
Closed
Description
- OS: MACOS
- Browser: Safari, Chrome
- Version: latest
- Method of installation: web editor and swagger hub
- Swagger-UI version: current editor on your site
- Swagger/OpenAPI version: OpenAPI 3.0
I'm using so called "free form" objects in my posts. When I want to post with application/x-www-form-urlencoded with "free-form" object, your UI doesn't provide any form of input to insert "free-form" object. If the content-type is application/json then there is an input box to write down the object, but not with application/x-www-form-urlencoded.
Example Swagger/OpenAPI definition:
openapi: "3.0.0"
info:
description: "A sample API for "
version: "1.0.0"
title: "Sample"
contact:
name: ""
url: "http://website.com"
email: "[email protected]"
servers:
- url: https://api.website.com/api
description: Development server
paths:
/objects:
post:
summary: Create/modify object
operationId: postObject
parameters:
- name: filterParams
in: query
description: Additional filter fields
required: false
schema:
type: object
requestBody:
content:
application/x-www-form-urlencoded:
schema:
type: object
responses:
'200':
description: Status message
content:
application/json:
schema:
$ref: '#/components/schemas/Status'
components:
schemas:
Status:
type: object
properties:
Error:
description: Error information, if any
type: object
properties:
Code:
description: Error code
type: integer
Message:
description: Error message
type: string
Success:
description: Success message
type: object
properties:
Message:
description: Success message
type: string