@blockml/xsd-target 0.4.0 → 0.6.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.
- package/blocks/org/blockml/bml/target/xsd/Library.bml +30 -31
- package/blocks/org/blockml/bml/target/xsd/README.bml +2 -2
- package/blocks/org/blockml/bml/target/xsd/documentation/DesignDecisions.bml +1 -1
- package/blocks/org/blockml/bml/target/xsd/documentation/Diagnostics.bml +1 -1
- package/blocks/org/blockml/bml/target/xsd/documentation/Introduction.bml +4 -3
- package/blocks/org/blockml/bml/target/xsd/documentation/LayerSeparation.bml +1 -1
- package/blocks/org/blockml/bml/target/xsd/documentation/PackageOwnership.bml +1 -1
- package/blocks/org/blockml/bml/target/xsd/documentation/ScopeExclusions.bml +1 -1
- package/package.json +4 -4
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
exclusively by this blocks list.
|
|
34
34
|
</documentation>
|
|
35
35
|
|
|
36
|
-
<version>0.
|
|
36
|
+
<version>0.6.0</version>
|
|
37
37
|
|
|
38
38
|
<language>
|
|
39
39
|
<English />
|
|
@@ -54,40 +54,39 @@
|
|
|
54
54
|
<dependencies>
|
|
55
55
|
<composition>
|
|
56
56
|
<blockml:Library />
|
|
57
|
-
</composition>
|
|
58
|
-
<composition>
|
|
59
57
|
<bom:Library />
|
|
60
58
|
</composition>
|
|
61
59
|
</dependencies>
|
|
62
60
|
<blocks>
|
|
63
|
-
<composition><xsd:XsdType
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
61
|
+
<composition><xsd:XsdType />
|
|
62
|
+
<xsdapi:XsdOptions />
|
|
63
|
+
<xsdapi:XsdRenderOutput />
|
|
64
|
+
<xsdapi:CatalogEntry />
|
|
65
|
+
<xsdconfig:XsdConstants />
|
|
66
|
+
<xsdconfig:DefaultXsdOptions />
|
|
67
|
+
<xsdcap:ResolveOptions />
|
|
68
|
+
<xsdcap:Render />
|
|
69
|
+
<xsdcap:EmitBlockXsd />
|
|
70
|
+
<xsdcap:MemberPrefersElement />
|
|
71
|
+
<xsdcap:ExtraElementNames />
|
|
72
|
+
<xsdcap:EmitTypesXsd />
|
|
73
|
+
<xsdcap:EmitServiceXsd />
|
|
74
|
+
<xsdcap:VocabularyElements />
|
|
75
|
+
<xsdcap:EmitCatalogXml />
|
|
76
|
+
<xsdcap:CatalogRelativePath />
|
|
77
|
+
<xsddocumentation:Introduction />
|
|
78
|
+
<xsddocumentation:LayerSeparation />
|
|
79
|
+
<xsddocumentation:ArchitectureOverview />
|
|
80
|
+
<xsddocumentation:V1Scope />
|
|
81
|
+
<xsddocumentation:PublicApi />
|
|
82
|
+
<xsddocumentation:ParticleMappingRules />
|
|
83
|
+
<xsddocumentation:DomainVocabularyRules />
|
|
84
|
+
<xsddocumentation:CatalogAndOutputLayout />
|
|
85
|
+
<xsddocumentation:Diagnostics />
|
|
86
|
+
<xsddocumentation:DesignDecisions />
|
|
87
|
+
<xsddocumentation:PackageOwnership />
|
|
88
|
+
<xsddocumentation:ScopeExclusions />
|
|
89
|
+
</composition>
|
|
91
90
|
</blocks>
|
|
92
91
|
</aggregations>
|
|
93
92
|
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
Start reading at org.blockml.bml.target.xsd.documentation.Introduction (ReadNext chain).
|
|
36
36
|
|
|
37
37
|
V1: emit universal bml.xsd (D1 lists + Definition extras), optional types.xsd /
|
|
38
|
-
service.xsd string vocabularies, and root catalog.xml.
|
|
39
|
-
|
|
38
|
+
service.xsd string vocabularies, and root catalog.xml. Generated schema is
|
|
39
|
+
non-authoritative; authoring validity is parse + validate, not this target.
|
|
40
40
|
|
|
41
41
|
Layer separation:
|
|
42
42
|
• Definition / docs 19 — bml:xml particle grammar
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
XSD15 emitDomainSchemas default true.
|
|
42
42
|
XSD16 includeNonExported reserved unused in V1.
|
|
43
43
|
XSD17 No package-local emit diagnostics.
|
|
44
|
-
XSD18
|
|
44
|
+
XSD18 Generated XSD is non-authoritative; authoring validity is parse+validate, not this target.</documentation>
|
|
45
45
|
<references>
|
|
46
46
|
<see type="xsddocumentation:PackageOwnership" relation="ReadNext"></see>
|
|
47
47
|
</references>
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
|
|
30
30
|
<documentation>V1 XSD target emits without package diagnostics codes. Failures surface as host/CLI
|
|
31
31
|
or empty/malformed output only if upstream session is broken.
|
|
32
|
-
|
|
32
|
+
Generated schema is non-authoritative; CLI validate does not invoke this target.
|
|
33
33
|
Scope mismatch for accepts is compiler/CLI (BML_TARGET_SCOPE_MISMATCH).</documentation>
|
|
34
34
|
<references>
|
|
35
35
|
<see type="xsddocumentation:DesignDecisions" relation="ReadNext"></see>
|
|
@@ -35,9 +35,10 @@
|
|
|
35
35
|
packages/xsd-target/src/ implements it. Tests in packages/xsd-target/test/
|
|
36
36
|
encode behavioral contracts (XSD1–XSD18).
|
|
37
37
|
|
|
38
|
-
Generate vs Validation: this library models schema GENERATE only.
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
Generate vs Validation: this library models schema GENERATE only. Generated schemas
|
|
39
|
+
are non-authoritative: they MUST NOT encode rules that parse + validate do not
|
|
40
|
+
themselves enforce. Authoring validity is parse + @blockml/validator (CLI validate /
|
|
41
|
+
LSP). compile xsd remains the generate path.
|
|
41
42
|
|
|
42
43
|
Pipeline: ResolveOptions → EmitBlockXsd [+ EmitTypesXsd / EmitServiceXsd] →
|
|
43
44
|
EmitCatalogXml → files under outDir plus rootFiles catalog.xml.
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
<documentation>Layers:
|
|
31
31
|
• org.blockml.bml.definition / docs 19 D1 — bml:xml particle grammar SSOT (XSD consumes)
|
|
32
32
|
• org.blockml.bml.target.xsd.* (this library) — emit bml.xsd / types.xsd / service.xsd / catalog
|
|
33
|
-
• org.blockml.bml.cli.* — default outDir=schemas, rootFiles write
|
|
33
|
+
• org.blockml.bml.cli.* — default outDir=schemas, rootFiles write; validate is parse + validator
|
|
34
34
|
• MachineBlocks domain XSDs — out of scope (product schemas)
|
|
35
35
|
|
|
36
36
|
Do not double-maintain CLI flags or D1 grammar here; link via SeeAlso.</documentation>
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
|
|
33
33
|
Does not own: CLI default outDir=schemas, rootFiles write, exit codes (cli);
|
|
34
34
|
D1/bml:xml grammar SSOT (Definition / docs 19);
|
|
35
|
-
|
|
35
|
+
authoring validity (parser + validator; CLI validate);
|
|
36
36
|
MachineBlocks domain XSDs.
|
|
37
37
|
Phase C IDE catalog narrative pointers in docs 15 stay host docs; generation here.</documentation>
|
|
38
38
|
<references>
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
<is>Explicitly out of XSD V1 library scope</is>
|
|
29
29
|
|
|
30
30
|
<documentation>Out of scope for this library / V1:
|
|
31
|
-
• Authoring validation against generated XSD (
|
|
31
|
+
• Authoring validation against generated XSD (parse + validator own validity)
|
|
32
32
|
• Full D1 particle fidelity (attributes, text, nested content models)
|
|
33
33
|
• Pure Definition-driven particle lists without hardcoded D1 arrays
|
|
34
34
|
• includeNonExported filtering effect
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blockml/xsd-target",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "BlockML XSD render target — XML Schema generation",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -32,10 +32,10 @@
|
|
|
32
32
|
"test": "vitest run packages/xsd-target/test"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@blockml/bom": "^0.
|
|
36
|
-
"@blockml/compiler": "^0.
|
|
35
|
+
"@blockml/bom": "^0.6.0",
|
|
36
|
+
"@blockml/compiler": "^0.6.0",
|
|
37
37
|
"@blockml/core": "^1.0.5",
|
|
38
|
-
"@blockml/framework": "^0.
|
|
38
|
+
"@blockml/framework": "^0.6.0"
|
|
39
39
|
},
|
|
40
40
|
"engines": {
|
|
41
41
|
"node": ">=20"
|