lawspec 0.23.0 → 0.25.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.
Files changed (98) hide show
  1. package/CHANGELOG.md +167 -1
  2. package/README.md +29 -22
  3. package/UNICODE-LICENSE.txt +39 -0
  4. package/api.mjs +14 -23
  5. package/bin/lawspec.mjs +200 -67
  6. package/build.json +381 -155
  7. package/builtin-data-names.mjs +73 -0
  8. package/compatibility.json +21 -0
  9. package/core.wasm +2 -2
  10. package/doctor.mjs +98 -1
  11. package/examples/native-payments/clojure/lawspec.json +62 -0
  12. package/examples/native-payments/clojure/src/domain/payments.clj +11 -0
  13. package/examples/native-payments/clojure/test/domain/payment_generators.clj +9 -0
  14. package/examples/native-payments/csharp/lawspec.json +13 -2
  15. package/examples/native-payments/elixir/lawspec.json +14 -3
  16. package/examples/native-payments/erlang/lawspec.json +14 -3
  17. package/examples/native-payments/fsharp/lawspec.json +14 -3
  18. package/examples/native-payments/gleam/lawspec.json +14 -3
  19. package/examples/native-payments/go/lawspec.json +14 -3
  20. package/examples/native-payments/groovy/lawspec.json +176 -0
  21. package/examples/native-payments/groovy/src/main/groovy/domain/PaymentsDomain.groovy +49 -0
  22. package/examples/native-payments/groovy/src/test/groovy/domain/PaymentGenerators.groovy +15 -0
  23. package/examples/native-payments/haskell/lawspec.json +14 -3
  24. package/examples/native-payments/java/lawspec.json +14 -3
  25. package/examples/native-payments/javascript/lawspec.json +14 -3
  26. package/examples/native-payments/kotlin/lawspec.json +14 -3
  27. package/examples/native-payments/python/lawspec.json +14 -3
  28. package/examples/native-payments/rust/lawspec.json +14 -3
  29. package/examples/native-payments/scala/lawspec.json +176 -0
  30. package/examples/native-payments/scala/src/main/scala/domain/PaymentsDomain.scala +18 -0
  31. package/examples/native-payments/scala/src/test/scala/domain/PaymentGenerators.scala +8 -0
  32. package/examples/native-payments/swift/lawspec.json +165 -0
  33. package/examples/native-payments/swift/src/Native/PaymentsDomain.swift +35 -0
  34. package/examples/native-payments/swift/tests/Native/PaymentGenerators.swift +12 -0
  35. package/examples/native-payments/typescript/lawspec.json +14 -3
  36. package/examples/packages/orders/lawspec.json +25 -5
  37. package/examples/packages/orders/orders.lawspec +36 -34
  38. package/examples/packages/shop-domain/src/domain.lawspec +23 -21
  39. package/examples/packages/shop-tax-1/src/rates.lawspec +4 -4
  40. package/examples/packages/shop-tax-2/src/rates.lawspec +5 -4
  41. package/examples/rc1/authorization-snapshots.lawspec +112 -0
  42. package/examples/rc1/banner-filenames.lawspec +63 -0
  43. package/examples/rc1/bit-codec.lawspec +56 -0
  44. package/examples/rc1/bounded-witness-search.lawspec +144 -0
  45. package/examples/rc1/conflicting-requirements.lawspec +30 -0
  46. package/examples/rc1/constructive-witnesses.lawspec +113 -0
  47. package/examples/rc1/documentary-review.lawspec +42 -0
  48. package/examples/rc1/empty-domains.lawspec +46 -0
  49. package/examples/rc1/finite-integer-domains.lawspec +75 -0
  50. package/examples/rc1/law-metadata.lawspec +29 -0
  51. package/examples/rc1/native-payments.lawspec +107 -0
  52. package/examples/rc1/nesting/rrr.lawspec +33 -0
  53. package/examples/rc1/nesting/rru.lawspec +56 -0
  54. package/examples/rc1/nesting/rur.lawspec +57 -0
  55. package/examples/rc1/nesting/ruu.lawspec +77 -0
  56. package/examples/rc1/nesting/urr.lawspec +52 -0
  57. package/examples/rc1/nesting/uru.lawspec +72 -0
  58. package/examples/rc1/nesting/uur.lawspec +73 -0
  59. package/examples/rc1/nesting/uuu.lawspec +95 -0
  60. package/examples/rc1/order-workflow.lawspec +126 -0
  61. package/examples/rc1/parcel-measurements.lawspec +92 -0
  62. package/examples/rc1/picture-records.lawspec +51 -0
  63. package/examples/rc1/picture-tuples.lawspec +47 -0
  64. package/examples/rc1/record-payloads.lawspec +56 -0
  65. package/examples/rc1/recursive-records.lawspec +64 -0
  66. package/examples/rc1/refund-conformance.lawspec +44 -0
  67. package/examples/rc1/refund-policy.lawspec +88 -0
  68. package/examples/rc1/requirement-composition.lawspec +89 -0
  69. package/examples/rc1/structural-records.lawspec +53 -0
  70. package/examples/rc1-authoring.lawspec +56 -0
  71. package/examples-command.mjs +11 -5
  72. package/explain.mjs +112 -0
  73. package/expression-presentation.mjs +333 -0
  74. package/files.mjs +16 -0
  75. package/index.d.ts +934 -12
  76. package/lsp.mjs +231 -0
  77. package/migrate.mjs +135 -0
  78. package/migration-bindings.mjs +86 -0
  79. package/migration-cases.mjs +45 -0
  80. package/migration-collections.mjs +54 -0
  81. package/migration-correspondence.mjs +275 -0
  82. package/migration-generation.mjs +99 -0
  83. package/migration-laws.mjs +102 -0
  84. package/migration-records.mjs +166 -0
  85. package/migration-source.mjs +247 -0
  86. package/migration-write.mjs +156 -0
  87. package/native-evidence.mjs +187 -0
  88. package/native-examples.mjs +8 -1
  89. package/node-events-reporter.mjs +23 -0
  90. package/package.json +8 -1
  91. package/positional-fields.mjs +13 -0
  92. package/proof.d.ts +35 -0
  93. package/proof.mjs +174 -0
  94. package/scala-coverage.mjs +56 -0
  95. package/starter-rc1.lawspec +25 -0
  96. package/templates.mjs +65 -3
  97. package/test-command.mjs +177 -29
  98. package/typed-presentation.mjs +165 -0
@@ -0,0 +1,73 @@
1
+ // Generated from templates/npm/builtin-data-names.mjs by lawspec-dev generate. Do not edit.
2
+ // Names and field order projected from the compiler's primitive data registry.
3
+ // This is presentation metadata, not another type checker or public wire view.
4
+ export const builtinDataNames =
5
+ [
6
+ {
7
+ "id": "List",
8
+ "name": "List",
9
+ "constructors": [
10
+ {
11
+ "id": "List::Nil",
12
+ "name": "Nil",
13
+ "fields": []
14
+ },
15
+ {
16
+ "id": "List::Cons",
17
+ "name": "Cons",
18
+ "fields": [
19
+ {
20
+ "name": "head"
21
+ },
22
+ {
23
+ "name": "tail"
24
+ }
25
+ ]
26
+ }
27
+ ]
28
+ },
29
+ {
30
+ "id": "Maybe",
31
+ "name": "Maybe",
32
+ "constructors": [
33
+ {
34
+ "id": "Maybe::Nothing",
35
+ "name": "Nothing",
36
+ "fields": []
37
+ },
38
+ {
39
+ "id": "Maybe::Just",
40
+ "name": "Just",
41
+ "fields": [
42
+ {
43
+ "name": "value"
44
+ }
45
+ ]
46
+ }
47
+ ]
48
+ },
49
+ {
50
+ "id": "Either",
51
+ "name": "Either",
52
+ "constructors": [
53
+ {
54
+ "id": "Either::Left",
55
+ "name": "Left",
56
+ "fields": [
57
+ {
58
+ "name": "value"
59
+ }
60
+ ]
61
+ },
62
+ {
63
+ "id": "Either::Right",
64
+ "name": "Right",
65
+ "fields": [
66
+ {
67
+ "name": "value"
68
+ }
69
+ ]
70
+ }
71
+ ]
72
+ }
73
+ ];
@@ -91,6 +91,24 @@
91
91
  "2.3.22"
92
92
  ]
93
93
  },
94
+ "scala": {
95
+ "java": ["25", "27"],
96
+ "scala-cli": ["1.16", "1.17"],
97
+ "scala": ["3.9", "3.11"],
98
+ "scalacheck": ["1.20.0", "1.21"],
99
+ "scalatest": ["3.2.20", "3.3"]
100
+ },
101
+ "clojure": {
102
+ "java": ["25", "26"],
103
+ "clojure": ["1.12", "1.13"],
104
+ "test.check": ["1.1.3", "1.2"]
105
+ },
106
+ "groovy": {
107
+ "java": ["25", "26"],
108
+ "gradle": ["9.1", "9.4"],
109
+ "groovy": ["5.0", "5.1"],
110
+ "spock": ["2.5", "2.6"]
111
+ },
94
112
  "erlang": {
95
113
  "otp": ["29", "30"],
96
114
  "rebar3": ["3.27.1", "3.28"],
@@ -141,6 +159,9 @@
141
159
  "csharp": {
142
160
  "dotnet": ["10", "11"],
143
161
  "xunit.v3": ["4.0.2", "4.1"]
162
+ },
163
+ "swift": {
164
+ "swift": ["6.2", "6.4"]
144
165
  }
145
166
  }
146
167
  }
package/core.wasm CHANGED
@@ -1,4 +1,4 @@
1
1
  [diffend] Oversized file quarantined before diffing.
2
2
  name: package/core.wasm
3
- size: 51506170 bytes
4
- sha256: ecc1e0486be653a1ff48db04c5a6f144434e57483328d10ab351fb1072b87e06
3
+ size: 73195567 bytes
4
+ sha256: 79d6019410f0fdc5412b88973a16dc2ccf409bc9474a581a49f8ec0920ad32f4
package/doctor.mjs CHANGED
@@ -76,7 +76,13 @@ export async function doctor(target, root, plannedArtifacts = []) {
76
76
  ? ["src/main/java", "src/test/java"]
77
77
  : name === "kotlin"
78
78
  ? ["src/main/kotlin", "src/test/kotlin"]
79
- : ["src", ["python", "rust", "fsharp", "csharp"].includes(name) ? "tests" : "test"];
79
+ : name === "scala"
80
+ ? ["src/main/scala", "src/test/scala"]
81
+ : name === "groovy"
82
+ ? ["src/main/groovy", "src/test/groovy"]
83
+ : name === "clojure"
84
+ ? ["src", "test"]
85
+ : ["src", ["python", "rust", "fsharp", "csharp", "swift"].includes(name) ? "tests" : "test"];
80
86
  const sourceDir = target.sourceDir ?? defaults[0];
81
87
  const testDir = target.testDir ?? defaults[1];
82
88
  try {
@@ -463,6 +469,86 @@ export async function doctor(target, root, plannedArtifacts = []) {
463
469
  } finally {
464
470
  await rm(tmp, { recursive: true, force: true });
465
471
  }
472
+ } else if (name === "scala") {
473
+ // Scala CLI reads the build from project.scala's directives; the
474
+ // sources keep sbt's layout, which Scala CLI compiles as main and test.
475
+ const command = target.scala || "scala";
476
+ const reported = await run(command, ["version"], root);
477
+ versions["scala-cli"] = reported.match(/Scala code runner version:\s*(\S+)/)?.[1] ?? reported.match(/Scala CLI version:\s*(\S+)/)?.[1];
478
+ // java --version prints to standard output (-version prints to standard error).
479
+ const java = await run("java", ["--version"], root).catch((error) => String(error.message));
480
+ versions.java = java.match(/^(?:openjdk|java)\s+(\S+)/m)?.[1];
481
+ requireThat(major(versions.java ?? "0") >= 25, "Scala requires JDK 25+");
482
+ const project = await readFile(path.join(root, "project.scala"), "utf8").catch(() => "");
483
+ const directive = (pattern) => project.match(pattern)?.[1];
484
+ versions.scala = directive(/\/\/>\s*using\s+scala\s+"?([0-9][^\s"]*)/);
485
+ versions.scalacheck = directive(/\/\/>\s*using\s+test\.deps?\s+"?org\.scalacheck::scalacheck:([^\s"]+)/);
486
+ versions.scalatest = directive(/\/\/>\s*using\s+test\.deps?\s+"?org\.scalatest::scalatest-funsuite:([^\s"]+)/);
487
+ requireThat(versions.scala, "project.scala must name Scala 3 (//> using scala 3.9.0)");
488
+ requireThat(versions.scalacheck, "project.scala must add ScalaCheck (//> using test.dep org.scalacheck::scalacheck:1.20.0)");
489
+ requireThat(versions.scalatest, "project.scala must add ScalaTest (//> using test.dep org.scalatest::scalatest-funsuite:3.2.20)");
490
+ requireThat(sourceDir.split("/").includes("main") || !sourceDir.split("/").includes("test"),
491
+ "The Scala source directory must not be under a directory named test, which Scala CLI compiles as tests");
492
+ requireThat(testDir.split("/").includes("test"),
493
+ "The Scala test directory must be under a directory named test, which Scala CLI compiles as tests");
494
+ } else if (name === "clojure") {
495
+ // Clojure over the Java model: deps.edn's :test alias runs LawSpec's
496
+ // runner, which compiles java/ into target/classes first.
497
+ const deps = await readFile(path.join(root, "deps.edn"), "utf8");
498
+ requireThat(deps.includes("\"target/classes\"") && deps.includes("\"target/test-classes\""),
499
+ "deps.edn must put target/classes on :paths and target/test-classes on the :test alias's :extra-paths");
500
+ requireThat(deps.includes("lawspec.test-runner"), "deps.edn's :test alias must run lawspec.test-runner (:main-opts [\"-m\" \"lawspec.test-runner\"])");
501
+ const command = target.clojure || "clojure";
502
+ const classpath = await run(command, ["-Spath", "-M:test"], root);
503
+ versions.clojure = classpath.match(/clojure-(\d+\.\d+\.\d+)\.jar/)?.[1];
504
+ versions["test.check"] = classpath.match(/test\.check-(\d+\.\d+\.\d+)\.jar/)?.[1];
505
+ requireThat(versions.clojure, "Missing org.clojure/clojure in deps.edn");
506
+ requireThat(versions["test.check"], "Missing org.clojure/test.check in deps.edn's :test alias");
507
+ versions.java = (await run("java", ["--version"], root)).match(/\b(\d+)(\.\d+)*/)?.[0];
508
+ requireThat(major(versions.java) >= 25, "Clojure needs a JDK 25+ (its compiler builds the Java model)");
509
+ } else if (name === "groovy") {
510
+ // Groovy over the Java model: Gradle's groovy plugin compiles both
511
+ // jointly, Spock runs the specifications and JetCheck the properties.
512
+ const command =
513
+ target.gradle ||
514
+ (await access(path.join(root, "gradlew")).then(
515
+ () => path.join(root, "gradlew"),
516
+ () => "gradle",
517
+ ));
518
+ const tmp = await mkdtemp(path.join(os.tmpdir(), "lawspec-gradle-"));
519
+ try {
520
+ const report = path.join(tmp, "report.json");
521
+ const init = path.join(tmp, "inspect.gradle");
522
+ await writeFile(
523
+ init,
524
+ `import groovy.json.JsonOutput\ngradle.projectsEvaluated {\n def p = gradle.rootProject\n p.tasks.register('lawspecEnvironmentReport') { doLast {\n def j = p.tasks.findByName('test')\n def deps = p.configurations.testRuntimeClasspath.resolvedConfiguration.resolvedArtifacts.collect { [name: it.moduleVersion.id.group + ':' + it.name, version: it.moduleVersion.id.version] }\n new File(System.getenv('LAWSPEC_REPORT')).text = JsonOutput.toJson([gradle: gradle.gradleVersion, java: System.getProperty('java.version'), testJava: j?.javaLauncher?.get()?.metadata?.languageVersion?.asInt(), runner: j?.options?.class?.name, enabled: j.enabled, includes: j.filter.includePatterns, excludes: j.filter.excludePatterns, sourceDirs: p.sourceSets.main.groovy.srcDirs.collect { it.canonicalPath }, testDirs: p.sourceSets.test.groovy.srcDirs.collect { it.canonicalPath }, dependencies: deps])\n } }\n}\n`,
525
+ );
526
+ await run(command, ["--no-daemon", "--console=plain", "-I", init, "lawspecEnvironmentReport"], root,
527
+ { env: { ...process.env, LAWSPEC_REPORT: report } });
528
+ const data = JSON.parse(await readFile(report, "utf8"));
529
+ requireThat(/^9\.[1-3]\./.test(data.gradle) && major(data.java) >= 25 && data.testJava >= 25,
530
+ "Groovy requires Gradle 9.1–9.3 and a Java 25+ toolchain");
531
+ requireThat(data.runner?.includes("JUnitPlatform") && data.enabled && !data.includes.length && !data.excludes.length,
532
+ "Gradle test must enable unfiltered JUnit Platform execution");
533
+ // The Java model compiles jointly with the Groovy sources.
534
+ // A custom sourceDir or testDir holds the Java model too.
535
+ const sources = target.sourceDir ? [sourceDir] : [sourceDir, "src/main/java"];
536
+ const tests = target.testDir ? [testDir] : [testDir, "src/test/java"];
537
+ requireThat(
538
+ sources.every((d) => data.sourceDirs.includes(path.join(root, d))) &&
539
+ tests.every((d) => data.testDirs.includes(path.join(root, d))),
540
+ `Gradle's Groovy source sets must include ${sources.join(" and ")}, and ${tests.join(" and ")}`,
541
+ );
542
+ const version = (dep) => data.dependencies.find((d) => d.name === dep)?.version;
543
+ versions.groovy = version("org.apache.groovy:groovy");
544
+ versions.spock = version("org.spockframework:spock-core")?.replace(/-groovy-.*/, "");
545
+ requireThat(versions.groovy, "Missing org.apache.groovy:groovy");
546
+ requireThat(versions.spock, "Missing org.spockframework:spock-core");
547
+ requireThat(version("org.jetbrains:jetCheck") === "0.3.0", "Missing org.jetbrains:jetCheck:0.3.0");
548
+ Object.assign(versions, { gradle: data.gradle, java: data.java });
549
+ } finally {
550
+ await rm(tmp, { recursive: true, force: true });
551
+ }
466
552
  } else if (name === "fsharp" || name === "csharp") {
467
553
  // .NET: the SDK, xUnit v3 on Microsoft.Testing.Platform (selected in
468
554
  // global.json), and projects that import the generated props.
@@ -484,6 +570,17 @@ export async function doctor(target, root, plannedArtifacts = []) {
484
570
  requireThat(test.includes("LawSpec.Tests.props"), `${testDir}/${tests[0]} must import LawSpec.Tests.props`);
485
571
  versions["xunit.v3"] = test.match(/<PackageReference\s+Include="xunit\.v3"\s+Version="([^"]+)"/)?.[1];
486
572
  requireThat(versions["xunit.v3"], `${testDir}/${tests[0]} must reference the xunit.v3 package`);
573
+ } else if (name === "swift") {
574
+ // Swift: the toolchain (SwiftPM and Swift Testing come with it) and a
575
+ // package that declares the generated runtime targets under lawspec/.
576
+ const reported = await run(target.swift || "swift", ["--version"], root);
577
+ versions.swift = reported.match(/Swift version (\d+\.\d+(?:\.\d+)?)/)?.[1];
578
+ requireThat(versions.swift, "Cannot determine the Swift version (swift --version)");
579
+ const manifest = await readFile(path.join(root, "Package.swift"), "utf8").catch(() => "");
580
+ requireThat(manifest, "Missing Package.swift");
581
+ for (const module of ["LawSpecRuntime", "LawSpecTesting"])
582
+ requireThat(manifest.includes(`"lawspec/${module}"`),
583
+ `Package.swift must declare the target ${module} at lawspec/${module}, as lawspec init does`);
487
584
  } else if (["erlang", "elixir", "gleam"].includes(name)) {
488
585
  const beam = await beamDoctor(target, root, plannedArtifacts, run);
489
586
  Object.assign(versions, beam.versions);
@@ -0,0 +1,62 @@
1
+ {
2
+ "version": 2,
3
+ "sources": [
4
+ "laws"
5
+ ],
6
+ "machineBits": 64,
7
+ "targets": [
8
+ {
9
+ "language": "clojure",
10
+ "root": ".",
11
+ "nativeBindings": {
12
+ "functions": [
13
+ {
14
+ "declaration": "example.payments::addFee",
15
+ "native": [
16
+ "domain",
17
+ "payments",
18
+ "apply_fee"
19
+ ]
20
+ },
21
+ {
22
+ "declaration": "example.payments::roundTrip",
23
+ "native": [
24
+ "domain",
25
+ "payments",
26
+ "restore"
27
+ ]
28
+ },
29
+ {
30
+ "declaration": "example.payments::archive",
31
+ "native": [
32
+ "domain",
33
+ "payments",
34
+ "store"
35
+ ]
36
+ }
37
+ ],
38
+ "generators": [
39
+ {
40
+ "type": "example.payments::type::Money",
41
+ "factory": [
42
+ "domain",
43
+ "payment_generators",
44
+ "prices"
45
+ ]
46
+ }
47
+ ]
48
+ }
49
+ }
50
+ ],
51
+ "languageProfile": "1.0-rc.1",
52
+ "verification": {
53
+ "layers": [
54
+ "proof",
55
+ "exhaustive",
56
+ "property",
57
+ "examples",
58
+ "runtime",
59
+ "model"
60
+ ]
61
+ }
62
+ }
@@ -0,0 +1,11 @@
1
+ ;; Application code over the model's payment data: Clojure binds functions,
2
+ ;; not types, so money is {:lawspec/tag :money/money :amount 1.20M
3
+ ;; :currency :currency/eur}.
4
+ (ns domain.payments
5
+ "Payments: the functions lawspec.json binds.")
6
+
7
+ (defn apply-fee [money] (update money :amount + 0.2M))
8
+
9
+ (defn restore [payment] payment)
10
+
11
+ (defn store [payments] payments)
@@ -0,0 +1,9 @@
1
+ ;; Application generators lawspec.json binds: test.check generators of the
2
+ ;; model's tagged values.
3
+ (ns domain.payment-generators
4
+ "Prices between 1.00 and 2.00 euros."
5
+ (:require [clojure.test.check.generators :as gen]))
6
+
7
+ (defn prices []
8
+ (gen/fmap (fn [cents] {:lawspec/tag :money/money :amount (BigDecimal/valueOf (long cents) 2) :currency :currency/eur})
9
+ (gen/choose 100 200)))
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": 1,
2
+ "version": 2,
3
3
  "sources": [
4
4
  "laws"
5
5
  ],
@@ -47,5 +47,16 @@
47
47
  ]
48
48
  }
49
49
  }
50
- ]
50
+ ],
51
+ "languageProfile": "1.0-rc.1",
52
+ "verification": {
53
+ "layers": [
54
+ "proof",
55
+ "exhaustive",
56
+ "property",
57
+ "examples",
58
+ "runtime",
59
+ "model"
60
+ ]
61
+ }
51
62
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": 1,
2
+ "version": 2,
3
3
  "sources": [
4
4
  "laws"
5
5
  ],
@@ -103,7 +103,7 @@
103
103
  "style": "variant",
104
104
  "fields": [
105
105
  {
106
- "field": "reason",
106
+ "field": "value",
107
107
  "native": "explanation"
108
108
  }
109
109
  ]
@@ -145,5 +145,16 @@
145
145
  ]
146
146
  }
147
147
  }
148
- ]
148
+ ],
149
+ "languageProfile": "1.0-rc.1",
150
+ "verification": {
151
+ "layers": [
152
+ "proof",
153
+ "exhaustive",
154
+ "property",
155
+ "examples",
156
+ "runtime",
157
+ "model"
158
+ ]
159
+ }
149
160
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": 1,
2
+ "version": 2,
3
3
  "sources": [
4
4
  "laws"
5
5
  ],
@@ -97,7 +97,7 @@
97
97
  "style": "variant",
98
98
  "fields": [
99
99
  {
100
- "field": "reason",
100
+ "field": "value",
101
101
  "native": "explanation"
102
102
  }
103
103
  ]
@@ -144,5 +144,16 @@
144
144
  ]
145
145
  }
146
146
  }
147
- ]
147
+ ],
148
+ "languageProfile": "1.0-rc.1",
149
+ "verification": {
150
+ "layers": [
151
+ "proof",
152
+ "exhaustive",
153
+ "property",
154
+ "examples",
155
+ "runtime",
156
+ "model"
157
+ ]
158
+ }
148
159
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": 1,
2
+ "version": 2,
3
3
  "sources": [
4
4
  "laws"
5
5
  ],
@@ -117,7 +117,7 @@
117
117
  "style": "variant",
118
118
  "fields": [
119
119
  {
120
- "field": "reason",
120
+ "field": "value",
121
121
  "native": "explanation"
122
122
  }
123
123
  ]
@@ -163,5 +163,16 @@
163
163
  ]
164
164
  }
165
165
  }
166
- ]
166
+ ],
167
+ "languageProfile": "1.0-rc.1",
168
+ "verification": {
169
+ "layers": [
170
+ "proof",
171
+ "exhaustive",
172
+ "property",
173
+ "examples",
174
+ "runtime",
175
+ "model"
176
+ ]
177
+ }
167
178
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": 1,
2
+ "version": 2,
3
3
  "sources": [
4
4
  "laws"
5
5
  ],
@@ -103,7 +103,7 @@
103
103
  "style": "variant",
104
104
  "fields": [
105
105
  {
106
- "field": "reason",
106
+ "field": "value",
107
107
  "native": "explanation"
108
108
  }
109
109
  ]
@@ -145,5 +145,16 @@
145
145
  ]
146
146
  }
147
147
  }
148
- ]
148
+ ],
149
+ "languageProfile": "1.0-rc.1",
150
+ "verification": {
151
+ "layers": [
152
+ "proof",
153
+ "exhaustive",
154
+ "property",
155
+ "examples",
156
+ "runtime",
157
+ "model"
158
+ ]
159
+ }
149
160
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": 1,
2
+ "version": 2,
3
3
  "sources": [
4
4
  "laws"
5
5
  ],
@@ -94,7 +94,7 @@
94
94
  "style": "variant",
95
95
  "fields": [
96
96
  {
97
- "field": "reason",
97
+ "field": "value",
98
98
  "native": "Explanation"
99
99
  }
100
100
  ]
@@ -132,5 +132,16 @@
132
132
  ]
133
133
  }
134
134
  }
135
- ]
135
+ ],
136
+ "languageProfile": "1.0-rc.1",
137
+ "verification": {
138
+ "layers": [
139
+ "proof",
140
+ "exhaustive",
141
+ "property",
142
+ "examples",
143
+ "runtime",
144
+ "model"
145
+ ]
146
+ }
136
147
  }