1
0
Fork 0
mirror of synced 2024-06-29 19:50:26 +12:00

open-api - work in progress

This commit is contained in:
eldadfux 2019-12-05 19:43:16 +02:00
parent 0054b078b8
commit 2069d90c54

View file

@ -499,27 +499,27 @@ $utopia->get('/v1/open-api-2.json')
],
'paths' => [],
'definitions' => [
'Pet' => [
'required' => ['id', 'name'],
'properties' => [
'id' => [
'type' => 'integer',
'format' => 'int64',
],
'name' => [
'type' => 'string',
],
'tag' => [
'type' => 'string',
],
],
],
'Pets' => array(
'type' => 'array',
'items' => array(
'$ref' => '#/definitions/Pet',
),
),
// 'Pet' => [
// 'required' => ['id', 'name'],
// 'properties' => [
// 'id' => [
// 'type' => 'integer',
// 'format' => 'int64',
// ],
// 'name' => [
// 'type' => 'string',
// ],
// 'tag' => [
// 'type' => 'string',
// ],
// ],
// ],
// 'Pets' => array(
// 'type' => 'array',
// 'items' => array(
// '$ref' => '#/definitions/Pet',
// ),
// ),
'Error' => array(
'required' => array(
0 => 'code',