OpenAPITools / OpenAPITools/openapi-generator

[BUG] [main] WARN o.o.codegen.InlineModelResolver - allOf schema `null` containing multiple types (not model) is not supported at the moment.

Open
#17,926 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Description

when generate go client code, i got this warns, i want to know if my spec yaml is right

openapi-generator version

v7.3.0

OpenAPI declaration file content or url
    FeeLegacy:
      type: object
      description: The legacy fee data for estimate fees or transfer.
      properties:
        slow:
          allOf:
            - $ref: '#/components/schemas/BaseFeeLegacy'
            - $ref: '#/components/schemas/FeeAmount'
        standard:
          allOf:
            - $ref: '#/components/schemas/BaseFeeLegacy'
            - $ref: '#/components/schemas/FeeAmount'
        fast:
          allOf:
            - $ref: '#/components/schemas/BaseFeeLegacy'
            - $ref: '#/components/schemas/FeeAmount'

-->

Generation Details

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 with the InlineModelResolver warning while reproducing Go client generation from the supplied FeeLegacy YAML on OpenAPI Generator v7.3.0. Check how the allOf entries referencing BaseFeeLegacy and FeeAmount are interpreted, and document whether the declaration is valid and whether the warning represents an actual generation problem.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, java
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.