Skip to content

Commit

Permalink
Merge pull request #136 from sul-dlss/add-cdl
Browse files Browse the repository at this point in the history
  • Loading branch information
peetucket authored Aug 20, 2020
2 parents 296c634 + a7ad346 commit b512904
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/cocina/models/dro_access.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ module Cocina
module Models
class DROAccess < Struct
attribute :access, Types::Strict::String.default('dark').enum('world', 'stanford', 'location-based', 'citation-only', 'dark').meta(omittable: true)
# Available for controlled digital lending.
attribute :controlledDigitalLending, Types::Strict::Bool.meta(omittable: true)
# The human readable copyright statement that applies
# example: Copyright World Trade Organization
attribute :copyright, Types::Strict::String.meta(omittable: true)
Expand Down
4 changes: 4 additions & 0 deletions openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -567,6 +567,10 @@ components:
- 'citation-only'
- 'dark'
default: 'dark'
controlledDigitalLending:
description: Available for controlled digital lending.
type: boolean
default: false
copyright:
description: The human readable copyright statement that applies
example: Copyright World Trade Organization
Expand Down

0 comments on commit b512904

Please sign in to comment.