@orpc/openapi 1.8.3 → 1.8.4
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/dist/index.mjs
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import { c as customOpenAPIOperation } from './shared/openapi.
|
2
|
-
export { C as CompositeSchemaConverter, L as LOGIC_KEYWORDS, O as OpenAPIGenerator, a as applyCustomOpenAPIOperation, n as applySchemaOptionality, h as checkParamsSchema, p as expandArrayableSchema, o as expandUnionSchema, m as filterSchemaBranches, g as getCustomOpenAPIOperation, l as isAnySchema, j as isFileSchema, k as isObjectSchema, q as isPrimitiveSchema, r as resolveOpenAPIJsonSchemaRef, s as separateObjectSchema, d as toOpenAPIContent, e as toOpenAPIEventIteratorContent, b as toOpenAPIMethod, f as toOpenAPIParameters, t as toOpenAPIPath, i as toOpenAPISchema } from './shared/openapi.
|
1
|
+
import { c as customOpenAPIOperation } from './shared/openapi.BlSv9FKY.mjs';
|
2
|
+
export { C as CompositeSchemaConverter, L as LOGIC_KEYWORDS, O as OpenAPIGenerator, a as applyCustomOpenAPIOperation, n as applySchemaOptionality, h as checkParamsSchema, p as expandArrayableSchema, o as expandUnionSchema, m as filterSchemaBranches, g as getCustomOpenAPIOperation, l as isAnySchema, j as isFileSchema, k as isObjectSchema, q as isPrimitiveSchema, r as resolveOpenAPIJsonSchemaRef, s as separateObjectSchema, d as toOpenAPIContent, e as toOpenAPIEventIteratorContent, b as toOpenAPIMethod, f as toOpenAPIParameters, t as toOpenAPIPath, i as toOpenAPISchema } from './shared/openapi.BlSv9FKY.mjs';
|
3
3
|
import { createORPCErrorFromJson } from '@orpc/client';
|
4
4
|
import { StandardOpenAPISerializer, StandardOpenAPIJsonSerializer, StandardBracketNotationSerializer } from '@orpc/openapi-client/standard';
|
5
5
|
import { ORPCError, createRouterClient } from '@orpc/server';
|
package/dist/plugins/index.mjs
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { stringifyJSON, once, value } from '@orpc/shared';
|
2
|
-
import { O as OpenAPIGenerator } from '../shared/openapi.
|
2
|
+
import { O as OpenAPIGenerator } from '../shared/openapi.BlSv9FKY.mjs';
|
3
3
|
import '@orpc/client';
|
4
4
|
import '@orpc/client/standard';
|
5
5
|
import '@orpc/contract';
|
@@ -567,13 +567,14 @@ ${errors.join("\n\n")}`
|
|
567
567
|
ref.parameters.push(...toOpenAPIParameters(paramsSchema, "path"));
|
568
568
|
}
|
569
569
|
if (method === "GET") {
|
570
|
-
|
570
|
+
const resolvedSchema = resolveOpenAPIJsonSchemaRef(doc, schema);
|
571
|
+
if (!isObjectSchema(resolvedSchema)) {
|
571
572
|
throw new OpenAPIGeneratorError(
|
572
573
|
'When method is "GET", input schema must satisfy: object | any | unknown'
|
573
574
|
);
|
574
575
|
}
|
575
576
|
ref.parameters ??= [];
|
576
|
-
ref.parameters.push(...toOpenAPIParameters(
|
577
|
+
ref.parameters.push(...toOpenAPIParameters(resolvedSchema, "query"));
|
577
578
|
} else {
|
578
579
|
ref.requestBody = {
|
579
580
|
required,
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@orpc/openapi",
|
3
3
|
"type": "module",
|
4
|
-
"version": "1.8.
|
4
|
+
"version": "1.8.4",
|
5
5
|
"license": "MIT",
|
6
6
|
"homepage": "https://orpc.unnoq.com",
|
7
7
|
"repository": {
|
@@ -50,13 +50,13 @@
|
|
50
50
|
],
|
51
51
|
"dependencies": {
|
52
52
|
"rou3": "^0.7.3",
|
53
|
-
"@orpc/client": "1.8.
|
54
|
-
"@orpc/
|
55
|
-
"@orpc/openapi-client": "1.8.
|
56
|
-
"@orpc/
|
57
|
-
"@orpc/server": "1.8.
|
58
|
-
"@orpc/
|
59
|
-
"@orpc/
|
53
|
+
"@orpc/client": "1.8.4",
|
54
|
+
"@orpc/contract": "1.8.4",
|
55
|
+
"@orpc/openapi-client": "1.8.4",
|
56
|
+
"@orpc/interop": "1.8.4",
|
57
|
+
"@orpc/server": "1.8.4",
|
58
|
+
"@orpc/standard-server": "1.8.4",
|
59
|
+
"@orpc/shared": "1.8.4"
|
60
60
|
},
|
61
61
|
"devDependencies": {
|
62
62
|
"zod": "^4.0.17"
|