summaryrefslogtreecommitdiffstats
path: root/rust/fatcat-api/api.yaml
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-05-15 21:17:09 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-05-15 21:17:09 -0700
commit0ed087be71b02d9279bd3b131131eae672580d71 (patch)
treeda4bc59d4db19ae466c86992c1e625bf0797584e /rust/fatcat-api/api.yaml
parent9036469324912eae3eed8cb8645f91f1a68c5857 (diff)
downloadfatcat-0ed087be71b02d9279bd3b131131eae672580d71.tar.gz
fatcat-0ed087be71b02d9279bd3b131131eae672580d71.zip
tweak openapi schema
Diffstat (limited to 'rust/fatcat-api/api.yaml')
-rw-r--r--rust/fatcat-api/api.yaml16
1 files changed, 12 insertions, 4 deletions
diff --git a/rust/fatcat-api/api.yaml b/rust/fatcat-api/api.yaml
index badb17ab..abf09a10 100644
--- a/rust/fatcat-api/api.yaml
+++ b/rust/fatcat-api/api.yaml
@@ -30,7 +30,7 @@ x-entity-props: &ENTITYPROPS
editgroup:
type: integer
x-entity-edit-props: &ENTITYEDITPROPS
- id:
+ edit_id:
type: integer
ident:
type: string
@@ -57,6 +57,8 @@ definitions:
type: string
creator_entity:
type: object
+ required:
+ - name
properties:
<<: *ENTITYPROPS
name:
@@ -66,6 +68,8 @@ definitions:
#format: custom
container_entity:
type: object
+ required:
+ - name
properties:
<<: *ENTITYPROPS
name:
@@ -91,6 +95,8 @@ definitions:
format: url
release_entity:
type: object
+ required:
+ - title
properties:
<<: *ENTITYPROPS
work:
@@ -116,8 +122,6 @@ definitions:
type: object
properties:
<<: *ENTITYPROPS
- title:
- type: string
work_type:
type: string
entity_edit:
@@ -134,7 +138,6 @@ definitions:
editgroup:
type: object
required:
- - id
- editor_id
properties:
id:
@@ -170,6 +173,7 @@ paths:
parameters:
- name: body
in: body
+ required: true
schema:
$ref: "#/definitions/creator_entity"
responses:
@@ -213,6 +217,7 @@ paths:
parameters:
- name: body
in: body
+ required: true
schema:
$ref: "#/definitions/container_entity"
responses:
@@ -256,6 +261,7 @@ paths:
parameters:
- name: body
in: body
+ required: true
schema:
$ref: "#/definitions/file_entity"
responses:
@@ -299,6 +305,7 @@ paths:
parameters:
- name: body
in: body
+ required: true
schema:
$ref: "#/definitions/release_entity"
responses:
@@ -342,6 +349,7 @@ paths:
parameters:
- name: body
in: body
+ required: true
schema:
$ref: "#/definitions/work_entity"
responses: