@vercube/schema 0.0.42 → 0.0.45

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.
Files changed (2) hide show
  1. package/dist/index.mjs +2 -11
  2. package/package.json +4 -4
package/dist/index.mjs CHANGED
@@ -3,7 +3,6 @@ import { z } from "zod";
3
3
  import { BaseDecorator, Inject, createDecorator } from "@vercube/di";
4
4
  import defu from "defu";
5
5
  import { BasePlugin, Controller, Get } from "@vercube/core";
6
-
7
6
  //#region src/Resolvers/SchemaBodyResolver.ts
8
7
  /**
9
8
  * Resolves the body schema for a given method.
@@ -16,7 +15,6 @@ function SchemaBodyResolver(metadata, schema) {
16
15
  if (!body || !body.validationSchema) return;
17
16
  schema.request = defu(schema?.request ?? {}, { body: { content: { "application/json": { schema: body.validationSchema } } } });
18
17
  }
19
-
20
18
  //#endregion
21
19
  //#region src/Resolvers/SchemaQueryParamsResolver.ts
22
20
  /**
@@ -30,7 +28,6 @@ function SchemaQueryParamsResolver(metadata, schema) {
30
28
  if (!query || !query.validationSchema) return;
31
29
  schema.request = defu(schema?.request ?? {}, { query: query.validationSchema });
32
30
  }
33
-
34
31
  //#endregion
35
32
  //#region src/Services/SchemaRegistry.ts
36
33
  /**
@@ -69,16 +66,14 @@ var SchemaRegistry = class {
69
66
  });
70
67
  }
71
68
  };
72
-
73
69
  //#endregion
74
- //#region \0@oxc-project+runtime@0.110.0/helpers/decorate.js
70
+ //#region \0@oxc-project+runtime@0.115.0/helpers/decorate.js
75
71
  function __decorate(decorators, target, key, desc) {
76
72
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
77
73
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
78
74
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
79
75
  return c > 3 && r && Object.defineProperty(target, key, r), r;
80
76
  }
81
-
82
77
  //#endregion
83
78
  //#region src/Decorators/Schema.ts
84
79
  /**
@@ -118,7 +113,6 @@ __decorate([Inject(SchemaRegistry)], SchemaDecorator.prototype, "gSchemaRegistry
118
113
  function Schema(params) {
119
114
  return createDecorator(SchemaDecorator, params);
120
115
  }
121
-
122
116
  //#endregion
123
117
  //#region src/Controllers/SchameController.ts
124
118
  let SchemaController = class SchemaController {
@@ -135,7 +129,6 @@ let SchemaController = class SchemaController {
135
129
  __decorate([Inject(SchemaRegistry)], SchemaController.prototype, "gSchemaRegistry", void 0);
136
130
  __decorate([Get("/")], SchemaController.prototype, "get", null);
137
131
  SchemaController = __decorate([Controller("/_schema")], SchemaController);
138
-
139
132
  //#endregion
140
133
  //#region src/Plugins/SchemaPlugin.ts
141
134
  /**
@@ -178,10 +171,8 @@ var SchemaPlugin = class extends BasePlugin {
178
171
  app.container.bind(SchemaController);
179
172
  }
180
173
  };
181
-
182
174
  //#endregion
183
175
  //#region src/index.ts
184
176
  extendZodWithOpenApi(z);
185
-
186
177
  //#endregion
187
- export { Schema, SchemaPlugin, z };
178
+ export { Schema, SchemaPlugin, z };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercube/schema",
3
- "version": "0.0.42",
3
+ "version": "0.0.45",
4
4
  "description": "Schema (swagger) module for Vercube framework",
5
5
  "repository": {
6
6
  "type": "git",
@@ -27,12 +27,12 @@
27
27
  "swagger"
28
28
  ],
29
29
  "dependencies": {
30
- "@asteasolutions/zod-to-openapi": "8.4.0",
30
+ "@asteasolutions/zod-to-openapi": "8.4.3",
31
31
  "@standard-schema/spec": "1.1.0",
32
32
  "defu": "6.1.4",
33
33
  "zod": "4.3.6",
34
- "@vercube/core": "0.0.42",
35
- "@vercube/di": "0.0.42"
34
+ "@vercube/core": "0.0.45",
35
+ "@vercube/di": "0.0.45"
36
36
  },
37
37
  "publishConfig": {
38
38
  "access": "public"