mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-04 22:56:08 +00:00
Never create inline model for allOf with single $ref (#18945)
Fixes #15077 The previous fix for this in #16096 is incomplete because it still generates unnecessary inline models when readOnly or nullable is used in conjunction with other properties like description. This commit fixes the logic error and adds testcases.
This commit is contained in:
@@ -10,6 +10,8 @@
|
||||
|**id** | **Long** | | [optional] |
|
||||
|**categoryInlineAllof** | [**NewPetCategoryInlineAllof**](NewPetCategoryInlineAllof.md) | | [optional] |
|
||||
|**categoryAllOfRef** | [**Category**](Category.md) | | [optional] |
|
||||
|**categoryAllOfRefDescription** | [**Category**](Category.md) | Adding description to property using allOf | [optional] |
|
||||
|**categoryAllOfRefDescriptionReadonly** | [**Category**](Category.md) | Adding description to readonly property using allOf | [optional] [readonly] |
|
||||
|**name** | **String** | | |
|
||||
|**photoUrls** | **List<String>** | | |
|
||||
|**tags** | [**List<Tag>**](Tag.md) | | [optional] |
|
||||
|
||||
Reference in New Issue
Block a user