@orpc/openapi 2.0.0-beta.38 → 2.0.0-beta.39

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 CHANGED
@@ -103,6 +103,14 @@ Like what we build over at [middleapi](https://github.com/middleapi)? You can he
103
103
  </tr>
104
104
  </table>
105
105
 
106
+ ### Premium Sponsors
107
+
108
+ <table>
109
+ <tr>
110
+ <td align="center"><a href="https://github.com/nexa-ca?ref=middleapi&amp;utm_source=middleapi&amp;utm_medium=sponsor" target="_blank" rel="noopener sponsored" title="Nexa"><img src="https://avatars.githubusercontent.com/u/199146462?v=4" width="209" alt="Nexa"/><br />Nexa</a></td>
111
+ </tr>
112
+ </table>
113
+
106
114
  ### Organization Sponsors
107
115
 
108
116
  <table>
package/dist/index.mjs CHANGED
@@ -604,11 +604,10 @@ function buildErrorResponse(ctx, operation, def) {
604
604
  properties: {
605
605
  defined: { const: false },
606
606
  code: { type: "string" },
607
- status: { type: "number" },
608
607
  message: { type: "string" },
609
608
  data: {}
610
609
  },
611
- required: ["defined", "code", "status", "message"]
610
+ required: ["defined", "code", "message"]
612
611
  });
613
612
  for (const [status, definitions] of definitionsByStatus.entries()) {
614
613
  const descriptions = definitions.map(({ defaultMessage }) => defaultMessage).filter((m) => m !== void 0);
@@ -624,7 +623,6 @@ function buildErrorResponse(ctx, operation, def) {
624
623
  ...combineJsonObjectSchemaEntries([
625
624
  ["defined", { const: true }, false],
626
625
  ["code", { const: code }, false],
627
- ["status", { const: status }, false],
628
626
  // avoid using the defaultMessage here to improve component reusability
629
627
  ["message", { type: "string" }, false],
630
628
  ["data", ctx.registry.hoistDefs(dataJsonSchema, "output"), dataOptional]
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@orpc/openapi",
3
3
  "type": "module",
4
- "version": "2.0.0-beta.38",
4
+ "version": "2.0.0-beta.39",
5
5
  "description": "Generate OpenAPI specs from oRPC routers and serve OpenAPI-compliant APIs with end-to-end type safety",
6
6
  "license": "MIT",
7
7
  "funding": [
@@ -99,11 +99,11 @@
99
99
  "dependencies": {
100
100
  "@openapi-spec/downgrader": "~0.1.0",
101
101
  "@openapi-spec/types": "~0.1.0",
102
- "@orpc/client": "2.0.0-beta.38",
103
- "@orpc/contract": "2.0.0-beta.38",
104
- "@orpc/json-schema": "2.0.0-beta.38",
105
- "@orpc/server": "2.0.0-beta.38",
106
- "@orpc/shared": "2.0.0-beta.38",
102
+ "@orpc/client": "2.0.0-beta.39",
103
+ "@orpc/contract": "2.0.0-beta.39",
104
+ "@orpc/json-schema": "2.0.0-beta.39",
105
+ "@orpc/server": "2.0.0-beta.39",
106
+ "@orpc/shared": "2.0.0-beta.39",
107
107
  "@standard-server/core": "~0.9.2",
108
108
  "@standard-server/fetch": "~0.9.2",
109
109
  "rou3": "^0.9.1"