$components->
merge($this->
getDefaultSchemas());
$components->
merge($this->
createSecurityScheme($api));
$components->
merge($this->
createDefaultResponses());
} /**
* @return Schema[]
*/
private function getDefaultSchemas(): array
{ $defaults =
[ 'success' =>
new Schema([ 'schema' => 'success',
'type' => 'object',
'required' =>
['data'
],
'additionalProperties' => false,
'properties' =>
[ 'meta' =>
['$ref' => '#/components/schemas/meta'
],
'links' =>
[ 'description' => 'Link members related to the primary data.',
'allOf' =>
[ ['$ref' => '#/components/schemas/links'
],
['$ref' => '#/components/schemas/pagination'
],
],