Example 1:
/**
* @SWG\Get(
* @SWG\Response(
* response="200",
* description="Returned when successful",
* @SWG\Schema(@Model(type=DictionaryStatus::class))
* )
* )
*/
Example 2:
/**
* @SWG\Get(
* @SWG\Response(
* response="200",
* description="Returned when successful",
* @SWG\Schema(type="array", @Model(type=DictionaryStatus::class))
* )
* )
*/
Both of examples produces this json:
{"schema":{"items":{"$ref":"#/definitions/DictionaryStatus"}}}
Expected behavior: For example 1 json should be:
{"schema":{"$ref":"#/definitions/DictionaryStatus"}}
You have to remove the @Schema annotation around @Model.
Most helpful comment
You have to remove the
@Schemaannotation around@Model.