OpenAPITools / OpenAPITools/openapi-generator

[Typescript - Fetch] validation on properties

Open
#7,261 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Enhancement: Feature
Dominant language
Java
Stars
26.8k
Forks
7.7k
PR merge metrics
PR metrics pending

Description

Hello,

I'm exploring what this generator can do. While I see it can correctly infer the validation of required properties in complex objects.
I'm wondering if there is any option for the generator to include the validation from swagger.
I don't have any particular use case but I can't seem to find any trace of this potential feature here

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 TypeScript Fetch generator and its current handling of required properties in complex objects. Then determine which Swagger validation constraints are represented and what behavior the requested option should provide. Done would mean a defined implementation scope for validation support, with corresponding verification identified.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.