OpenAPITools / OpenAPITools/openapi-generator

Go server allOff does not work after 5.2.0

Open
#12,061 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Description

Go go server allOff (https://swagger.io/docs/specification/data-models/oneof-anyof-allof-not/) does not work after upgrade
Is there any reason for it... will it be included in new versions?

openapi-generator version

6.0.0 and 5.4.0. In 5.2.0 it works

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 comparing the generated Go server output for an allOf schema between openapi-generator 5.2.0, 5.4.0, and 6.0.0, using the allOf specification linked in the issue. The issue names no fixture, generated output, source file, or test, so identify a minimal reproduction before determining what behavior should be restored.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, openapi
Domain
api, backend, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.