diff --git a/src/Annotations/AbstractAnnotation.php b/src/Annotations/AbstractAnnotation.php index c3f2af6d..0f45649c 100644 --- a/src/Annotations/AbstractAnnotation.php +++ b/src/Annotations/AbstractAnnotation.php @@ -373,6 +373,9 @@ public function jsonSerialize() } else { $ref['nullable'] = $data->nullable; } + if (isset($data->title) && $data->title !== $defaultValues['title']) { + $ref['title'] = $data->title; + } unset($data->nullable); } $data = (object) $ref;