ReneZeidler 5bc7aa3cd6
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.
2024-06-19 17:15:33 +08:00

1009 B

NewPet

Properties

Name Type Description Notes
id Long [optional]
categoryInlineAllof NewPetCategoryInlineAllof [optional]
categoryAllOfRef Category [optional]
categoryAllOfRefDescription Category Adding description to property using allOf [optional]
categoryAllOfRefDescriptionReadonly Category Adding description to readonly property using allOf [optional] [readonly]
name String
photoUrls List<String>
tags List<Tag> [optional]
status StatusEnum pet status in the store [optional]

Enum: StatusEnum

Name Value
AVAILABLE "available"
PENDING "pending"
SOLD "sold"