lutaml-jsonschema 0.1.26 → 0.1.28
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/CHANGELOG.md +73 -0
- data/CLAUDE.md +2 -1
- data/LICENSE.md +33 -0
- data/frontend/dist/app.iife.js +1 -28
- data/frontend/dist/style.css +2 -1
- data/frontend/package-lock.json +396 -1459
- data/frontend/package.json +3 -3
- data/lib/lutaml/jsonschema/version.rb +1 -1
- data/script/axe_audit +19 -7
- metadata +9 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f848e0f117d9330173883074213d580ea34a2f636388f0842a47bca7baeba658
|
|
4
|
+
data.tar.gz: 70aa540fa4ada48264e35e2fcaa98c858e571ccb20f6ce2c6e3367dfa562ffe2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2458aaca38c8236564366b01235fd504bc0398cf63d725aacf253f61cdee43414347f336c69a6abd7131270ae2778e17b06d2d877760a0c9f5cb52a3b073a1f7
|
|
7
|
+
data.tar.gz: dc5f569d5777363fe7692ef697e966def54b27cdd96ea8192e209215e8d95ac5b62d263af74d314554dfbef1f78512608a57ffa66eee51b2556ed5eaf4cfef93
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,78 @@
|
|
|
1
1
|
## [Unreleased]
|
|
2
2
|
|
|
3
|
+
## [0.1.27] - 2026-10-31
|
|
4
|
+
|
|
5
|
+
- Add the BSD-2-Clause license (LICENSE.md + `spec.license`) and backfill
|
|
6
|
+
the changelog for 0.1.16–0.1.26
|
|
7
|
+
- Floor yeptris at the fixed `~> 0.6.51` line (marshal strict-dup
|
|
8
|
+
false-positive fixed, yeptris-ruby#333)
|
|
9
|
+
- Frontend dev toolchain bumped past the vulnerable ranges
|
|
10
|
+
- lychee-action bumped to v2
|
|
11
|
+
|
|
12
|
+
## [0.1.26] - 2026-10-28
|
|
13
|
+
|
|
14
|
+
- Accept YAML schema inputs (`SourceFile` records) alongside JSON
|
|
15
|
+
- Fix AsciiDoc links to resolved schema targets; reference-link audit
|
|
16
|
+
- Audit the Arabic RTL render in the axe gate
|
|
17
|
+
- Real README; CLAUDE.md refreshed for the SOTA state
|
|
18
|
+
- Pin Parsanol for the LML round-trip test
|
|
19
|
+
|
|
20
|
+
## [0.1.25] - 2026-10-22
|
|
21
|
+
|
|
22
|
+
- Fully lossless model: unknown keywords and `x-*` extensions preserved via
|
|
23
|
+
`map_unmapped` (lutaml-model `~> 0.8.122`)
|
|
24
|
+
- RTL-safe layout (CSS logical properties + document `dir` mirroring),
|
|
25
|
+
Arabic locale with live switch, RTL render proven in headless Chrome
|
|
26
|
+
- axe-core AA audit in the default `rake` gate with vendored axe
|
|
27
|
+
- LML exporter (`export --format lml` via lutaml-lml)
|
|
28
|
+
- Metanorma-embeddable AsciiDoc (`--embeddable`) and CDDL round-trip through
|
|
29
|
+
the RFC 8610 reference parser (`pstore` declared for Ruby 4.0)
|
|
30
|
+
- Dialect semantics annotations for `$ref` siblings and format assertions
|
|
31
|
+
- Ruby 4.0: brace hash literals in specs passed to `dump`
|
|
32
|
+
|
|
33
|
+
## [0.1.24] - 2026-10-21
|
|
34
|
+
|
|
35
|
+
- Generated SPA passes an axe-core AA scan
|
|
36
|
+
- Frontend built in rake CI; fixed the rake workflow startup failure
|
|
37
|
+
- Perf caps calibrated per environment; `benchmark` gem declared for Ruby 4.0
|
|
38
|
+
|
|
39
|
+
## [0.1.23] - 2026-10-20
|
|
40
|
+
|
|
41
|
+
- yeptris as the JSON parse engine, floored at the fixed `~> 0.6.34` line
|
|
42
|
+
(fixes the native materializer SIGSEGV and the tape-engine perf gap)
|
|
43
|
+
- CLAUDE.md with repo commands and architecture
|
|
44
|
+
|
|
45
|
+
## [0.1.22] - 2026-10-19
|
|
46
|
+
|
|
47
|
+
- Floor lutaml-model at `~> 0.8.114`
|
|
48
|
+
|
|
49
|
+
## [0.1.21] - 2026-10-02
|
|
50
|
+
|
|
51
|
+
- Maintenance release (release-train CI fixes ride along from 0.1.20)
|
|
52
|
+
|
|
53
|
+
## [0.1.20] - 2026-10-01
|
|
54
|
+
|
|
55
|
+
- Release `post_install` hardened: `npm ci` against the runner-synced lock
|
|
56
|
+
without touching tracked files
|
|
57
|
+
|
|
58
|
+
## [0.1.19] - 2026-06-08
|
|
59
|
+
|
|
60
|
+
- Fix all SPA data gaps for complex schemas (0.1.18 line)
|
|
61
|
+
- Appearance config support for logos and subtitle
|
|
62
|
+
- Comprehensive code-quality audit (311 specs, 0 failures)
|
|
63
|
+
- Remove the local lutaml-store path override for CI
|
|
64
|
+
|
|
65
|
+
## [0.1.17] - 2026-05-27
|
|
66
|
+
|
|
67
|
+
- Resolve array items `$ref` and expose definition-level constraints
|
|
68
|
+
- Render `itemsRef` and definition constraints
|
|
69
|
+
|
|
70
|
+
## [0.1.16] - 2026-05-14
|
|
71
|
+
|
|
72
|
+
- Frontend range tests (numberRange/stringRange/itemsRange) and
|
|
73
|
+
jsonToCollapsibleHtml edge cases
|
|
74
|
+
- Hardcoded rgba replaced with CSS variables; rubocop baseline refresh
|
|
75
|
+
|
|
3
76
|
## [0.1.15] - 2026-05-10
|
|
4
77
|
|
|
5
78
|
### Redoc-style UX improvements (round 16)
|
data/CLAUDE.md
CHANGED
|
@@ -51,8 +51,9 @@ Two distinct paths, both engine-backed:
|
|
|
51
51
|
- **Direct parsing** in this gem (`Cli#combine`, `Cli#validate`, `Schema.serialize_additional_properties`) uses `Yeptris::JSON.load` — strict RFC 8259, exact-`JSON.parse` semantics, raises `Yeptris::JSON::ParseError`. JSON **generation** stays on the stdlib `json` gem (`JSON.pretty_generate`); yeptris's JSON surface is load-only.
|
|
52
52
|
- **Model serialization** (`Schema.from_json`/`to_json`, `Configuration.from_yaml`, lutaml-store I/O) goes through lutaml-model, whose `AdapterResolver` auto-detects yeptris from the bundle and routes both `:json` and `:yaml` to its `YeptrisAdapter`. That adapter re-raises parse failures as `JSON::ParserError`, so error handling must cover **both** exception types — see the rescue in `Cli#validate`.
|
|
53
53
|
- Raw-parse speed depends on the resolved yeptris build shipping a **native materializer for the running Ruby version**; without one it falls back to a pure-Ruby tape engine that is several times slower than `JSON.parse` on large documents (yeptris-ruby#278). Check with `defined?(Yeptris::Native)` (0.6.28.x shipped only Ruby 3.3; 3.4-native starts at 0.6.29.1).
|
|
54
|
-
- The GC-pressure SIGSEGV in the native JSON materializer (yeptris-ruby#279) is fixed in the yeptris **0.6.34 line** (staged pairs made GC-visible);
|
|
54
|
+
- The GC-pressure SIGSEGV in the native JSON materializer (yeptris-ruby#279) is fixed in the yeptris **0.6.34 line** (staged pairs made GC-visible); excluding the crashy 0.6.29.x–0.6.33.x native builds. Env-gated canary: yeptris-ruby#280.
|
|
55
55
|
- The 0.6.34 C **strict-dup pre-scan** was broken (one shared key table, no growth — false duplicates on ordinary schemas, hang on the 17th distinct key); fixed in yeptris v0.6.35 (per-container frame stacks). Lanes without a native materializer (all Windows) ride that marshal route, so engine bugs surface there first.
|
|
56
|
+
- The marshal route's strict-dup scan carried a second latent false-positive — three equal array elements inside an object (`{"a":[1,1,1]}`) raised `duplicate key in object` — present since ~0.6.36 and reachable once json 3 turned the strict flag on; fixed in yeptris **0.6.51** (yeptris-ruby#333). The gemspec floors at `~> 0.6.51` (the 0.6.51 release train also fixed its musl/qemu container legs racing the fresh release tag).
|
|
56
57
|
|
|
57
58
|
## Frontend: i18n, RTL, a11y
|
|
58
59
|
|
data/LICENSE.md
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
Licenses & Copyright
|
|
2
|
+
====================
|
|
3
|
+
|
|
4
|
+
This license file adheres to the formatting guidelines of
|
|
5
|
+
[readable-licenses](https://github.com/nevir/readable-licenses).
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
Ribose's BSD 2-Clause License
|
|
9
|
+
-----------------------------
|
|
10
|
+
|
|
11
|
+
Copyright (c) 2026, [Ribose Inc](https://www.ribose.com).
|
|
12
|
+
All rights reserved.
|
|
13
|
+
|
|
14
|
+
Redistribution and use in source and binary forms, with or without modification,
|
|
15
|
+
are permitted provided that the following conditions are met:
|
|
16
|
+
|
|
17
|
+
1. Redistributions of source code must retain the above copyright notice,
|
|
18
|
+
this list of conditions and the following disclaimer.
|
|
19
|
+
|
|
20
|
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
21
|
+
this list of conditions and the following disclaimer in the documentation
|
|
22
|
+
and/or other materials provided with the distribution.
|
|
23
|
+
|
|
24
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
25
|
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
26
|
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
27
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
|
28
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
29
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
30
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
31
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
32
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
|
33
|
+
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|