@orpc/openapi 1.8.3 → 1.8.5

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.1iT1iSZi.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.1iT1iSZi.mjs';
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';
@@ -1,5 +1,5 @@
1
1
  import { stringifyJSON, once, value } from '@orpc/shared';
2
- import { O as OpenAPIGenerator } from '../shared/openapi.1iT1iSZi.mjs';
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
- if (!isObjectSchema(schema)) {
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(schema, "query"));
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.3",
4
+ "version": "1.8.5",
5
5
  "license": "MIT",
6
6
  "homepage": "https://orpc.unnoq.com",
7
7
  "repository": {
@@ -50,16 +50,16 @@
50
50
  ],
51
51
  "dependencies": {
52
52
  "rou3": "^0.7.3",
53
- "@orpc/client": "1.8.3",
54
- "@orpc/interop": "1.8.3",
55
- "@orpc/openapi-client": "1.8.3",
56
- "@orpc/contract": "1.8.3",
57
- "@orpc/server": "1.8.3",
58
- "@orpc/shared": "1.8.3",
59
- "@orpc/standard-server": "1.8.3"
53
+ "@orpc/client": "1.8.5",
54
+ "@orpc/interop": "1.8.5",
55
+ "@orpc/contract": "1.8.5",
56
+ "@orpc/openapi-client": "1.8.5",
57
+ "@orpc/server": "1.8.5",
58
+ "@orpc/shared": "1.8.5",
59
+ "@orpc/standard-server": "1.8.5"
60
60
  },
61
61
  "devDependencies": {
62
- "zod": "^4.0.17"
62
+ "zod": "^4.1.1"
63
63
  },
64
64
  "scripts": {
65
65
  "build": "unbuild",