pip install connexion[swagger-ui]Normally, on the swagger UI, required parameters are checked on the form validation, like this (red background):

But when it comes to required formData parameters, they are not checked on the form validation (no red background):

Try the below snippet on https://editor.swagger.io/
openapi: 3.0.1
info:
title: Test
version: 1.0.0
paths:
/survey/{surveyId}:
get:
parameters:
- name: surveyId
in: path
required: true
schema:
type: integer
responses:
200:
description: successful operation
/survey:
post:
requestBody:
required: true
content:
application/x-www-form-urlencoded:
schema:
type: object
properties:
name:
type: string
fav_number:
type: integer
required:
- name
responses:
200:
description: survey created
I took this example from the Swagger documentation: Describing Request Body → Form Data.
Just like the required path parameter, I expected the formData parameter to be checked on the form validation (red background if the parameter is empty).
The issue #3747 may be related but I think it applies only for path parameters and not for formDataones.
Thanks!
Duplicate of #5181.
I'm experiencing the same problem, I think is not duplicate. I tried the example from 4899.
On edito.swagger.io:
this required works:
parameters:
- name: petId
in: path
description: ID of pet that needs to be updated
required: true
schema:
type: integer
format: int64
this doesn't:
yaml
requestBody:
content:
application/x-www-form-urlencoded:
schema:
type: object
properties:
name:
type: string
description: Updated name of the pet
required:
- name
Hi @catapimba, this problem is tracked in #5181.
Most helpful comment
Duplicate of #5181.