php swagger OAT\Schema property の整理
ああ~~これを何度も何度も忘れて、また忘れてしまうので…… いっそブログに書いておいて、検索したほうが早いと思い、書いておく。 Swagger OAT\Schema Property リスト リクエストの記述 ( \[OAT\Property]) type が array で、Laravel Data の値を入れる場合
GGAMI更新
ああ~~これを何度も何度も忘れて、また忘れてしまうので…… いっそブログに書いておいて、検索したほうが早いと思い、書いておく。 Swagger OAT\Schema Property リスト リクエストの記述 ( \[OAT\Property]) type が array で、Laravel Data の値を入れる場合
目次
#[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'),