swagger-api / swagger-api/swagger-codegen

Add validation to parameter/property

Open
#2,663 11 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Client: Android Client: C-Sharp Client: C++ Client: Clojure Client: Dart Client: Go Client: HTML Client: Java Client: JavaScript/Node.js Client: Objc Client: Perl Client: PHP Client: Python Client: Retrofit Client: Ruby Client: Scala Client: Swift Client: TypeScript Enhancement: Feature help wanted
Dominant language
Mustache
Stars
17.8k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

We want to add validation (e.g. maximum, minimum, pattern, etc) to parameters and model properties.

If anyone is interested in adding the property/parameter validation to a particular language, please reply to let us know.

  • Android
  • C++
  • C#
  • Clojure
  • Dart
  • Flash
  • Go
  • Javascript
  • Java
  • ObjC
  • Perl
  • PHP (#2778, #2733)
  • Python (#2794)
  • Ruby (#2697, #2695)
  • Swift
  • Scala
  • TypeScript

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the language checklist and the existing related work in issues #2778, #2733, #2794, #2697, and #2695. No files or tests are named; completion would require defining and implementing parameter/property validation for a selected language, then confirming the relevant checklist item can be marked complete.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, php, python, ruby
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.