@blockml/xsd-target 0.1.0 → 0.5.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.
@@ -33,7 +33,7 @@
33
33
  exclusively by this blocks list.
34
34
  </documentation>
35
35
 
36
- <version>0.1.0</version>
36
+ <version>0.5.0</version>
37
37
 
38
38
  <language>
39
39
  <English />
@@ -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. Authoring validation is
39
- CLI-owned (--no-xsd), not this target.
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 Authoring XSD validation is CLI ScopeExclusion not an XSD capability.</documentation>
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
- Authoring validation diagnostics (--no-xsd) are CLI-owned, not modeled here.
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. Authoring
39
- validation against generated XSDs (--no-xsd / xsdValidation) lives in
40
- org.blockml.bml.cli ScopeExclusions never as an XSD target capability.
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, --no-xsd authoring validation
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
- --no-xsd / xsdValidation (cli ScopeExclusion);
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 (--no-xsd, xsdValidation)
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.1.0",
3
+ "version": "0.5.0",
4
4
  "description": "BlockML XSD render target — XML Schema generation",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -32,9 +32,10 @@
32
32
  "test": "vitest run packages/xsd-target/test"
33
33
  },
34
34
  "dependencies": {
35
- "@blockml/bom": "^0.1.0",
36
- "@blockml/compiler": "^0.1.0",
37
- "@blockml/framework": "^0.1.0"
35
+ "@blockml/bom": "^0.5.0",
36
+ "@blockml/compiler": "^0.5.0",
37
+ "@blockml/core": "^1.0.5",
38
+ "@blockml/framework": "^0.5.0"
38
39
  },
39
40
  "engines": {
40
41
  "node": ">=20"