metaschema 0.1.2 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.rubocop.yml +19 -1
- data/.rubocop_todo.yml +60 -8
- data/CLAUDE.md +78 -0
- data/Rakefile +3 -3
- data/exe/metaschema +1 -2
- data/lib/metaschema/allowed_value_type.rb +17 -24
- data/lib/metaschema/allowed_values_type.rb +15 -22
- data/lib/metaschema/anchor_type.rb +14 -19
- data/lib/metaschema/any_type.rb +2 -4
- data/lib/metaschema/assembly.rb +18 -27
- data/lib/metaschema/assembly_model_type.rb +10 -19
- data/lib/metaschema/assembly_reference_type.rb +16 -24
- data/lib/metaschema/block_quote_type.rb +17 -25
- data/lib/metaschema/choice_type.rb +6 -13
- data/lib/metaschema/code_type.rb +16 -22
- data/lib/metaschema/constraint_let_type.rb +5 -9
- data/lib/metaschema/define_assembly_constraints_type.rb +17 -26
- data/lib/metaschema/define_field_constraints_type.rb +13 -19
- data/lib/metaschema/define_flag_constraints_type.rb +9 -17
- data/lib/metaschema/example_type.rb +6 -11
- data/lib/metaschema/expect_constraint_type.rb +12 -18
- data/lib/metaschema/field.rb +13 -20
- data/lib/metaschema/field_reference_type.rb +19 -27
- data/lib/metaschema/flag.rb +9 -18
- data/lib/metaschema/flag_reference_type.rb +14 -21
- data/lib/metaschema/formal_name.rb +9 -0
- data/lib/metaschema/global_assembly_definition_type.rb +21 -34
- data/lib/metaschema/global_field_definition_type.rb +26 -39
- data/lib/metaschema/global_flag_definition_type.rb +18 -27
- data/lib/metaschema/group_as_type.rb +7 -9
- data/lib/metaschema/grouped_assembly_reference_type.rb +11 -18
- data/lib/metaschema/grouped_choice_type.rb +16 -24
- data/lib/metaschema/grouped_field_reference_type.rb +11 -18
- data/lib/metaschema/grouped_inline_assembly_definition_type.rb +17 -29
- data/lib/metaschema/grouped_inline_field_definition_type.rb +26 -37
- data/lib/metaschema/image_type.rb +5 -7
- data/lib/metaschema/import.rb +3 -5
- data/lib/metaschema/index_has_key_constraint_type.rb +12 -19
- data/lib/metaschema/inline_assembly_definition_type.rb +25 -38
- data/lib/metaschema/inline_field_definition_type.rb +31 -43
- data/lib/metaschema/inline_flag_definition_type.rb +17 -25
- data/lib/metaschema/inline_markup_type.rb +16 -21
- data/lib/metaschema/insert_type.rb +4 -6
- data/lib/metaschema/json_base_uri.rb +9 -0
- data/lib/metaschema/json_key_type.rb +3 -5
- data/lib/metaschema/json_value_key.rb +9 -0
- data/lib/metaschema/json_value_key_flag_type.rb +3 -5
- data/lib/metaschema/key_field.rb +5 -9
- data/lib/metaschema/list_item_type.rb +28 -38
- data/lib/metaschema/list_type.rb +3 -7
- data/lib/metaschema/markup_line_datatype.rb +15 -22
- data/lib/metaschema/matches_constraint_type.rb +12 -18
- data/lib/metaschema/metaschema_constraints.rb +24 -0
- data/lib/metaschema/metaschema_import_type.rb +3 -5
- data/lib/metaschema/namespace.rb +8 -0
- data/lib/metaschema/namespace_binding_type.rb +4 -6
- data/lib/metaschema/namespace_value.rb +9 -0
- data/lib/metaschema/ordered_list_type.rb +4 -8
- data/lib/metaschema/preformatted_type.rb +15 -22
- data/lib/metaschema/property_type.rb +6 -8
- data/lib/metaschema/remarks_type.rb +18 -27
- data/lib/metaschema/root.rb +21 -31
- data/lib/metaschema/root_name.rb +3 -5
- data/lib/metaschema/schema_version.rb +9 -0
- data/lib/metaschema/scope.rb +7 -13
- data/lib/metaschema/short_name.rb +9 -0
- data/lib/metaschema/table_cell_type.rb +17 -24
- data/lib/metaschema/table_row_type.rb +4 -8
- data/lib/metaschema/table_type.rb +3 -7
- data/lib/metaschema/targeted_allowed_values_constraint_type.rb +16 -23
- data/lib/metaschema/targeted_expect_constraint_type.rb +13 -19
- data/lib/metaschema/targeted_has_cardinality_constraint_type.rb +13 -19
- data/lib/metaschema/targeted_index_constraint_type.rb +13 -20
- data/lib/metaschema/targeted_index_has_key_constraint_type.rb +13 -20
- data/lib/metaschema/targeted_key_constraint_type.rb +12 -19
- data/lib/metaschema/targeted_matches_constraint_type.rb +13 -19
- data/lib/metaschema/use_name_type.rb +3 -5
- data/lib/metaschema/version.rb +1 -1
- data/lib/metaschema.rb +89 -9
- metadata +20 -95
- data/lib/metaschema/metaschemaconstraints.rb +0 -31
|
@@ -1,37 +1,30 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
require 'lutaml/model'
|
|
4
|
-
|
|
5
|
-
require_relative 'key_field'
|
|
6
|
-
require_relative 'markup_line_datatype'
|
|
7
|
-
require_relative 'property_type'
|
|
8
|
-
require_relative 'remarks_type'
|
|
9
|
-
|
|
10
3
|
module Metaschema
|
|
11
4
|
class TargetedIndexConstraintType < Lutaml::Model::Serializable
|
|
12
5
|
attribute :id, :string
|
|
13
|
-
attribute :level, :string, default: -> {
|
|
6
|
+
attribute :level, :string, default: -> { "ERROR" }
|
|
14
7
|
attribute :target, :string
|
|
15
8
|
attribute :name, :string
|
|
16
|
-
attribute :formal_name,
|
|
9
|
+
attribute :formal_name, FormalName
|
|
17
10
|
attribute :description, MarkupLineDatatype
|
|
18
11
|
attribute :prop, PropertyType, collection: true
|
|
19
12
|
attribute :key_field, KeyField, collection: true
|
|
20
13
|
attribute :remarks, RemarksType
|
|
21
14
|
|
|
22
15
|
xml do
|
|
23
|
-
|
|
24
|
-
namespace
|
|
16
|
+
element "TargetedIndexConstraintType"
|
|
17
|
+
namespace ::Metaschema::Namespace
|
|
25
18
|
|
|
26
|
-
map_attribute
|
|
27
|
-
map_attribute
|
|
28
|
-
map_attribute
|
|
29
|
-
map_attribute
|
|
30
|
-
map_element
|
|
31
|
-
map_element
|
|
32
|
-
map_element
|
|
33
|
-
map_element
|
|
34
|
-
map_element
|
|
19
|
+
map_attribute "id", to: :id
|
|
20
|
+
map_attribute "level", to: :level
|
|
21
|
+
map_attribute "target", to: :target
|
|
22
|
+
map_attribute "name", to: :name
|
|
23
|
+
map_element "formal-name", to: :formal_name
|
|
24
|
+
map_element "description", to: :description
|
|
25
|
+
map_element "prop", to: :prop
|
|
26
|
+
map_element "key-field", to: :key_field
|
|
27
|
+
map_element "remarks", to: :remarks
|
|
35
28
|
end
|
|
36
29
|
end
|
|
37
30
|
end
|
|
@@ -1,37 +1,30 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
require 'lutaml/model'
|
|
4
|
-
|
|
5
|
-
require_relative 'key_field'
|
|
6
|
-
require_relative 'markup_line_datatype'
|
|
7
|
-
require_relative 'property_type'
|
|
8
|
-
require_relative 'remarks_type'
|
|
9
|
-
|
|
10
3
|
module Metaschema
|
|
11
4
|
class TargetedIndexHasKeyConstraintType < Lutaml::Model::Serializable
|
|
12
5
|
attribute :id, :string
|
|
13
|
-
attribute :level, :string, default: -> {
|
|
6
|
+
attribute :level, :string, default: -> { "ERROR" }
|
|
14
7
|
attribute :name, :string
|
|
15
8
|
attribute :target, :string
|
|
16
|
-
attribute :formal_name,
|
|
9
|
+
attribute :formal_name, FormalName
|
|
17
10
|
attribute :description, MarkupLineDatatype
|
|
18
11
|
attribute :prop, PropertyType, collection: true
|
|
19
12
|
attribute :key_field, KeyField, collection: true
|
|
20
13
|
attribute :remarks, RemarksType
|
|
21
14
|
|
|
22
15
|
xml do
|
|
23
|
-
|
|
24
|
-
namespace
|
|
16
|
+
element "TargetedIndexHasKeyConstraintType"
|
|
17
|
+
namespace ::Metaschema::Namespace
|
|
25
18
|
|
|
26
|
-
map_attribute
|
|
27
|
-
map_attribute
|
|
28
|
-
map_attribute
|
|
29
|
-
map_attribute
|
|
30
|
-
map_element
|
|
31
|
-
map_element
|
|
32
|
-
map_element
|
|
33
|
-
map_element
|
|
34
|
-
map_element
|
|
19
|
+
map_attribute "id", to: :id
|
|
20
|
+
map_attribute "level", to: :level
|
|
21
|
+
map_attribute "name", to: :name
|
|
22
|
+
map_attribute "target", to: :target
|
|
23
|
+
map_element "formal-name", to: :formal_name
|
|
24
|
+
map_element "description", to: :description
|
|
25
|
+
map_element "prop", to: :prop
|
|
26
|
+
map_element "key-field", to: :key_field
|
|
27
|
+
map_element "remarks", to: :remarks
|
|
35
28
|
end
|
|
36
29
|
end
|
|
37
30
|
end
|
|
@@ -1,35 +1,28 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
require 'lutaml/model'
|
|
4
|
-
|
|
5
|
-
require_relative 'key_field'
|
|
6
|
-
require_relative 'markup_line_datatype'
|
|
7
|
-
require_relative 'property_type'
|
|
8
|
-
require_relative 'remarks_type'
|
|
9
|
-
|
|
10
3
|
module Metaschema
|
|
11
4
|
class TargetedKeyConstraintType < Lutaml::Model::Serializable
|
|
12
5
|
attribute :id, :string
|
|
13
|
-
attribute :level, :string, default: -> {
|
|
6
|
+
attribute :level, :string, default: -> { "ERROR" }
|
|
14
7
|
attribute :target, :string
|
|
15
|
-
attribute :formal_name,
|
|
8
|
+
attribute :formal_name, FormalName
|
|
16
9
|
attribute :description, MarkupLineDatatype
|
|
17
10
|
attribute :prop, PropertyType, collection: true
|
|
18
11
|
attribute :key_field, KeyField, collection: true
|
|
19
12
|
attribute :remarks, RemarksType
|
|
20
13
|
|
|
21
14
|
xml do
|
|
22
|
-
|
|
23
|
-
namespace
|
|
15
|
+
element "TargetedKeyConstraintType"
|
|
16
|
+
namespace ::Metaschema::Namespace
|
|
24
17
|
|
|
25
|
-
map_attribute
|
|
26
|
-
map_attribute
|
|
27
|
-
map_attribute
|
|
28
|
-
map_element
|
|
29
|
-
map_element
|
|
30
|
-
map_element
|
|
31
|
-
map_element
|
|
32
|
-
map_element
|
|
18
|
+
map_attribute "id", to: :id
|
|
19
|
+
map_attribute "level", to: :level
|
|
20
|
+
map_attribute "target", to: :target
|
|
21
|
+
map_element "formal-name", to: :formal_name
|
|
22
|
+
map_element "description", to: :description
|
|
23
|
+
map_element "prop", to: :prop
|
|
24
|
+
map_element "key-field", to: :key_field
|
|
25
|
+
map_element "remarks", to: :remarks
|
|
33
26
|
end
|
|
34
27
|
end
|
|
35
28
|
end
|
|
@@ -1,36 +1,30 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
require 'lutaml/model'
|
|
4
|
-
|
|
5
|
-
require_relative 'markup_line_datatype'
|
|
6
|
-
require_relative 'property_type'
|
|
7
|
-
require_relative 'remarks_type'
|
|
8
|
-
|
|
9
3
|
module Metaschema
|
|
10
4
|
class TargetedMatchesConstraintType < Lutaml::Model::Serializable
|
|
11
5
|
attribute :id, :string
|
|
12
|
-
attribute :level, :string, default: -> {
|
|
6
|
+
attribute :level, :string, default: -> { "ERROR" }
|
|
13
7
|
attribute :regex, :string
|
|
14
8
|
attribute :datatype, :string
|
|
15
9
|
attribute :target, :string
|
|
16
|
-
attribute :formal_name,
|
|
10
|
+
attribute :formal_name, FormalName
|
|
17
11
|
attribute :description, MarkupLineDatatype
|
|
18
12
|
attribute :prop, PropertyType, collection: true
|
|
19
13
|
attribute :remarks, RemarksType
|
|
20
14
|
|
|
21
15
|
xml do
|
|
22
|
-
|
|
23
|
-
namespace
|
|
16
|
+
element "TargetedMatchesConstraintType"
|
|
17
|
+
namespace ::Metaschema::Namespace
|
|
24
18
|
|
|
25
|
-
map_attribute
|
|
26
|
-
map_attribute
|
|
27
|
-
map_attribute
|
|
28
|
-
map_attribute
|
|
29
|
-
map_attribute
|
|
30
|
-
map_element
|
|
31
|
-
map_element
|
|
32
|
-
map_element
|
|
33
|
-
map_element
|
|
19
|
+
map_attribute "id", to: :id
|
|
20
|
+
map_attribute "level", to: :level
|
|
21
|
+
map_attribute "regex", to: :regex
|
|
22
|
+
map_attribute "datatype", to: :datatype
|
|
23
|
+
map_attribute "target", to: :target
|
|
24
|
+
map_element "formal-name", to: :formal_name
|
|
25
|
+
map_element "description", to: :description
|
|
26
|
+
map_element "prop", to: :prop
|
|
27
|
+
map_element "remarks", to: :remarks
|
|
34
28
|
end
|
|
35
29
|
end
|
|
36
30
|
end
|
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
require 'lutaml/model'
|
|
4
|
-
|
|
5
3
|
module Metaschema
|
|
6
4
|
class UseNameType < Lutaml::Model::Serializable
|
|
7
5
|
attribute :content, :string
|
|
8
6
|
attribute :index, :integer
|
|
9
7
|
|
|
10
8
|
xml do
|
|
11
|
-
|
|
12
|
-
namespace
|
|
9
|
+
element "UseNameType"
|
|
10
|
+
namespace ::Metaschema::Namespace
|
|
13
11
|
|
|
14
12
|
map_content to: :content
|
|
15
|
-
map_attribute
|
|
13
|
+
map_attribute "index", to: :index
|
|
16
14
|
end
|
|
17
15
|
end
|
|
18
16
|
end
|
data/lib/metaschema/version.rb
CHANGED
data/lib/metaschema.rb
CHANGED
|
@@ -1,14 +1,7 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
require
|
|
4
|
-
|
|
5
|
-
Lutaml::Model::Config.configure do |config|
|
|
6
|
-
require 'lutaml/model/xml_adapter/nokogiri_adapter'
|
|
7
|
-
config.xml_adapter = Lutaml::Model::XmlAdapter::NokogiriAdapter
|
|
8
|
-
end
|
|
9
|
-
|
|
10
|
-
require_relative 'metaschema/version'
|
|
11
|
-
require_relative 'metaschema/root'
|
|
3
|
+
require "nokogiri"
|
|
4
|
+
require "lutaml/model"
|
|
12
5
|
|
|
13
6
|
module Metaschema
|
|
14
7
|
class Error < StandardError; end
|
|
@@ -17,4 +10,91 @@ module Metaschema
|
|
|
17
10
|
root = Root.from_file(file_path)
|
|
18
11
|
root.validate_verbose
|
|
19
12
|
end
|
|
13
|
+
|
|
14
|
+
autoload :AllowedValueType, "metaschema/allowed_value_type"
|
|
15
|
+
autoload :AllowedValuesType, "metaschema/allowed_values_type"
|
|
16
|
+
autoload :AnchorType, "metaschema/anchor_type"
|
|
17
|
+
autoload :AnyType, "metaschema/any_type"
|
|
18
|
+
autoload :Assembly, "metaschema/assembly"
|
|
19
|
+
autoload :AssemblyModelType, "metaschema/assembly_model_type"
|
|
20
|
+
autoload :AssemblyReferenceType, "metaschema/assembly_reference_type"
|
|
21
|
+
autoload :BlockQuoteType, "metaschema/block_quote_type"
|
|
22
|
+
autoload :ChoiceType, "metaschema/choice_type"
|
|
23
|
+
autoload :CodeType, "metaschema/code_type"
|
|
24
|
+
autoload :ConstraintLetType, "metaschema/constraint_let_type"
|
|
25
|
+
autoload :DefineAssemblyConstraintsType,
|
|
26
|
+
"metaschema/define_assembly_constraints_type"
|
|
27
|
+
autoload :DefineFieldConstraintsType,
|
|
28
|
+
"metaschema/define_field_constraints_type"
|
|
29
|
+
autoload :DefineFlagConstraintsType, "metaschema/define_flag_constraints_type"
|
|
30
|
+
autoload :ExampleType, "metaschema/example_type"
|
|
31
|
+
autoload :ExpectConstraintType, "metaschema/expect_constraint_type"
|
|
32
|
+
autoload :Field, "metaschema/field"
|
|
33
|
+
autoload :FieldReferenceType, "metaschema/field_reference_type"
|
|
34
|
+
autoload :Flag, "metaschema/flag"
|
|
35
|
+
autoload :FlagReferenceType, "metaschema/flag_reference_type"
|
|
36
|
+
autoload :GlobalAssemblyDefinitionType,
|
|
37
|
+
"metaschema/global_assembly_definition_type"
|
|
38
|
+
autoload :GlobalFieldDefinitionType, "metaschema/global_field_definition_type"
|
|
39
|
+
autoload :GlobalFlagDefinitionType, "metaschema/global_flag_definition_type"
|
|
40
|
+
autoload :GroupAsType, "metaschema/group_as_type"
|
|
41
|
+
autoload :GroupedAssemblyReferenceType,
|
|
42
|
+
"metaschema/grouped_assembly_reference_type"
|
|
43
|
+
autoload :GroupedChoiceType, "metaschema/grouped_choice_type"
|
|
44
|
+
autoload :GroupedFieldReferenceType, "metaschema/grouped_field_reference_type"
|
|
45
|
+
autoload :GroupedInlineAssemblyDefinitionType,
|
|
46
|
+
"metaschema/grouped_inline_assembly_definition_type"
|
|
47
|
+
autoload :GroupedInlineFieldDefinitionType,
|
|
48
|
+
"metaschema/grouped_inline_field_definition_type"
|
|
49
|
+
autoload :ImageType, "metaschema/image_type"
|
|
50
|
+
autoload :Import, "metaschema/import"
|
|
51
|
+
autoload :IndexHasKeyConstraintType,
|
|
52
|
+
"metaschema/index_has_key_constraint_type"
|
|
53
|
+
autoload :InlineAssemblyDefinitionType,
|
|
54
|
+
"metaschema/inline_assembly_definition_type"
|
|
55
|
+
autoload :InlineFieldDefinitionType, "metaschema/inline_field_definition_type"
|
|
56
|
+
autoload :InlineFlagDefinitionType, "metaschema/inline_flag_definition_type"
|
|
57
|
+
autoload :InlineMarkupType, "metaschema/inline_markup_type"
|
|
58
|
+
autoload :InsertType, "metaschema/insert_type"
|
|
59
|
+
autoload :JsonKeyType, "metaschema/json_key_type"
|
|
60
|
+
autoload :JsonValueKey, "metaschema/json_value_key"
|
|
61
|
+
autoload :JsonValueKeyFlagType, "metaschema/json_value_key_flag_type"
|
|
62
|
+
autoload :KeyField, "metaschema/key_field"
|
|
63
|
+
autoload :ListItemType, "metaschema/list_item_type"
|
|
64
|
+
autoload :ListType, "metaschema/list_type"
|
|
65
|
+
autoload :MarkupLineDatatype, "metaschema/markup_line_datatype"
|
|
66
|
+
autoload :MatchesConstraintType, "metaschema/matches_constraint_type"
|
|
67
|
+
autoload :MetaschemaImportType, "metaschema/metaschema_import_type"
|
|
68
|
+
autoload :MetaschemaConstraints, "metaschema/metaschema_constraints"
|
|
69
|
+
autoload :Namespace, "metaschema/namespace"
|
|
70
|
+
autoload :NamespaceValue, "metaschema/namespace_value"
|
|
71
|
+
autoload :JsonBaseUri, "metaschema/json_base_uri"
|
|
72
|
+
autoload :NamespaceBindingType, "metaschema/namespace_binding_type"
|
|
73
|
+
autoload :OrderedListType, "metaschema/ordered_list_type"
|
|
74
|
+
autoload :PreformattedType, "metaschema/preformatted_type"
|
|
75
|
+
autoload :PropertyType, "metaschema/property_type"
|
|
76
|
+
autoload :RemarksType, "metaschema/remarks_type"
|
|
77
|
+
autoload :Root, "metaschema/root"
|
|
78
|
+
autoload :RootName, "metaschema/root_name"
|
|
79
|
+
autoload :Scope, "metaschema/scope"
|
|
80
|
+
autoload :TableCellType, "metaschema/table_cell_type"
|
|
81
|
+
autoload :TableRowType, "metaschema/table_row_type"
|
|
82
|
+
autoload :TableType, "metaschema/table_type"
|
|
83
|
+
autoload :TargetedAllowedValuesConstraintType,
|
|
84
|
+
"metaschema/targeted_allowed_values_constraint_type"
|
|
85
|
+
autoload :TargetedExpectConstraintType,
|
|
86
|
+
"metaschema/targeted_expect_constraint_type"
|
|
87
|
+
autoload :TargetedHasCardinalityConstraintType,
|
|
88
|
+
"metaschema/targeted_has_cardinality_constraint_type"
|
|
89
|
+
autoload :TargetedIndexConstraintType,
|
|
90
|
+
"metaschema/targeted_index_constraint_type"
|
|
91
|
+
autoload :TargetedIndexHasKeyConstraintType,
|
|
92
|
+
"metaschema/targeted_index_has_key_constraint_type"
|
|
93
|
+
autoload :TargetedKeyConstraintType, "metaschema/targeted_key_constraint_type"
|
|
94
|
+
autoload :TargetedMatchesConstraintType,
|
|
95
|
+
"metaschema/targeted_matches_constraint_type"
|
|
96
|
+
autoload :UseNameType, "metaschema/use_name_type"
|
|
97
|
+
autoload :FormalName, "metaschema/formal_name"
|
|
98
|
+
autoload :SchemaVersion, "metaschema/schema_version"
|
|
99
|
+
autoload :ShortName, "metaschema/short_name"
|
|
20
100
|
end
|
metadata
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: metaschema
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ribose Inc.
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2026-04-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: lutaml-model
|
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
|
16
16
|
requirements:
|
|
17
|
-
- - "
|
|
17
|
+
- - "~>"
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version:
|
|
19
|
+
version: 0.8.0
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
|
-
- - "
|
|
24
|
+
- - "~>"
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
|
-
version:
|
|
26
|
+
version: 0.8.0
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: tabulo
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -52,90 +52,6 @@ dependencies:
|
|
|
52
52
|
- - ">="
|
|
53
53
|
- !ruby/object:Gem::Version
|
|
54
54
|
version: '0'
|
|
55
|
-
- !ruby/object:Gem::Dependency
|
|
56
|
-
name: nokogiri
|
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
|
58
|
-
requirements:
|
|
59
|
-
- - ">="
|
|
60
|
-
- !ruby/object:Gem::Version
|
|
61
|
-
version: '0'
|
|
62
|
-
type: :development
|
|
63
|
-
prerelease: false
|
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
65
|
-
requirements:
|
|
66
|
-
- - ">="
|
|
67
|
-
- !ruby/object:Gem::Version
|
|
68
|
-
version: '0'
|
|
69
|
-
- !ruby/object:Gem::Dependency
|
|
70
|
-
name: rake
|
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
|
72
|
-
requirements:
|
|
73
|
-
- - ">="
|
|
74
|
-
- !ruby/object:Gem::Version
|
|
75
|
-
version: '0'
|
|
76
|
-
type: :development
|
|
77
|
-
prerelease: false
|
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
79
|
-
requirements:
|
|
80
|
-
- - ">="
|
|
81
|
-
- !ruby/object:Gem::Version
|
|
82
|
-
version: '0'
|
|
83
|
-
- !ruby/object:Gem::Dependency
|
|
84
|
-
name: rspec
|
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
|
86
|
-
requirements:
|
|
87
|
-
- - ">="
|
|
88
|
-
- !ruby/object:Gem::Version
|
|
89
|
-
version: '0'
|
|
90
|
-
type: :development
|
|
91
|
-
prerelease: false
|
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
93
|
-
requirements:
|
|
94
|
-
- - ">="
|
|
95
|
-
- !ruby/object:Gem::Version
|
|
96
|
-
version: '0'
|
|
97
|
-
- !ruby/object:Gem::Dependency
|
|
98
|
-
name: rubocop
|
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
|
100
|
-
requirements:
|
|
101
|
-
- - ">="
|
|
102
|
-
- !ruby/object:Gem::Version
|
|
103
|
-
version: '0'
|
|
104
|
-
type: :development
|
|
105
|
-
prerelease: false
|
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
107
|
-
requirements:
|
|
108
|
-
- - ">="
|
|
109
|
-
- !ruby/object:Gem::Version
|
|
110
|
-
version: '0'
|
|
111
|
-
- !ruby/object:Gem::Dependency
|
|
112
|
-
name: rubocop-performance
|
|
113
|
-
requirement: !ruby/object:Gem::Requirement
|
|
114
|
-
requirements:
|
|
115
|
-
- - ">="
|
|
116
|
-
- !ruby/object:Gem::Version
|
|
117
|
-
version: '0'
|
|
118
|
-
type: :development
|
|
119
|
-
prerelease: false
|
|
120
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
121
|
-
requirements:
|
|
122
|
-
- - ">="
|
|
123
|
-
- !ruby/object:Gem::Version
|
|
124
|
-
version: '0'
|
|
125
|
-
- !ruby/object:Gem::Dependency
|
|
126
|
-
name: xml-c14n
|
|
127
|
-
requirement: !ruby/object:Gem::Requirement
|
|
128
|
-
requirements:
|
|
129
|
-
- - ">="
|
|
130
|
-
- !ruby/object:Gem::Version
|
|
131
|
-
version: '0'
|
|
132
|
-
type: :development
|
|
133
|
-
prerelease: false
|
|
134
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
135
|
-
requirements:
|
|
136
|
-
- - ">="
|
|
137
|
-
- !ruby/object:Gem::Version
|
|
138
|
-
version: '0'
|
|
139
55
|
description: Parser and generator for NIST Metaschema
|
|
140
56
|
email:
|
|
141
57
|
- open.source@ribose.com'
|
|
@@ -146,6 +62,7 @@ extra_rdoc_files: []
|
|
|
146
62
|
files:
|
|
147
63
|
- ".rubocop.yml"
|
|
148
64
|
- ".rubocop_todo.yml"
|
|
65
|
+
- CLAUDE.md
|
|
149
66
|
- README.adoc
|
|
150
67
|
- Rakefile
|
|
151
68
|
- exe/metaschema
|
|
@@ -170,6 +87,7 @@ files:
|
|
|
170
87
|
- lib/metaschema/field_reference_type.rb
|
|
171
88
|
- lib/metaschema/flag.rb
|
|
172
89
|
- lib/metaschema/flag_reference_type.rb
|
|
90
|
+
- lib/metaschema/formal_name.rb
|
|
173
91
|
- lib/metaschema/global_assembly_definition_type.rb
|
|
174
92
|
- lib/metaschema/global_field_definition_type.rb
|
|
175
93
|
- lib/metaschema/global_flag_definition_type.rb
|
|
@@ -187,23 +105,29 @@ files:
|
|
|
187
105
|
- lib/metaschema/inline_flag_definition_type.rb
|
|
188
106
|
- lib/metaschema/inline_markup_type.rb
|
|
189
107
|
- lib/metaschema/insert_type.rb
|
|
108
|
+
- lib/metaschema/json_base_uri.rb
|
|
190
109
|
- lib/metaschema/json_key_type.rb
|
|
110
|
+
- lib/metaschema/json_value_key.rb
|
|
191
111
|
- lib/metaschema/json_value_key_flag_type.rb
|
|
192
112
|
- lib/metaschema/key_field.rb
|
|
193
113
|
- lib/metaschema/list_item_type.rb
|
|
194
114
|
- lib/metaschema/list_type.rb
|
|
195
115
|
- lib/metaschema/markup_line_datatype.rb
|
|
196
116
|
- lib/metaschema/matches_constraint_type.rb
|
|
117
|
+
- lib/metaschema/metaschema_constraints.rb
|
|
197
118
|
- lib/metaschema/metaschema_import_type.rb
|
|
198
|
-
- lib/metaschema/
|
|
119
|
+
- lib/metaschema/namespace.rb
|
|
199
120
|
- lib/metaschema/namespace_binding_type.rb
|
|
121
|
+
- lib/metaschema/namespace_value.rb
|
|
200
122
|
- lib/metaschema/ordered_list_type.rb
|
|
201
123
|
- lib/metaschema/preformatted_type.rb
|
|
202
124
|
- lib/metaschema/property_type.rb
|
|
203
125
|
- lib/metaschema/remarks_type.rb
|
|
204
126
|
- lib/metaschema/root.rb
|
|
205
127
|
- lib/metaschema/root_name.rb
|
|
128
|
+
- lib/metaschema/schema_version.rb
|
|
206
129
|
- lib/metaschema/scope.rb
|
|
130
|
+
- lib/metaschema/short_name.rb
|
|
207
131
|
- lib/metaschema/table_cell_type.rb
|
|
208
132
|
- lib/metaschema/table_row_type.rb
|
|
209
133
|
- lib/metaschema/table_type.rb
|
|
@@ -223,7 +147,8 @@ metadata:
|
|
|
223
147
|
homepage_uri: https://github.com/lutaml/metaschema
|
|
224
148
|
source_code_uri: https://github.com/lutaml/metaschema
|
|
225
149
|
changelog_uri: https://github.com/lutaml/metaschema/releases
|
|
226
|
-
|
|
150
|
+
rubygems_mfa_required: 'true'
|
|
151
|
+
post_install_message:
|
|
227
152
|
rdoc_options: []
|
|
228
153
|
require_paths:
|
|
229
154
|
- lib
|
|
@@ -238,8 +163,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
238
163
|
- !ruby/object:Gem::Version
|
|
239
164
|
version: '0'
|
|
240
165
|
requirements: []
|
|
241
|
-
rubygems_version: 3.
|
|
242
|
-
signing_key:
|
|
166
|
+
rubygems_version: 3.5.22
|
|
167
|
+
signing_key:
|
|
243
168
|
specification_version: 4
|
|
244
169
|
summary: Parser and generator for NIST Metaschema
|
|
245
170
|
test_files: []
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
require 'lutaml/model'
|
|
4
|
-
|
|
5
|
-
require_relative 'import'
|
|
6
|
-
require_relative 'namespace_binding_type'
|
|
7
|
-
require_relative 'remarks_type'
|
|
8
|
-
require_relative 'scope'
|
|
9
|
-
|
|
10
|
-
module Metaschema
|
|
11
|
-
class METASCHEMACONSTRAINTS < Lutaml::Model::Serializable
|
|
12
|
-
attribute :name, :string
|
|
13
|
-
attribute :version, :string
|
|
14
|
-
attribute :import, Import, collection: true
|
|
15
|
-
attribute :namespace_binding, NamespaceBindingType, collection: true
|
|
16
|
-
attribute :scope, Scope, collection: true
|
|
17
|
-
attribute :remarks, RemarksType
|
|
18
|
-
|
|
19
|
-
xml do
|
|
20
|
-
root 'METASCHEMA-CONSTRAINTS'
|
|
21
|
-
namespace 'http://csrc.nist.gov/ns/oscal/metaschema/1.0'
|
|
22
|
-
|
|
23
|
-
map_element 'name', to: :name
|
|
24
|
-
map_element 'version', to: :version
|
|
25
|
-
map_element 'import', to: :import
|
|
26
|
-
map_element 'namespace-binding', to: :namespace_binding
|
|
27
|
-
map_element 'scope', to: :scope
|
|
28
|
-
map_element 'remarks', to: :remarks
|
|
29
|
-
end
|
|
30
|
-
end
|
|
31
|
-
end
|