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
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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