We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 371f8fe commit 44f3984Copy full SHA for 44f3984
Sources/_OpenAPIGeneratorCore/Translator/CommonTranslations/translateAllAnyOneOf.swift
@@ -55,10 +55,10 @@ extension FileTranslator {
55
switch type {
56
case .allOf:
57
// AllOf uses all required properties.
58
- propertyType = rawPropertyType
+ propertyType = rawPropertyType.withOptional(false)
59
case .anyOf:
60
// AnyOf uses all optional properties.
61
- propertyType = rawPropertyType.asOptional
+ propertyType = rawPropertyType.withOptional(true)
62
}
63
let comment: Comment? = .property(
64
originalName: key,
0 commit comments