Skip to content

Commit

Permalink
Convert from empty object to null in OpenApi spec
Browse files Browse the repository at this point in the history
  • Loading branch information
kdid committed Feb 2, 2023
1 parent 1dc575f commit 834ad1d
Show file tree
Hide file tree
Showing 6 changed files with 847 additions and 1 deletion.
25 changes: 25 additions & 0 deletions docs/docs/spec/data-types.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,13 @@ components:
- keywords
- modified_date
- published
- representative_image
- thumbnail
- title
- visibility
CollectionRepresentativeImage:
type: object
nullable: true
properties:
work_id:
type: string
Expand Down Expand Up @@ -190,13 +192,15 @@ components:
format: date-time
digests:
type: object
nullable: true
additionalProperties:
type: string
description:
type: string
nullable: true
extracted_metadata:
type: object
nullable: true
additional_properties: true
indexed_at:
type: string
Expand All @@ -218,6 +222,8 @@ components:
- api_model
- create_date
- description
- digests
- extracted_metadata
- indexed_at
- modified_date
- published
Expand All @@ -234,6 +240,7 @@ components:
- Supplemental
GenericIdLabel:
type: object
nullable: true
properties:
id:
type: string
Expand Down Expand Up @@ -319,6 +326,7 @@ components:
- Resource Guide
RepresentativeFileSet:
type: object
nullable: true
description: Information about the representative image for the resource
properties:
aspect_ratio:
Expand Down Expand Up @@ -412,6 +420,7 @@ components:
type: string
collection:
type: object
nullable: true
description: The parent collection of the resource
properties:
id:
Expand Down Expand Up @@ -503,6 +512,7 @@ components:
desciption: Date/time of last index
ingest_project:
type: object
nullable: true
description: Associated ingest project
properties:
id:
Expand All @@ -515,6 +525,7 @@ components:
- title
ingest_sheet:
type: object
nullable: true
description: Associated ingest sheet
properties:
id:
Expand Down Expand Up @@ -580,6 +591,7 @@ components:
$ref: "#/components/schemas/PreservationLevel"
project:
type: object
nullable: true
description: Project related information
properties:
desc:
Expand All @@ -600,6 +612,13 @@ components:
task_number:
type: string
nullable: true
required:
- desc
- cycle
- manager
- name
- proposer
- task_number
provenance:
type: array
description: Location of Physical Object // will also include messy dates. Information about the provenance, such as origin, ownership and custodial history (chain of custody), of a resource.
Expand Down Expand Up @@ -703,6 +722,7 @@ components:
- box_number
- caption
- catalog_key
- collection
- contributor
- create_date
- creator
Expand All @@ -718,10 +738,13 @@ components:
- identifier
- iiif_manifest
- indexed_at
- ingest_project
- ingest_sheet
- keywords
- language
- legacy_identifier
- library_unit
- license
- location
- modified_date
- notes
Expand All @@ -734,7 +757,9 @@ components:
- publisher
- related_material
- related_url
- representative_file_set
- rights_holder
- rights_statement
- scope_and_contents
- series
- source
Expand Down
Loading

0 comments on commit 834ad1d

Please sign in to comment.