@specferret/core 0.9.0 → 0.9.2
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/README.md +2 -2
- package/dist/extractor/validator.js +2 -2
- package/package.json +2 -2
- package/src/extractor/validator.ts +2 -2
package/README.md
CHANGED
|
@@ -44,7 +44,7 @@ Core behavior is validated through the Sprint 5 external branch-matrix harness (
|
|
|
44
44
|
|
|
45
45
|
Latest green runs:
|
|
46
46
|
|
|
47
|
-
- spec-kit: https://github.com/BenGardiner123/
|
|
47
|
+
- spec-kit: https://github.com/BenGardiner123/specferret-validation-spec-kit/actions/runs/23962649755
|
|
48
48
|
- BMAD: https://github.com/BenGardiner123/specferret-validation-bmad/actions/runs/23962652352
|
|
49
49
|
|
|
50
50
|
## Looking for the CLI?
|
|
@@ -57,6 +57,6 @@ bun install -g @specferret/cli
|
|
|
57
57
|
|
|
58
58
|
## Links
|
|
59
59
|
|
|
60
|
-
- Source: https://github.com/BenGardiner123/
|
|
60
|
+
- Source: https://github.com/BenGardiner123/specferret
|
|
61
61
|
- Docs: https://specferret.dev
|
|
62
62
|
- CLI package: https://www.npmjs.com/package/@specferret/cli
|
|
@@ -13,7 +13,7 @@ export function validateContractType(contractType, filePath) {
|
|
|
13
13
|
/**
|
|
14
14
|
* JSON Schema keywords that are explicitly NOT supported by Ferret.
|
|
15
15
|
* If any appear in a schema, a warning is emitted but the schema is still accepted.
|
|
16
|
-
* See:
|
|
16
|
+
* See: docs/CONTRACT-SCHEMA.md — Part 3
|
|
17
17
|
*/
|
|
18
18
|
const UNSUPPORTED_KEYWORDS = [
|
|
19
19
|
'$ref',
|
|
@@ -44,7 +44,7 @@ export function validateFerretSchema(shape, filePath) {
|
|
|
44
44
|
if (serialised.includes(`"${keyword}"`)) {
|
|
45
45
|
warnings.push(`⚠ Unsupported JSON Schema keyword: ${keyword} in ${filePath}\n` +
|
|
46
46
|
` Ferret supports a subset of JSON Schema.\n` +
|
|
47
|
-
` See:
|
|
47
|
+
` See: docs/CONTRACT-SCHEMA.md — Part 3`);
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
return { valid: true, warnings };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@specferret/core",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.2",
|
|
4
4
|
"description": "SpecFerret core engine — spec drift detection.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"license": "MIT",
|
|
42
42
|
"repository": {
|
|
43
43
|
"type": "git",
|
|
44
|
-
"url": "git+https://github.com/BenGardiner123/
|
|
44
|
+
"url": "git+https://github.com/BenGardiner123/specferret.git"
|
|
45
45
|
},
|
|
46
46
|
"homepage": "https://specferret.dev"
|
|
47
47
|
}
|
|
@@ -31,7 +31,7 @@ export function validateContractType(contractType: unknown, filePath: string): C
|
|
|
31
31
|
/**
|
|
32
32
|
* JSON Schema keywords that are explicitly NOT supported by Ferret.
|
|
33
33
|
* If any appear in a schema, a warning is emitted but the schema is still accepted.
|
|
34
|
-
* See:
|
|
34
|
+
* See: docs/CONTRACT-SCHEMA.md — Part 3
|
|
35
35
|
*/
|
|
36
36
|
const UNSUPPORTED_KEYWORDS = [
|
|
37
37
|
'$ref',
|
|
@@ -67,7 +67,7 @@ export function validateFerretSchema(shape: unknown, filePath: string): SchemaVa
|
|
|
67
67
|
warnings.push(
|
|
68
68
|
`⚠ Unsupported JSON Schema keyword: ${keyword} in ${filePath}\n` +
|
|
69
69
|
` Ferret supports a subset of JSON Schema.\n` +
|
|
70
|
-
` See:
|
|
70
|
+
` See: docs/CONTRACT-SCHEMA.md — Part 3`,
|
|
71
71
|
);
|
|
72
72
|
}
|
|
73
73
|
}
|