@zuplo/openapi-tools 6.73.30 → 6.74.2

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.
@@ -6,187 +6,49 @@ import { z } from "zod";
6
6
  /**
7
7
  * Schema for remove condition - used for conditional removal of elements
8
8
  */
9
- declare const RemoveConditionSchema: z.ZodEffects<z.ZodObject<{
9
+ declare const RemoveConditionSchema: z.ZodObject<{
10
10
  empty: z.ZodOptional<z.ZodBoolean>;
11
11
  missing: z.ZodOptional<z.ZodString>;
12
- }, "strict", z.ZodTypeAny, {
13
- empty?: boolean | undefined;
14
- missing?: string | undefined;
15
- }, {
16
- empty?: boolean | undefined;
17
- missing?: string | undefined;
18
- }>, {
19
- empty?: boolean | undefined;
20
- missing?: string | undefined;
21
- }, {
22
- empty?: boolean | undefined;
23
- missing?: string | undefined;
24
- }>;
12
+ }, z.core.$strict>;
25
13
  /**
26
14
  * Schema for overlay action - defines a single modification to apply
27
15
  */
28
- declare const OverlayActionSchema: z.ZodEffects<z.ZodObject<{
16
+ declare const OverlayActionSchema: z.ZodObject<{
29
17
  target: z.ZodString;
30
18
  description: z.ZodOptional<z.ZodString>;
31
19
  update: z.ZodOptional<z.ZodUnknown>;
32
- remove: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodEffects<z.ZodObject<{
20
+ remove: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
33
21
  empty: z.ZodOptional<z.ZodBoolean>;
34
22
  missing: z.ZodOptional<z.ZodString>;
35
- }, "strict", z.ZodTypeAny, {
36
- empty?: boolean | undefined;
37
- missing?: string | undefined;
38
- }, {
39
- empty?: boolean | undefined;
40
- missing?: string | undefined;
41
- }>, {
42
- empty?: boolean | undefined;
43
- missing?: string | undefined;
44
- }, {
45
- empty?: boolean | undefined;
46
- missing?: string | undefined;
47
- }>]>>;
48
- }, "strict", z.ZodTypeAny, {
49
- target: string;
50
- description?: string | undefined;
51
- update?: unknown;
52
- remove?: boolean | {
53
- empty?: boolean | undefined;
54
- missing?: string | undefined;
55
- } | undefined;
56
- }, {
57
- target: string;
58
- description?: string | undefined;
59
- update?: unknown;
60
- remove?: boolean | {
61
- empty?: boolean | undefined;
62
- missing?: string | undefined;
63
- } | undefined;
64
- }>, {
65
- target: string;
66
- description?: string | undefined;
67
- update?: unknown;
68
- remove?: boolean | {
69
- empty?: boolean | undefined;
70
- missing?: string | undefined;
71
- } | undefined;
72
- }, {
73
- target: string;
74
- description?: string | undefined;
75
- update?: unknown;
76
- remove?: boolean | {
77
- empty?: boolean | undefined;
78
- missing?: string | undefined;
79
- } | undefined;
80
- }>;
23
+ }, z.core.$strict>]>>;
24
+ }, z.core.$strict>;
81
25
  /**
82
26
  * Schema for OpenAPI Overlay document
83
27
  * Based on: https://github.com/OAI/Overlay-Specification v1.0.0
84
28
  */
85
29
  export declare const OverlayDocumentSchema: z.ZodObject<{
86
- overlay: z.ZodEffects<z.ZodString, string, string>;
30
+ overlay: z.ZodString;
87
31
  info: z.ZodObject<{
88
32
  title: z.ZodString;
89
33
  version: z.ZodString;
90
- }, "strict", z.ZodTypeAny, {
91
- title: string;
92
- version: string;
93
- }, {
94
- title: string;
95
- version: string;
96
- }>;
97
- actions: z.ZodArray<z.ZodEffects<z.ZodObject<{
34
+ }, z.core.$strict>;
35
+ actions: z.ZodArray<z.ZodObject<{
98
36
  target: z.ZodString;
99
37
  description: z.ZodOptional<z.ZodString>;
100
38
  update: z.ZodOptional<z.ZodUnknown>;
101
- remove: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodEffects<z.ZodObject<{
39
+ remove: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
102
40
  empty: z.ZodOptional<z.ZodBoolean>;
103
41
  missing: z.ZodOptional<z.ZodString>;
104
- }, "strict", z.ZodTypeAny, {
105
- empty?: boolean | undefined;
106
- missing?: string | undefined;
107
- }, {
108
- empty?: boolean | undefined;
109
- missing?: string | undefined;
110
- }>, {
111
- empty?: boolean | undefined;
112
- missing?: string | undefined;
113
- }, {
114
- empty?: boolean | undefined;
115
- missing?: string | undefined;
116
- }>]>>;
117
- }, "strict", z.ZodTypeAny, {
118
- target: string;
119
- description?: string | undefined;
120
- update?: unknown;
121
- remove?: boolean | {
122
- empty?: boolean | undefined;
123
- missing?: string | undefined;
124
- } | undefined;
125
- }, {
126
- target: string;
127
- description?: string | undefined;
128
- update?: unknown;
129
- remove?: boolean | {
130
- empty?: boolean | undefined;
131
- missing?: string | undefined;
132
- } | undefined;
133
- }>, {
134
- target: string;
135
- description?: string | undefined;
136
- update?: unknown;
137
- remove?: boolean | {
138
- empty?: boolean | undefined;
139
- missing?: string | undefined;
140
- } | undefined;
141
- }, {
142
- target: string;
143
- description?: string | undefined;
144
- update?: unknown;
145
- remove?: boolean | {
146
- empty?: boolean | undefined;
147
- missing?: string | undefined;
148
- } | undefined;
149
- }>, "many">;
42
+ }, z.core.$strict>]>>;
43
+ }, z.core.$strict>>;
150
44
  extends: z.ZodOptional<z.ZodString>;
151
- }, "strict", z.ZodTypeAny, {
152
- info: {
153
- title: string;
154
- version: string;
155
- };
156
- overlay: string;
157
- actions: {
158
- target: string;
159
- description?: string | undefined;
160
- update?: unknown;
161
- remove?: boolean | {
162
- empty?: boolean | undefined;
163
- missing?: string | undefined;
164
- } | undefined;
165
- }[];
166
- extends?: string | undefined;
167
- }, {
168
- info: {
169
- title: string;
170
- version: string;
171
- };
172
- overlay: string;
173
- actions: {
174
- target: string;
175
- description?: string | undefined;
176
- update?: unknown;
177
- remove?: boolean | {
178
- empty?: boolean | undefined;
179
- missing?: string | undefined;
180
- } | undefined;
181
- }[];
182
- extends?: string | undefined;
183
- }>;
45
+ }, z.core.$strict>;
184
46
  /**
185
47
  * Schema for OpenAPI document structure
186
48
  * This is intentionally lenient to work with imperfect/incomplete OpenAPI files.
187
49
  * The overlay tool is often used to fix incomplete specs, so we shouldn't be too strict.
188
50
  */
189
- export declare const OpenApiDocumentSchema: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
51
+ export declare const OpenApiDocumentSchema: z.ZodObject<{}, z.core.$loose>;
190
52
  /**
191
53
  * Type exports matching Zod schemas
192
54
  */
@@ -1 +1 @@
1
- {"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../src/validation.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,QAAA,MAAM,qBAAqB;;;;;;;;;;;;;;;EAYvB,CAAC;AAEL;;GAEG;AACH,QAAA,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiCtB,CAAC;AAEJ;;;GAGG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyBvB,CAAC;AAEZ;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,uJAKkB,CAAC;AAErD;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAChE,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,OAAO,GAAG,eAAe,CAcvE;AAED;;;;;GAKG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,OAAO,GAAG,eAAe,CASvE"}
1
+ {"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../src/validation.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,QAAA,MAAM,qBAAqB;;;kBAYvB,CAAC;AAEL;;GAEG;AACH,QAAA,MAAM,mBAAmB;;;;;;;;kBAiCtB,CAAC;AAEJ;;;GAGG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;kBAyBvB,CAAC;AAEZ;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,gCAKkB,CAAC;AAErD;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAChE,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,OAAO,GAAG,eAAe,CAcvE;AAED;;;;;GAKG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,OAAO,GAAG,eAAe,CASvE"}
@@ -92,7 +92,7 @@ export const OpenApiDocumentSchema = z
92
92
  export function validateOverlayDocument(value) {
93
93
  const result = OverlayDocumentSchema.safeParse(value);
94
94
  if (!result.success) {
95
- const errors = result.error.errors
95
+ const errors = result.error.issues
96
96
  .map((err) => {
97
97
  const path = err.path.length > 0 ? ` at '${err.path.join(".")}'` : "";
98
98
  return ` • ${err.message}${path}`;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@zuplo/openapi-tools",
3
3
  "type": "module",
4
4
  "sideEffects": false,
5
- "version": "6.73.30",
5
+ "version": "6.74.2",
6
6
  "description": "Tooling for OpenAPI files",
7
7
  "repository": {
8
8
  "type": "git",
@@ -32,7 +32,7 @@
32
32
  "openapi-types": "^12.1.3",
33
33
  "semver": "^7.6.3",
34
34
  "uuid": "^11.1.0",
35
- "zod": "3.25.76"
35
+ "zod": "4.4.3"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@types/js-yaml": "^4.0.9",