@pdtf/schemas 3.5.1-9 → 3.6.0-10
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/.claude/settings.local.json +6 -1
- package/index.js +12 -0
- package/package.json +3 -2
- package/src/schemas/v3/combined.json +569 -15
- package/src/schemas/v3/compactSkeleton.txt +75 -8
- package/src/schemas/v3/overlays/baspi4.json +3 -0
- package/src/schemas/v3/overlays/baspi5.json +3 -0
- package/src/schemas/v3/overlays/piq.json +3 -0
- package/src/schemas/v3/overlays/rds.json +3 -0
- package/src/schemas/v3/pdtf-transaction.json +658 -16
- package/src/schemas/v3/skeleton.json +117 -10
- package/src/tests/v3/buyerCircumstances.test.js +543 -0
- package/src/tests/v3/enquiries.test.js +1096 -0
- package/src/tests/v3/offers.test.js +37 -40
- package/src/tests/v3/patternProperties.test.js +149 -30
- package/src/utils/extractOverlay.js +37 -13
|
@@ -30,7 +30,12 @@
|
|
|
30
30
|
"Bash(while read file)",
|
|
31
31
|
"Bash(for:*)",
|
|
32
32
|
"Bash(do echo \"=== $file ===\")",
|
|
33
|
-
"Bash(do echo \"$file:\")"
|
|
33
|
+
"Bash(do echo \"$file:\")",
|
|
34
|
+
"Bash(npm run proposal:pdf:*)",
|
|
35
|
+
"Bash(base64:*)",
|
|
36
|
+
"Bash(gh issue view:*)",
|
|
37
|
+
"Read(//Users/ed/.claude/**)",
|
|
38
|
+
"Bash(npm init:*)"
|
|
34
39
|
],
|
|
35
40
|
"deny": []
|
|
36
41
|
}
|
package/index.js
CHANGED
|
@@ -246,6 +246,18 @@ const getCachedSchemaData = (path, schemaId, overlays) => {
|
|
|
246
246
|
matchingProperty = aOneOf.items;
|
|
247
247
|
} else if (aOneOf.properties?.[pathElement]) {
|
|
248
248
|
matchingProperty = aOneOf.properties?.[pathElement];
|
|
249
|
+
} else if (aOneOf.patternProperties) {
|
|
250
|
+
for (const pattern in aOneOf.patternProperties) {
|
|
251
|
+
try {
|
|
252
|
+
const regex = new RegExp(pattern);
|
|
253
|
+
if (regex.test(pathElement)) {
|
|
254
|
+
matchingProperty = aOneOf.patternProperties[pattern];
|
|
255
|
+
break;
|
|
256
|
+
}
|
|
257
|
+
} catch (e) {
|
|
258
|
+
// Invalid regex pattern - skip
|
|
259
|
+
}
|
|
260
|
+
}
|
|
249
261
|
}
|
|
250
262
|
});
|
|
251
263
|
if (matchingProperty) return matchingProperty;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pdtf/schemas",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.6.0-10",
|
|
4
4
|
"description": "Property Data Trust Framework Schemas and Utilities",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"directories": {
|
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
},
|
|
9
9
|
"scripts": {
|
|
10
10
|
"test": "jest",
|
|
11
|
-
"test:watch": "jest --watch"
|
|
11
|
+
"test:watch": "jest --watch",
|
|
12
|
+
"extract-overlays": "cd src/utils && node extractOverlay.js"
|
|
12
13
|
},
|
|
13
14
|
"repository": {
|
|
14
15
|
"type": "git",
|