@orpc/arktype 2.0.0-beta.42 → 2.0.0-beta.44
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 -10
- package/dist/index.mjs +2 -2
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
<img alt="Discord" src="https://img.shields.io/discord/1308966753044398161?color=7389D8&label&logo=discord&logoColor=ffffff" />
|
|
18
18
|
</a>
|
|
19
19
|
<a href="https://deepwiki.com/middleapi/orpc">
|
|
20
|
-
<img src="https://
|
|
20
|
+
<img alt="Ask DeepWiki" src="https://img.shields.io/badge/Ask-DeepWiki-blue" />
|
|
21
21
|
</a>
|
|
22
22
|
</div>
|
|
23
23
|
|
|
@@ -95,14 +95,6 @@ Like what we build over at [middleapi](https://github.com/middleapi)? You can he
|
|
|
95
95
|
</tr>
|
|
96
96
|
</table>
|
|
97
97
|
|
|
98
|
-
### Special Sponsors
|
|
99
|
-
|
|
100
|
-
<table>
|
|
101
|
-
<tr>
|
|
102
|
-
<td align="center"><a href="http://twitter.com/rauchg?ref=middleapi&utm_source=middleapi&utm_medium=sponsor" target="_blank" rel="noopener sponsored" title="Guillermo Rauch"><img src="https://avatars.githubusercontent.com/u/13041?u=1ee8d111657cdd02ff6d253df00978d17ee6d722&v=4" width="279" alt="Guillermo Rauch"/><br />Guillermo Rauch</a></td>
|
|
103
|
-
</tr>
|
|
104
|
-
</table>
|
|
105
|
-
|
|
106
98
|
### Premium Sponsors
|
|
107
99
|
|
|
108
100
|
<table>
|
|
@@ -178,7 +170,7 @@ Like what we build over at [middleapi](https://github.com/middleapi)? You can he
|
|
|
178
170
|
</tr>
|
|
179
171
|
</table>
|
|
180
172
|
|
|
181
|
-
With thanks to [
|
|
173
|
+
With thanks to [39 past sponsors](https://orpc.dev/sponsors#past-sponsors) who helped get oRPC here.
|
|
182
174
|
|
|
183
175
|
## References
|
|
184
176
|
|
package/dist/index.mjs
CHANGED
|
@@ -56,8 +56,8 @@ class ArkTypeToJsonSchemaConverter {
|
|
|
56
56
|
const jsonSchema = this.convertArkType(arkTypeSchema, direction);
|
|
57
57
|
return [jsonSchema, isStandardSchemaOptional(arkTypeSchema, direction)];
|
|
58
58
|
}
|
|
59
|
-
convertArkType(schema,
|
|
60
|
-
const jsonSchema = schema.toJsonSchema(this.toJsonSchemaOptions);
|
|
59
|
+
convertArkType(schema, direction) {
|
|
60
|
+
const jsonSchema = (direction === "output" ? schema.out : schema).toJsonSchema(this.toJsonSchemaOptions);
|
|
61
61
|
const { $schema, ...rest } = jsonSchema;
|
|
62
62
|
return rest;
|
|
63
63
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orpc/arktype",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.0-beta.
|
|
4
|
+
"version": "2.0.0-beta.44",
|
|
5
5
|
"description": "ArkType integration for oRPC: convert ArkType schemas into JSON Schema for OpenAPI generation",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"funding": [
|
|
@@ -40,12 +40,12 @@
|
|
|
40
40
|
"arktype": "*"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@orpc/json-schema": "2.0.0-beta.
|
|
43
|
+
"@orpc/json-schema": "2.0.0-beta.44"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@ark/schema": "^0.56.
|
|
47
|
-
"arktype": "^2.2.
|
|
48
|
-
"zod": "^4.5
|
|
46
|
+
"@ark/schema": "^0.56.7",
|
|
47
|
+
"arktype": "^2.2.8",
|
|
48
|
+
"zod": "^4.6.5"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"type:check": "tsc -b"
|