Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert from empty object to null in OpenApi spec #99

Merged
merged 1 commit into from
Feb 2, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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