swagger-api / swagger-api/swagger-codegen

[req] Add v3 composition not support, json schema not keyword

Open
#11,770 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Mustache
Stars
17.8k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

Request to add v3 composition not support, json schema not keyword

Description

How about adding support for schemas like:

AnyTypeExceptNull:
not:
  type: 'null'
ObjectWithoutColor:
  type: object
  not:
    type: object
    properties:
      color: {}
    required:
      - color
Swagger-codegen version

3.0.34

Swagger declaration file content or url

See above component schema definition

Command line used for generation

N/A

Steps to reproduce

Generate any client with the above schemas

Related issues/PRs

I didn't find any

Suggest a fix/enhancement

One could do something like openapi-generator did here:
https://github.com/OpenAPITools/openapi-generator/pull/12146

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

The issue names no repository files or tests. Start by tracing how OpenAPI 3 schemas are translated into generated clients and compare the linked OpenAPI Generator PR; done means schemas using the JSON Schema not keyword generate valid clients with the requested exclusions.

Written by the indexing model from the issue text.

Assessment

Tech stack
openapi
Domain
backend-api-design, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.