diff --git a/Gemfile b/Gemfile index c970b1e88..d58d4a20a 100644 --- a/Gemfile +++ b/Gemfile @@ -6,7 +6,7 @@ git_source(:github) { |repo| "https://github.com/#{repo}.git" } gem 'rails', '~> 7.1.0' # DLSS/domain-specific dependencies -gem 'cocina-models', '~> 0.92.0' +gem 'cocina-models', '~> 0.93.0' gem 'datacite', '~> 0.3.0' gem 'dor-workflow-client', '~> 5.0' gem 'druid-tools', '~> 2.2' diff --git a/Gemfile.lock b/Gemfile.lock index 35abe1260..ab8d392ae 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -113,7 +113,7 @@ GEM capistrano-bundler (>= 1.1, < 3) capistrano-shared_configs (0.2.2) chronic (0.10.2) - cocina-models (0.92.0) + cocina-models (0.93.0) activesupport deprecation dry-struct (~> 1.0) @@ -581,7 +581,7 @@ DEPENDENCIES capistrano-passenger capistrano-rails capistrano-shared_configs - cocina-models (~> 0.92.0) + cocina-models (~> 0.93.0) committee config datacite (~> 0.3.0) diff --git a/openapi.yml b/openapi.yml index 0889695f1..e469a3065 100644 --- a/openapi.yml +++ b/openapi.yml @@ -2184,11 +2184,9 @@ components: description: MIME Type of the File. type: string languageTag: - description: "BCP 47 language tag: https://www.rfc-editor.org/rfc/rfc4646.txt -- other applications (like media players) expect language codes of this format, see e.g. https://videojs.com/guides/text-tracks/#srclang" - type: string + $ref: '#/components/schemas/LanguageTag' use: - description: Use for the File. - type: string + $ref: '#/components/schemas/FileUse' hasMessageDigests: type: array items: @@ -2283,6 +2281,10 @@ components: type: array items: $ref: '#/components/schemas/File' + FileUse: + description: Use for the File. + type: string + nullable: true FolioCatalogLink: description: A linkage between an object and a Folio catalog record type: object @@ -2411,6 +2413,10 @@ components: valueLanguage: # description: present for mapping to additional schemas in the future and for consistency but not otherwise used $ref: "#/components/schemas/DescriptiveValueLanguage" + LanguageTag: + description: "BCP 47 language tag: https://www.rfc-editor.org/rfc/rfc4646.txt -- other applications (like media players) expect language codes of this format, see e.g. https://videojs.com/guides/text-tracks/#srclang" + type: string + nullable: true License: description: The license governing reuse of the DRO. Should be an IRI for known licenses (i.e. CC, RightsStatement.org URI, etc.). type: string @@ -2899,11 +2905,11 @@ components: hasMimeType: type: string languageTag: - type: string + $ref: '#/components/schemas/LanguageTag' externalIdentifier: type: string use: - type: string + $ref: '#/components/schemas/FileUse' hasMessageDigests: type: array items: