Skip to content

Commit

Permalink
fix: fix element order specs, #6
Browse files Browse the repository at this point in the history
  • Loading branch information
ronaldtse committed Oct 21, 2024
1 parent aa7e4a3 commit 530cf06
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/metaschema/assembly_model_type.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ class AssemblyModelType < Lutaml::Model::Serializable
root "AssemblyModelType"
namespace "http://csrc.nist.gov/ns/oscal/metaschema/1.0"

map_element "assembly", to: :assembly
map_element "field", to: :field
map_element "define-assembly", to: :define_assembly
map_element "assembly", to: :assembly
map_element "define-field", to: :define_field
map_element "choice", to: :choice
map_element "choice-group", to: :choice_group
Expand Down
2 changes: 1 addition & 1 deletion lib/metaschema/choice_type.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ class ChoiceType < Lutaml::Model::Serializable
root "ChoiceType"
namespace "http://csrc.nist.gov/ns/oscal/metaschema/1.0"

map_element "assembly", to: :assembly
map_element "field", to: :field
map_element "define-assembly", to: :define_assembly
map_element "assembly", to: :assembly
map_element "define-field", to: :define_field
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/metaschema/grouped_choice_type.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ class GroupedChoiceType < Lutaml::Model::Serializable
map_element "json-key", to: :json_key
map_element "group-as", to: :group_as
map_element "discriminator", to: :discriminator
map_element "assembly", to: :assembly
map_element "field", to: :field
map_element "define-assembly", to: :define_assembly
map_element "assembly", to: :assembly
map_element "define-field", to: :define_field
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/metaschema/scope.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ class Scope < Lutaml::Model::Serializable

map_attribute "metaschema-namespace", to: :metaschema_namespace
map_attribute "metaschema-short-name", to: :metaschema_short_name
map_element "assembly", to: :assembly
map_element "field", to: :field
map_element "assembly", to: :assembly
map_element "flag", to: :flag
end
end
Expand Down

0 comments on commit 530cf06

Please sign in to comment.