Skip to content

Commit

Permalink
fixed test errors
Browse files Browse the repository at this point in the history
Signed-off-by: Vladimiras Desiatnikovas <[email protected]>
  • Loading branch information
riteris13 committed Apr 8, 2024
1 parent c2489e5 commit 0365bc4
Show file tree
Hide file tree
Showing 11 changed files with 24 additions and 18 deletions.
4 changes: 4 additions & 0 deletions openapi/components/schemas/_op.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
type: string
enum:
- "insert"
- "patch"
5 changes: 5 additions & 0 deletions openapi/components/schemas/_type.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
description: |
Name of the namespace or model
type: string
examples:
- "datasets/gov/dc/geo/Continent"
4 changes: 1 addition & 3 deletions openapi/components/schemas/changes.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
type: object
properties:
_type:
type: string
examples:
- datasets/gov/dc/geo/Continent
$ref: ./_type.yaml
_data:
type: array
items:
Expand Down
13 changes: 3 additions & 10 deletions openapi/components/schemas/multiInsert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,6 @@ properties:
type: array
items:
anyOf:
- _op:
type: string
enum:
- insert
- patch
- _type:
type: string
examples:
- datasets/gov/dc/geo/Continent
- $ref: insert.yaml
- $ref: ./_op.yaml
- $ref: ./_type.yaml
- $ref: ./insert.yaml
6 changes: 1 addition & 5 deletions openapi/components/schemas/object.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
type: object
properties:
_type:
description: |
Name of the namespace or model
type: string
examples:
- datasets/gov/dc/geo/Continent
$ref: ./_type.yaml
_id:
description: |
Unique object ID in UUID format
Expand Down
1 change: 1 addition & 0 deletions openapi/paths/changes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ parameters:
- $ref: ../components/parameters/form.yaml
- $ref: ../components/parameters/org.yaml
- $ref: ../components/parameters/dataset.yaml
- $ref: ../components/parameters/version.yaml
- $ref: ../components/parameters/model.yaml
- $ref: ../components/parameters/cid.yaml
- $ref: ../components/parameters/traceparent.yaml
Expand Down
1 change: 1 addition & 0 deletions openapi/paths/file.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
parameters:
- $ref: ../components/parameters/group.yaml
- $ref: ../components/parameters/form.yaml
- $ref: ../components/parameters/org.yaml
- $ref: ../components/parameters/dataset.yaml
Expand Down
2 changes: 2 additions & 0 deletions openapi/paths/model.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ head:
responses:
'200':
description: OK
'400':
$ref: ../components/responses/error400.yaml

get:
tags:
Expand Down
3 changes: 3 additions & 0 deletions openapi/paths/object.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
parameters:
- $ref: ../components/parameters/group.yaml
- $ref: ../components/parameters/form.yaml
- $ref: ../components/parameters/org.yaml
- $ref: ../components/parameters/dataset.yaml
Expand All @@ -22,6 +23,8 @@ head:
responses:
'200':
description: OK
'400':
$ref: ../components/responses/error400.yaml

get:
tags:
Expand Down
1 change: 1 addition & 0 deletions openapi/paths/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ options:
security:
- {}
summary: OPTIONS operation
operationId: serviceOptions
head:
tags:
- services
Expand Down
2 changes: 2 additions & 0 deletions openapi/paths/wipe.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
parameters:
- $ref: ../components/parameters/group.yaml
- $ref: ../components/parameters/form.yaml
- $ref: ../components/parameters/org.yaml
- $ref: ../components/parameters/dataset.yaml
- $ref: ../components/parameters/version.yaml
- $ref: ../components/parameters/model.yaml
- $ref: ../components/parameters/id.yaml
- $ref: ../components/parameters/traceparent.yaml
Expand Down

0 comments on commit 0365bc4

Please sign in to comment.