Skip to content

Commit

Permalink
chore: specify required fields in open api specs
Browse files Browse the repository at this point in the history
  • Loading branch information
admy7 committed Dec 16, 2024
1 parent 3c6969c commit e984241
Showing 1 changed file with 22 additions and 15 deletions.
37 changes: 22 additions & 15 deletions src/main/openapi/discovery.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -203,9 +203,7 @@ components:
operator:
title: Ckan query operator
type: string
enum:
- AND
- OR
$ref: "#/components/schemas/QueryOperator"
default: OR
DatasetSearchQueryFacet:
type: object
Expand All @@ -226,7 +224,7 @@ components:
entries:
type: array
items:
$ref: '#/components/schemas/QueryEntry'
$ref: "#/components/schemas/QueryEntry"
required:
- source
- type
Expand Down Expand Up @@ -258,6 +256,15 @@ components:
value:
type: string
title: value
required:
- key
- value
QueryOperator:
type: string
enum:
- OR
- AND
title: Query operator
SearchedDataset:
type: object
properties:
Expand Down Expand Up @@ -308,8 +315,6 @@ components:
- id
- title
- description
- catalogue
- modifiedAt
DatasetsSearchResponse:
type: object
properties:
Expand Down Expand Up @@ -407,8 +412,6 @@ components:
- id
- title
- description
- catalogue
- createdAt
RetrievedDistribution:
type: object
properties:
Expand Down Expand Up @@ -445,7 +448,6 @@ components:
- id
- title
- description
- createdAt
ValueLabel:
properties:
value:
Expand All @@ -471,9 +473,6 @@ components:
uri:
type: string
title: uri
identifier:
type: string
title: identifier
required:
- name
- email
Expand All @@ -494,9 +493,6 @@ components:
identifier:
type: string
title: identifier
uri:
type: string
title: uri
required:
- name
DatasetRelationEntry:
Expand Down Expand Up @@ -555,6 +551,11 @@ components:
items:
$ref: "#/components/schemas/FilterEntry"
title: entries
required:
- source
- type
- key
- label
FilterEntry:
properties:
key:
Expand All @@ -563,6 +564,9 @@ components:
label:
type: string
title: label
required:
- key
- label
ErrorResponse:
properties:
title:
Expand All @@ -574,3 +578,6 @@ components:
detail:
type: string
title: Error detail
required:
- title
- status

0 comments on commit e984241

Please sign in to comment.