-
-
Notifications
You must be signed in to change notification settings - Fork 7.3k
Open
Labels
Description
hi
I have this yaml file.
openapi: 3.0.0
info:
version: '1.0.0'
title: 'Types'
paths: {}
components:
schemas:
AdditionalQosFlowInfo:
anyOf:
- anyOf:
- type: string
enum:
- MORE_LIKELY
- type: string
- $ref: '#/components/schemas/NullValue'
Arp:
type: object
properties:
priorityLevel:
$ref: '#/components/schemas/ArpPriorityLevel'
required:
- priorityLevel
ArpPriorityLevel:
type: integer
nullable: true
NullValue:
enum:
- null
there is a nullable type in it and an anyof/anyof type.
When I genarte go models for this, the generator does not generate NullableInt32 and AnyOfstringstring models, but there are some reference in the generated models, which are using those
E.g.
type Arp struct {
// nullable true shall not be used for this attribute
PriorityLevel NullableInt32 `json:"priorityLevel"`
}
type AdditionalQosFlowInfo struct {
AnyOfstringstring *AnyOfstringstring
NullValue *NullValue
}
But there is no model for this NullableInt32 and for AnyOfstringstring, so it shows an error....
Can you tell me what I am doing wrong? Why this is not generated? Or am I misunderstand something?
thanks
Akos