swagger-api / swagger-api/swagger-ui
Email and uri format not validated
Open
Nobody has claimed this yet.
cat: try-it-out
type: enhancement
- Dominant language
- JavaScript
- Stars
- 29k
- Forks
- 9.3k
- Avg merge
- 2d 23h
- Merged PRs (30d)
- 25
Description
I am using swagger 2 with request of formData as follow.
However the format email and format uri is not validated.
What am i doing it wrong?
parameters:
- name: email
in: formData
required: true
type: string
format: email
- name: profileImageUrl
in: formData
required: true
type: string
format: uri
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the provided Swagger 2 formData definition in Swagger UI and check whether request validation runs for the email and uri formats. Confirm whether the behavior is specific to these formats or formData parameters, and consider the issue done when valid and invalid values are handled as expected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100