Skip to content

Commit

Permalink
[C] Add citation_override to definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
1aurend committed Jan 30, 2025
1 parent 001c872 commit 8d24afb
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions api/spec/api_docs/definitions/resources/journal.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ class Journal
rights_territory: Types::String,
restrictions: Types::String,
rights_holder: Types::String,
citation_override: Types::String
}

REQUIRED_CREATE_ATTRIBUTES = [:title].freeze
Expand Down
1 change: 1 addition & 0 deletions api/spec/api_docs/definitions/resources/project.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ class Project
restrictions: Types::String,
rights_holder: Types::String,
resources_doi: Types::String,
citation_override: Types::String
}

REQUIRED_CREATE_ATTRIBUTES = [:title].freeze
Expand Down
1 change: 1 addition & 0 deletions api/spec/api_docs/definitions/resources/resource.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ class Resource
alt_text: Types::String,
credit: Types::String,
copyright_status: Types::String,
citation_override: Types::String
}

class << self
Expand Down
3 changes: 2 additions & 1 deletion api/spec/api_docs/definitions/resources/text.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ class Text
rights_territory: Types::String,
restrictions: Types::String,
rights_holder: Types::String,
original_publication_date: Types::DateTime
original_publication_date: Types::DateTime,
citation_override: Types::String
}.freeze

REQUEST_ATTRIBUTES = {
Expand Down
6 changes: 5 additions & 1 deletion api/spec/api_docs/definitions/resources/text_section.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@ module APIDocs
module Definitions
module Resources
class TextSection


METADATA_ATTRIBUTES = {
citation_override: Types::String
}.freeze

REQUIRED_CREATE_ATTRIBUTES = [:name].freeze

class << self
Expand Down

0 comments on commit 8d24afb

Please sign in to comment.