oas-truth 0.5.1 → 0.6.1
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/LICENSE +1 -1
- package/README.md +3 -3
- package/dist/index.d.ts +0 -0
- package/dist/index.js +1 -4
- package/package.json +11 -7
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c)
|
|
3
|
+
Copyright (c) 2025 - present, Truth Contributors
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
package/README.md
CHANGED
|
@@ -36,8 +36,8 @@ dependency order. `makeSchemaDeclarations` returns the same declarations one by
|
|
|
36
36
|
|
|
37
37
|
Recursive `$ref` cycles keep a helper type so the const can be annotated (`z.ZodType<NodeType>`,
|
|
38
38
|
`v.GenericSchema<NodeType>`, `Schema.Codec<NodeType>`). That helper matches what the library
|
|
39
|
-
infers — `| undefined` on Valibot
|
|
40
|
-
type-checks under `exactOptionalPropertyTypes`.
|
|
39
|
+
infers — `| undefined` on Valibot optionals, `readonly` arrays on Effect — so it
|
|
40
|
+
type-checks under `exactOptionalPropertyTypes`. ArkType cycles become
|
|
41
41
|
`scope({...}).export().Member`; that declaration's `importLine` is then
|
|
42
42
|
`import { type, scope } from 'arktype'`. `schemaImportLine` is the same function
|
|
43
43
|
`makeSchemasCode` uses when the declarations stay in one file.
|
|
@@ -71,4 +71,4 @@ const source = `${declarations[0]?.importLine}\n\n${declarations[0]?.code}`
|
|
|
71
71
|
|
|
72
72
|
## License
|
|
73
73
|
|
|
74
|
-
[MIT](https://github.com/nakita628/
|
|
74
|
+
[MIT](https://github.com/nakita628/truth/blob/main/LICENSE)
|
package/dist/index.d.ts
CHANGED
|
File without changes
|
package/dist/index.js
CHANGED
|
@@ -234,10 +234,7 @@ function makeEffectAdapter() {
|
|
|
234
234
|
cyclicAnnotation(typeName) {
|
|
235
235
|
return `Schema.Codec<${typeName}>`;
|
|
236
236
|
},
|
|
237
|
-
cyclicTypeStyle: {
|
|
238
|
-
optionalUndefined: true,
|
|
239
|
-
readonlyArrays: true
|
|
240
|
-
},
|
|
237
|
+
cyclicTypeStyle: { readonlyArrays: true },
|
|
241
238
|
reservedTypeNames: ["Schema", "Effect"],
|
|
242
239
|
withRef(expr, ref) {
|
|
243
240
|
return isBareIdent(expr) ? expr : `${expr}.annotate({identifier:${JSON.stringify(ref)}})`;
|
package/package.json
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oas-truth",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"description": "oas-truth is a parser from OpenAPI and TypeSpec to a typed OpenAPI document",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"openapi",
|
|
7
7
|
"typespec"
|
|
8
8
|
],
|
|
9
|
-
"homepage": "https://github.com/nakita628/oas-truth",
|
|
9
|
+
"homepage": "https://github.com/nakita628/truth/tree/main/npm/oas-truth#readme",
|
|
10
10
|
"bugs": {
|
|
11
|
-
"url": "https://github.com/nakita628/
|
|
11
|
+
"url": "https://github.com/nakita628/truth/issues"
|
|
12
12
|
},
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"repository": {
|
|
15
15
|
"type": "git",
|
|
16
|
-
"url": "git+https://github.com/nakita628/
|
|
17
|
-
"directory": "
|
|
16
|
+
"url": "git+https://github.com/nakita628/truth.git",
|
|
17
|
+
"directory": "npm/oas-truth"
|
|
18
18
|
},
|
|
19
19
|
"files": [
|
|
20
20
|
"dist"
|
|
@@ -27,8 +27,12 @@
|
|
|
27
27
|
"import": "./dist/index.js"
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
|
+
"publishConfig": {
|
|
31
|
+
"access": "public",
|
|
32
|
+
"provenance": true
|
|
33
|
+
},
|
|
30
34
|
"dependencies": {
|
|
31
|
-
"schema-truth": "^0.
|
|
35
|
+
"schema-truth": "^0.8.4"
|
|
32
36
|
},
|
|
33
37
|
"devDependencies": {
|
|
34
38
|
"@apidevtools/swagger-parser": "^13.1.0",
|
|
@@ -40,7 +44,7 @@
|
|
|
40
44
|
"@typespec/rest": "0.87.0",
|
|
41
45
|
"@typespec/versioning": "0.87.0",
|
|
42
46
|
"arktype": "^2.2.9",
|
|
43
|
-
"effect": "4.
|
|
47
|
+
"effect": "4.1.2",
|
|
44
48
|
"typebox": "^1.4.3",
|
|
45
49
|
"typescript": "^7.0.2",
|
|
46
50
|
"valibot": "^1.5.0",
|