Skip to content

Commit

Permalink
Merge pull request #697 from sul-dlss/ReleaseTag-what-required
Browse files Browse the repository at this point in the history
require ReleaseTag "what" attribute
  • Loading branch information
jmartin-sul authored Mar 28, 2024
2 parents b8958ca + 4ac7b79 commit 4c47646
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/cocina/models/citation_only_access.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

module Cocina
module Models
# A type of access for an object wherein users can see the metadata and a list of files, but the files will not have view or download access
class CitationOnlyAccess < Struct
# Access level.
attribute :view, Types::Strict::String.enum('citation-only')
Expand Down
2 changes: 1 addition & 1 deletion lib/cocina/models/release_tag.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class ReleaseTag < Struct
attribute? :who, Types::Strict::String
# What is being released. This item or the whole collection.
# example: self
attribute? :what, Types::Strict::String.enum('self', 'collection')
attribute :what, Types::Strict::String.enum('self', 'collection')
# When did this action happen
attribute? :date, Types::Params::DateTime
# What platform is it released to
Expand Down
1 change: 1 addition & 0 deletions openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1526,6 +1526,7 @@ components:
additionalProperties: false
required:
- release
- what
properties:
who:
description: Who did this release
Expand Down

0 comments on commit 4c47646

Please sign in to comment.