lutaml-jsonschema 0.1.17 → 0.1.19

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a510965cb5b2a1815007d9e5ae6dbd587d4ac431b6b5c600324f855e33443ca5
4
- data.tar.gz: 74c3d962eaabbe06518b32d4366b4ca4f017cef900cc3ce6610c8a3ebbcc705a
3
+ metadata.gz: 7bedeb19c89b4d8d95067a18bb2b5fa17532e2730f6fbfe1da8584bfc70ae05a
4
+ data.tar.gz: 9221e7c2a1e0324aa9a1325831b36bf664f121466f02de6f07b940e0063830de
5
5
  SHA512:
6
- metadata.gz: 52e34466cd3d104c64746aeecfe69e8c79b44fcb8e75bc3c2005b3a79027838422e480486ae44dc0b9cae2c40fbc1fcba68e8da0950f272e01695d5fe3f53783
7
- data.tar.gz: 380679dc0b84274ee54ea25fa0860b93e041e98020b17947e9673a5c75a83022f1ee144afc746d31b27650d467fe9b77ac14801f63175ae531e49fac1abe71d2
6
+ metadata.gz: 60122241ce61b4ee49095aed3def11f74cac1f8bccecabb8189cc944a8979d904b54a505024cd9518f0943ea6f48e9a8690452e2681d1db8df654a43a3107965
7
+ data.tar.gz: f20ae2131c15ed7819318d97e9ca13d38307473900a9946ca8a39412798b5d6ebca25d32dfc3c9eef170a810c84a36b7e09455a1797cffc86fd3a8f3fa552c99
data/.rubocop_todo.yml CHANGED
@@ -1,6 +1,6 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2026-05-27 07:40:36 UTC using RuboCop version 1.86.1.
3
+ # on 2026-06-08 13:01:45 UTC using RuboCop version 1.86.1.
4
4
  # The point is for the user to remove these configuration records
5
5
  # one by one as the offenses are removed from the code base.
6
6
  # Note that changes in the inspected code, or installation of new
@@ -11,56 +11,146 @@ Gemspec/RequiredRubyVersion:
11
11
  Exclude:
12
12
  - 'lutaml-jsonschema.gemspec'
13
13
 
14
+ # Offense count: 39
15
+ # This cop supports safe autocorrection (--autocorrect).
16
+ # Configuration parameters: EnforcedStyle, IndentationWidth.
17
+ # SupportedStyles: with_first_argument, with_fixed_indentation
18
+ Layout/ArgumentAlignment:
19
+ Exclude:
20
+ - 'lib/lutaml/jsonschema/cli.rb'
21
+ - 'lib/lutaml/jsonschema/schema_store.rb'
22
+ - 'lib/lutaml/jsonschema/spa/spa_builder.rb'
23
+ - 'spec/e2e/spa_e2e_spec.rb'
24
+ - 'spec/lutaml/configuration_spec.rb'
25
+ - 'spec/lutaml/jsonschema/schema_store_spec.rb'
26
+ - 'spec/lutaml/spa/spa_definition_spec.rb'
27
+
14
28
  # Offense count: 2
15
29
  # This cop supports safe autocorrection (--autocorrect).
16
30
  # Configuration parameters: EnforcedStyle, IndentationWidth.
17
31
  # SupportedStyles: with_first_element, with_fixed_indentation
18
32
  Layout/ArrayAlignment:
19
33
  Exclude:
20
- - 'spec/lutaml/spa_builder_spec.rb'
34
+ - 'lib/lutaml/jsonschema/spa/spa_builder.rb'
35
+ - 'spec/e2e/spa_e2e_spec.rb'
21
36
 
22
- # Offense count: 5
37
+ # Offense count: 34
23
38
  # This cop supports safe autocorrection (--autocorrect).
24
39
  # Configuration parameters: EnforcedStyleAlignWith.
25
40
  # SupportedStylesAlignWith: either, start_of_block, start_of_line
26
41
  Layout/BlockAlignment:
27
42
  Exclude:
43
+ - 'lib/lutaml/jsonschema/schema.rb'
28
44
  - 'lib/lutaml/jsonschema/spa/spa_builder.rb'
29
- - 'spec/lutaml/spa_builder_spec.rb'
45
+ - 'spec/e2e/spa_e2e_spec.rb'
46
+ - 'spec/lutaml/generator_spec.rb'
30
47
 
31
- # Offense count: 4
48
+ # Offense count: 29
32
49
  # This cop supports safe autocorrection (--autocorrect).
33
50
  Layout/BlockEndNewline:
34
51
  Exclude:
35
- - 'spec/lutaml/spa_builder_spec.rb'
52
+ - 'lib/lutaml/jsonschema/schema.rb'
53
+ - 'spec/e2e/spa_e2e_spec.rb'
54
+ - 'spec/lutaml/generator_spec.rb'
55
+
56
+ # Offense count: 7
57
+ # This cop supports safe autocorrection (--autocorrect).
58
+ Layout/ElseAlignment:
59
+ Exclude:
60
+ - 'lib/lutaml/jsonschema/schema_store.rb'
61
+ - 'lib/lutaml/jsonschema/spa/spa_builder.rb'
62
+
63
+ # Offense count: 1
64
+ # This cop supports safe autocorrection (--autocorrect).
65
+ Layout/EmptyLineAfterGuardClause:
66
+ Exclude:
67
+ - 'lib/lutaml/jsonschema/schema_store.rb'
36
68
 
37
69
  # Offense count: 8
38
70
  # This cop supports safe autocorrection (--autocorrect).
71
+ # Configuration parameters: EnforcedStyleAlignWith.
72
+ # SupportedStylesAlignWith: keyword, variable, start_of_line
73
+ Layout/EndAlignment:
74
+ Exclude:
75
+ - 'lib/lutaml/jsonschema/schema_store.rb'
76
+ - 'lib/lutaml/jsonschema/spa/spa_builder.rb'
77
+
78
+ # Offense count: 36
79
+ # This cop supports safe autocorrection (--autocorrect).
80
+ # Configuration parameters: EnforcedStyle, IndentationWidth.
81
+ # SupportedStyles: special_inside_parentheses, consistent, align_braces
82
+ Layout/FirstHashElementIndentation:
83
+ Exclude:
84
+ - 'spec/lutaml/jsonschema_spec.rb'
85
+ - 'spec/lutaml/schema/each_child_spec.rb'
86
+
87
+ # Offense count: 28
88
+ # This cop supports safe autocorrection (--autocorrect).
89
+ # Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
90
+ # SupportedHashRocketStyles: key, separator, table
91
+ # SupportedColonStyles: key, separator, table
92
+ # SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
93
+ Layout/HashAlignment:
94
+ Exclude:
95
+ - 'lib/lutaml/jsonschema/cli.rb'
96
+ - 'lib/lutaml/jsonschema/schema_store.rb'
97
+ - 'lib/lutaml/jsonschema/spa/spa_definition.rb'
98
+ - 'lib/lutaml/jsonschema/spa/spa_property.rb'
99
+ - 'lib/lutaml/jsonschema/spa/spa_schema.rb'
100
+ - 'spec/lutaml/configuration_spec.rb'
101
+ - 'spec/lutaml/jsonschema/schema_store_spec.rb'
102
+ - 'spec/lutaml/jsonschema_spec.rb'
103
+ - 'spec/lutaml/schema/each_child_spec.rb'
104
+ - 'spec/lutaml/spa/spa_definition_spec.rb'
105
+
106
+ # Offense count: 67
107
+ # This cop supports safe autocorrection (--autocorrect).
39
108
  # Configuration parameters: Width, EnforcedStyleAlignWith, AllowedPatterns.
40
109
  # SupportedStylesAlignWith: start_of_line, relative_to_receiver
41
110
  Layout/IndentationWidth:
42
111
  Exclude:
43
- - 'spec/lutaml/spa_builder_spec.rb'
112
+ - 'lib/lutaml/jsonschema/schema.rb'
113
+ - 'lib/lutaml/jsonschema/schema_store.rb'
114
+ - 'lib/lutaml/jsonschema/spa/spa_builder.rb'
115
+ - 'spec/e2e/spa_e2e_spec.rb'
116
+ - 'spec/lutaml/generator_spec.rb'
44
117
 
45
- # Offense count: 34
118
+ # Offense count: 116
46
119
  # This cop supports safe autocorrection (--autocorrect).
47
120
  # Configuration parameters: Max, AllowHeredoc, AllowURI, AllowQualifiedName, URISchemes, AllowRBSInlineAnnotation, AllowCopDirectives, AllowedPatterns, SplitStrings.
48
121
  # URISchemes: http, https
49
122
  Layout/LineLength:
123
+ Enabled: false
124
+
125
+ # Offense count: 4
126
+ # This cop supports safe autocorrection (--autocorrect).
127
+ Layout/MultilineBlockLayout:
128
+ Exclude:
129
+ - 'spec/e2e/spa_e2e_spec.rb'
130
+
131
+ # Offense count: 2
132
+ # This cop supports safe autocorrection (--autocorrect).
133
+ # Configuration parameters: EnforcedStyle.
134
+ # SupportedStyles: symmetrical, new_line, same_line
135
+ Layout/MultilineHashBraceLayout:
136
+ Exclude:
137
+ - 'spec/lutaml/jsonschema_spec.rb'
138
+ - 'spec/lutaml/schema/each_child_spec.rb'
139
+
140
+ # Offense count: 35
141
+ # This cop supports safe autocorrection (--autocorrect).
142
+ # Configuration parameters: AllowInHeredoc.
143
+ Layout/TrailingWhitespace:
50
144
  Exclude:
51
- - 'lib/lutaml/jsonschema/base.rb'
52
145
  - 'lib/lutaml/jsonschema/cli.rb'
53
- - 'lib/lutaml/jsonschema/combiner.rb'
54
- - 'lib/lutaml/jsonschema/schema.rb'
55
- - 'lib/lutaml/jsonschema/schema_set.rb'
146
+ - 'lib/lutaml/jsonschema/schema_store.rb'
56
147
  - 'lib/lutaml/jsonschema/spa/spa_builder.rb'
57
- - 'lib/lutaml/jsonschema/spa/vue_inlined_strategy.rb'
58
- - 'lutaml-jsonschema.gemspec'
59
- - 'spec/lutaml/integration_spec.rb'
148
+ - 'spec/e2e/spa_e2e_spec.rb'
149
+ - 'spec/lutaml/configuration_spec.rb'
150
+ - 'spec/lutaml/jsonschema/schema_store_spec.rb'
60
151
  - 'spec/lutaml/jsonschema_spec.rb'
61
- - 'spec/lutaml/schema_set_cross_ref_spec.rb'
62
- - 'spec/lutaml/schema_set_resolution_spec.rb'
63
- - 'spec/lutaml/spa_builder_spec.rb'
152
+ - 'spec/lutaml/schema/each_child_spec.rb'
153
+ - 'spec/lutaml/spa/spa_definition_spec.rb'
64
154
 
65
155
  # Offense count: 2
66
156
  # Configuration parameters: IgnoreLiteralBranches, IgnoreConstantBranches, IgnoreDuplicateElseBranch.
@@ -74,7 +164,15 @@ Lint/IneffectiveAccessModifier:
74
164
  Exclude:
75
165
  - 'lib/lutaml/jsonschema/schema_set.rb'
76
166
 
77
- # Offense count: 16
167
+ # Offense count: 3
168
+ # This cop supports safe autocorrection (--autocorrect).
169
+ # Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods, NotImplementedExceptions.
170
+ # NotImplementedExceptions: NotImplementedError
171
+ Lint/UnusedMethodArgument:
172
+ Exclude:
173
+ - 'lib/lutaml/jsonschema/spa/spa_builder.rb'
174
+
175
+ # Offense count: 21
78
176
  # Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes, Max.
79
177
  Metrics/AbcSize:
80
178
  Exclude:
@@ -82,44 +180,45 @@ Metrics/AbcSize:
82
180
  - 'lib/lutaml/jsonschema/combiner.rb'
83
181
  - 'lib/lutaml/jsonschema/configuration.rb'
84
182
  - 'lib/lutaml/jsonschema/reference_resolver.rb'
85
- - 'lib/lutaml/jsonschema/schema_set.rb'
183
+ - 'lib/lutaml/jsonschema/schema.rb'
86
184
  - 'lib/lutaml/jsonschema/spa/spa_builder.rb'
87
185
 
88
- # Offense count: 5
186
+ # Offense count: 6
89
187
  # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
90
188
  # AllowedMethods: refine
91
189
  Metrics/BlockLength:
92
190
  Max: 54
93
191
 
94
- # Offense count: 8
192
+ # Offense count: 12
95
193
  # Configuration parameters: AllowedMethods, AllowedPatterns, Max.
96
194
  Metrics/CyclomaticComplexity:
97
195
  Exclude:
98
196
  - 'lib/lutaml/jsonschema/cli.rb'
99
- - 'lib/lutaml/jsonschema/combiner.rb'
100
- - 'lib/lutaml/jsonschema/configuration.rb'
101
197
  - 'lib/lutaml/jsonschema/reference_resolver.rb'
198
+ - 'lib/lutaml/jsonschema/schema.rb'
102
199
  - 'lib/lutaml/jsonschema/schema_set.rb'
200
+ - 'lib/lutaml/jsonschema/spa/spa_builder.rb'
103
201
 
104
- # Offense count: 18
202
+ # Offense count: 22
105
203
  # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
106
204
  Metrics/MethodLength:
107
- Max: 47
205
+ Max: 70
108
206
 
109
- # Offense count: 6
207
+ # Offense count: 9
110
208
  # Configuration parameters: AllowedMethods, AllowedPatterns, Max.
111
209
  Metrics/PerceivedComplexity:
112
210
  Exclude:
113
- - 'lib/lutaml/jsonschema/combiner.rb'
114
- - 'lib/lutaml/jsonschema/configuration.rb'
115
211
  - 'lib/lutaml/jsonschema/reference_resolver.rb'
212
+ - 'lib/lutaml/jsonschema/schema.rb'
116
213
  - 'lib/lutaml/jsonschema/schema_set.rb'
214
+ - 'lib/lutaml/jsonschema/spa/spa_builder.rb'
117
215
 
118
- # Offense count: 1
216
+ # Offense count: 2
119
217
  # Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
120
218
  # AllowedNames: as, at, by, cc, db, id, if, in, io, ip, of, on, os, pp, to
121
219
  Naming/MethodParameterName:
122
220
  Exclude:
221
+ - 'lib/lutaml/jsonschema/spa/spa_builder.rb'
123
222
  - 'lib/lutaml/jsonschema/spa/vue_inlined_strategy.rb'
124
223
 
125
224
  # Offense count: 1
@@ -130,7 +229,7 @@ Naming/PredicateMethod:
130
229
  Exclude:
131
230
  - 'lib/lutaml/jsonschema/schema_set.rb'
132
231
 
133
- # Offense count: 7
232
+ # Offense count: 51
134
233
  # This cop supports safe autocorrection (--autocorrect).
135
234
  # Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, AllowedMethods, AllowedPatterns, AllowBracesOnProceduralOneLiners, BracesRequiredMethods.
136
235
  # SupportedStyles: line_count_based, semantic, braces_for_chaining, always_braces
@@ -139,10 +238,62 @@ Naming/PredicateMethod:
139
238
  # AllowedMethods: lambda, proc, it
140
239
  Style/BlockDelimiters:
141
240
  Exclude:
142
- - 'spec/lutaml/spa_builder_spec.rb'
241
+ - 'lib/lutaml/jsonschema/schema.rb'
242
+ - 'spec/e2e/spa_e2e_spec.rb'
243
+ - 'spec/lutaml/generator_spec.rb'
244
+
245
+ # Offense count: 1
246
+ # This cop supports safe autocorrection (--autocorrect).
247
+ # Configuration parameters: EnforcedStyle, AllowComments.
248
+ # SupportedStyles: empty, nil, both
249
+ Style/EmptyElse:
250
+ Exclude:
251
+ - 'lib/lutaml/jsonschema/schema_store.rb'
143
252
 
144
253
  # Offense count: 2
145
254
  # This cop supports unsafe autocorrection (--autocorrect-all).
146
255
  Style/IdenticalConditionalBranches:
147
256
  Exclude:
148
257
  - 'spec/lutaml/spa_builder_spec.rb'
258
+
259
+ # Offense count: 1
260
+ # This cop supports safe autocorrection (--autocorrect).
261
+ Style/MultilineIfModifier:
262
+ Exclude:
263
+ - 'lib/lutaml/jsonschema/schema_store.rb'
264
+
265
+ # Offense count: 7
266
+ # This cop supports safe autocorrection (--autocorrect).
267
+ Style/MultilineTernaryOperator:
268
+ Exclude:
269
+ - 'lib/lutaml/jsonschema/schema_store.rb'
270
+ - 'lib/lutaml/jsonschema/spa/spa_builder.rb'
271
+
272
+ # Offense count: 1
273
+ # This cop supports safe autocorrection (--autocorrect).
274
+ Style/RedundantStringEscape:
275
+ Exclude:
276
+ - 'spec/lutaml/schema/each_child_spec.rb'
277
+
278
+ # Offense count: 2
279
+ # This cop supports unsafe autocorrection (--autocorrect-all).
280
+ Style/SingleArgumentDig:
281
+ Exclude:
282
+ - 'spec/e2e/spa_e2e_spec.rb'
283
+
284
+ # Offense count: 2
285
+ # This cop supports safe autocorrection (--autocorrect).
286
+ # Configuration parameters: EnforcedStyleForMultiline.
287
+ # SupportedStylesForMultiline: comma, consistent_comma, diff_comma, no_comma
288
+ Style/TrailingCommaInArguments:
289
+ Exclude:
290
+ - 'lib/lutaml/jsonschema/ljr_package_definition.rb'
291
+ - 'spec/lutaml/spa/generator_spec.rb'
292
+
293
+ # Offense count: 4
294
+ # This cop supports safe autocorrection (--autocorrect).
295
+ # Configuration parameters: EnforcedStyleForMultiline.
296
+ # SupportedStylesForMultiline: comma, consistent_comma, diff_comma, no_comma
297
+ Style/TrailingCommaInArrayLiteral:
298
+ Exclude:
299
+ - 'spec/e2e/spa_e2e_spec.rb'
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  # frozen_string_literal: true
3
3
 
4
- require "lutaml/jsonschema/cli"
4
+ require "lutaml/jsonschema"
5
5
 
6
6
  Lutaml::Jsonschema::Cli.start(ARGV)