Skip to content

Commit

Permalink
fix: more specs fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
ronaldtse committed Oct 28, 2024
1 parent a135444 commit 3f2291c
Show file tree
Hide file tree
Showing 16 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion lib/niso/jats/bold.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class Bold < Lutaml::Model::Serializable
attribute :toggle, :string

xml do
root "bold"
root "bold", mixed: true

map_content to: :content
map_attribute "id", to: :id
Expand Down
2 changes: 1 addition & 1 deletion lib/niso/jats/comment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class Comment < Lutaml::Model::Serializable
attribute :lang, :string

xml do
root "comment"
root "comment", mixed: true

map_content to: :content
map_attribute "content-type", to: :content_type
Expand Down
2 changes: 1 addition & 1 deletion lib/niso/jats/corresp.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class Corresp < Lutaml::Model::Serializable
attribute :sup, Sup, collection: true

xml do
root "corresp"
root "corresp", mixed: true

map_content to: :content
map_attribute "content-type", to: :content_type
Expand Down
2 changes: 1 addition & 1 deletion lib/niso/jats/disp_formula.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class DispFormula < Lutaml::Model::Serializable
attribute :sup, Sup, collection: true

xml do
root "disp-formula"
root "disp-formula", mixed: true

map_content to: :content
map_attribute "content-type", to: :content_type
Expand Down
2 changes: 1 addition & 1 deletion lib/niso/jats/email.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class Email < Lutaml::Model::Serializable
attribute :lang, :string

xml do
root "email"
root "email", mixed: true

map_content to: :content
map_attribute "content-type", to: :content_type
Expand Down
2 changes: 1 addition & 1 deletion lib/niso/jats/ext_link.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class ExtLink < Lutaml::Model::Serializable
attribute :sup, Sup, collection: true

xml do
root "ext-link"
root "ext-link", mixed: true

map_content to: :content
map_attribute "assigning-authority", to: :assigning_authority
Expand Down
2 changes: 1 addition & 1 deletion lib/niso/jats/funding_source.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class FundingSource < Lutaml::Model::Serializable
attribute :institution_wrap, InstitutionWrap, collection: true

xml do
root "funding-source"
root "funding-source", mixed: true

map_content to: :content
map_attribute "country", to: :country
Expand Down
2 changes: 1 addition & 1 deletion lib/niso/jats/inline_formula.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class InlineFormula < Lutaml::Model::Serializable
attribute :sup, Sup, collection: true

xml do
root "inline-formula"
root "inline-formula", mixed: true

map_content to: :content
map_attribute "content-type", to: :content_type
Expand Down
2 changes: 1 addition & 1 deletion lib/niso/jats/italic.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class Italic < Lutaml::Model::Serializable
attribute :toggle, :string, default: -> { "yes" }

xml do
root "italic"
root "italic", mixed: true

map_content to: :content
map_attribute "id", to: :id
Expand Down
2 changes: 1 addition & 1 deletion lib/niso/jats/mixed_citation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class MixedCitation < Lutaml::Model::Serializable
attribute :sup, Sup, collection: true

xml do
root "mixed-citation"
root "mixed-citation", mixed: true

map_content to: :content
map_attribute "hreflang", to: :hreflang
Expand Down
2 changes: 1 addition & 1 deletion lib/niso/jats/paragraph.rb
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class Paragraph < Lutaml::Model::Serializable
attribute :sup, Sup, collection: true

xml do
root "p"
root "p", mixed: true

map_content to: :content
map_attribute "content-type", to: :content_type
Expand Down
2 changes: 1 addition & 1 deletion lib/niso/jats/sec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class Sec < Lutaml::Model::Serializable
attribute :ref_list, RefList, collection: true

xml do
root "sec"
root "sec", mixed: true

map_attribute "id", to: :id
map_attribute "sec-type", to: :sec_type
Expand Down
2 changes: 1 addition & 1 deletion lib/niso/jats/sub.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class Sub < Lutaml::Model::Serializable
attribute :specific_use, :string

xml do
root "sub"
root "sub", mixed: true

map_content to: :content
map_attribute "arrange", to: :arrange
Expand Down
2 changes: 1 addition & 1 deletion lib/niso/jats/sup.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class Sup < Lutaml::Model::Serializable
attribute :specific_use, :string

xml do
root "sup"
root "sup", mixed: true

map_content to: :content
map_attribute "arrange", to: :arrange
Expand Down
2 changes: 1 addition & 1 deletion lib/niso/jats/td.rb
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class Td < Lutaml::Model::Serializable
attribute :sup, Sup, collection: true

xml do
root "td"
root "td", mixed: true

map_content to: :content
map_attribute "abbr", to: :abbr
Expand Down
2 changes: 1 addition & 1 deletion lib/niso/jats/th.rb
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class Th < Lutaml::Model::Serializable
attribute :sup, Sup, collection: true

xml do
root "th"
root "th", mixed: true

map_content to: :content
map_attribute "abbr", to: :abbr
Expand Down

0 comments on commit 3f2291c

Please sign in to comment.