feature #11: describe "Extra" component in openAPI

This commit is contained in:
2019-08-30 10:06:32 +02:00
parent 9c3dce7511
commit 2f079d9d9d

View File

@@ -617,6 +617,18 @@ components:
type: array type: array
items: items:
$ref: '#/components/schemas/ArticleResponse' $ref: '#/components/schemas/ArticleResponse'
Extra:
type: object
allOf:
- $ref: '#/components/schemas/UuidEntity'
- $ref: '#/components/schemas/CreatedAt'
- $ref: '#/components/schemas/CreatedBy'
- type: object
properties:
target:
$ref: '#/components/schemas/UuidEntity'
CommentBase: CommentBase:
type: object type: object
allOf: allOf:
@@ -634,9 +646,8 @@ components:
CommentResponse: CommentResponse:
allOf: allOf:
- $ref: '#/components/schemas/CommentBase' - $ref: '#/components/schemas/CommentBase'
- $ref: '#/components/schemas/CreatedBy'
- $ref: '#/components/schemas/CreatedAt'
- $ref: '#/components/schemas/UpdatedAt' - $ref: '#/components/schemas/UpdatedAt'
- $ref: '#/components/schemas/Extra'
- type: object - type: object
properties: properties:
parents_ids: parents_ids:
@@ -644,8 +655,6 @@ components:
required: false required: false
items: items:
$ref: '#/components/schemas/UUID' $ref: '#/components/schemas/UUID'
target:
$ref: '#/components/schemas/UuidEntity'
parent: parent:
required: false required: false
allOf: allOf: