PHP Swagger OAT\Schema 属性整理
啊\ \ 我这个东西到底忘了多少次、忘了又忘…… 与其这样,不如写在博客上,搜索起来更快,所以就写下来了。 Swagger OAT\Schema Property 列表 编写 Request( \[OAT\Property]) type 为 array,且要放入 Laravel Data 值时 type 为 array
GGAMI已更新
啊\ \ 我这个东西到底忘了多少次、忘了又忘…… 与其这样,不如写在博客上,搜索起来更快,所以就写下来了。 Swagger OAT\Schema Property 列表 编写 Request( \[OAT\Property]) type 为 array,且要放入 Laravel Data 值时 type 为 array
目录
#[OAT\Property(property: 'features', type: 'array', items: new OAT\Items())]#[OAT\Property(property: 'meta', type: 'array', items: new OAT\Items(ref: '#/components/schemas/MetaEnum'))]#[OAT\Property(property: 'link', ref: '#/components/schemas/LinkData', type: 'object')]#[OAT\Property(property: 'state', ref: '#/components/schemas/State', type: 'enum')]#[OAT\Property(property: 'start_at', type: 'string', format: 'date-time')]new OAT\Property(property: 'data', type: 'array', items: new OAT\Items(ref: '#/components/schemas/UserResource')),new OAT\Property(property: 'data', ref: '#/components/schemas/GroupResource', type: 'object'),