@kubb/plugin-msw 3.16.2 → 3.16.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.
Files changed (47) hide show
  1. package/dist/components-ByUOezvw.js +93 -0
  2. package/dist/components-ByUOezvw.js.map +1 -0
  3. package/dist/components-Bz0C7Qrg.cjs +139 -0
  4. package/dist/components-Bz0C7Qrg.cjs.map +1 -0
  5. package/dist/components.cjs +4 -19
  6. package/dist/components.d.cts +47 -33
  7. package/dist/components.d.ts +47 -33
  8. package/dist/components.js +3 -3
  9. package/dist/generators-BjQcx0SS.js +140 -0
  10. package/dist/generators-BjQcx0SS.js.map +1 -0
  11. package/dist/generators-DQ6KjdAH.cjs +151 -0
  12. package/dist/generators-DQ6KjdAH.cjs.map +1 -0
  13. package/dist/generators.cjs +4 -16
  14. package/dist/generators.d.cts +9 -8
  15. package/dist/generators.d.ts +9 -8
  16. package/dist/generators.js +4 -4
  17. package/dist/index.cjs +82 -102
  18. package/dist/index.cjs.map +1 -1
  19. package/dist/index.d.cts +7 -7
  20. package/dist/index.d.ts +7 -7
  21. package/dist/index.js +82 -96
  22. package/dist/index.js.map +1 -1
  23. package/dist/types-BOMj2hjt.d.ts +13 -0
  24. package/dist/types-CxxnBHOU.d.cts +1164 -0
  25. package/dist/types-DYAniEBx.d.cts +13 -0
  26. package/dist/types-Dte4R-vh.d.ts +1164 -0
  27. package/package.json +19 -34
  28. package/src/components/Mock.tsx +21 -9
  29. package/src/components/MockWithFaker.tsx +22 -9
  30. package/src/generators/__snapshots__/createPet.ts +0 -3
  31. package/src/generators/__snapshots__/createPetFaker.ts +0 -3
  32. package/src/generators/__snapshots__/deletePet.ts +0 -3
  33. package/src/generators/mswGenerator.tsx +2 -16
  34. package/dist/chunk-6ANKBOX6.cjs +0 -113
  35. package/dist/chunk-6ANKBOX6.cjs.map +0 -1
  36. package/dist/chunk-FYUFQXX6.cjs +0 -55
  37. package/dist/chunk-FYUFQXX6.cjs.map +0 -1
  38. package/dist/chunk-GUSADLEP.js +0 -110
  39. package/dist/chunk-GUSADLEP.js.map +0 -1
  40. package/dist/chunk-HL53J5NZ.js +0 -51
  41. package/dist/chunk-HL53J5NZ.js.map +0 -1
  42. package/dist/components.cjs.map +0 -1
  43. package/dist/components.js.map +0 -1
  44. package/dist/generators.cjs.map +0 -1
  45. package/dist/generators.js.map +0 -1
  46. package/dist/types-CzI_io_g.d.cts +0 -64
  47. package/dist/types-CzI_io_g.d.ts +0 -64
package/dist/index.js CHANGED
@@ -1,101 +1,87 @@
1
- import { mswGenerator, handlersGenerator } from './chunk-GUSADLEP.js';
2
- import './chunk-HL53J5NZ.js';
3
- import path from 'path';
4
- import { createPlugin, PluginManager, FileManager } from '@kubb/core';
5
- import { camelCase } from '@kubb/core/transformers';
6
- import { pluginOasName, OperationGenerator } from '@kubb/plugin-oas';
7
- import { pluginFakerName } from '@kubb/plugin-faker';
8
- import { pluginTsName } from '@kubb/plugin-ts';
1
+ import "./components-ByUOezvw.js";
2
+ import { handlersGenerator, mswGenerator } from "./generators-BjQcx0SS.js";
3
+ import path from "node:path";
4
+ import { FileManager, PluginManager, createPlugin } from "@kubb/core";
5
+ import { camelCase } from "@kubb/core/transformers";
6
+ import { OperationGenerator, pluginOasName } from "@kubb/plugin-oas";
7
+ import { pluginFakerName } from "@kubb/plugin-faker";
8
+ import { pluginTsName } from "@kubb/plugin-ts";
9
9
 
10
- var pluginMswName = "plugin-msw";
11
- var pluginMsw = createPlugin((options) => {
12
- const {
13
- output = { path: "handlers", barrelType: "named" },
14
- group,
15
- exclude = [],
16
- include,
17
- override = [],
18
- transformers = {},
19
- handlers = false,
20
- parser = "data",
21
- generators = [mswGenerator, handlers ? handlersGenerator : void 0].filter(Boolean),
22
- contentType,
23
- baseURL
24
- } = options;
25
- return {
26
- name: pluginMswName,
27
- options: {
28
- output,
29
- parser,
30
- group,
31
- baseURL
32
- },
33
- pre: [pluginOasName, pluginTsName, parser === "faker" ? pluginFakerName : void 0].filter(Boolean),
34
- resolvePath(baseName, pathMode, options2) {
35
- const root = path.resolve(this.config.root, this.config.output.path);
36
- const mode = pathMode ?? FileManager.getMode(path.resolve(root, output.path));
37
- if (mode === "single") {
38
- return path.resolve(root, output.path);
39
- }
40
- if (group && (options2?.group?.path || options2?.group?.tag)) {
41
- const groupName = group?.name ? group.name : (ctx) => {
42
- if (group?.type === "path") {
43
- return `${ctx.group.split("/")[1]}`;
44
- }
45
- return `${camelCase(ctx.group)}Controller`;
46
- };
47
- return path.resolve(
48
- root,
49
- output.path,
50
- groupName({
51
- group: group.type === "path" ? options2.group.path : options2.group.tag
52
- }),
53
- baseName
54
- );
55
- }
56
- return path.resolve(root, output.path, baseName);
57
- },
58
- resolveName(name, type) {
59
- const resolvedName = camelCase(name, {
60
- suffix: type ? "handler" : void 0,
61
- isFile: type === "file"
62
- });
63
- if (type) {
64
- return transformers?.name?.(resolvedName, type) || resolvedName;
65
- }
66
- return resolvedName;
67
- },
68
- async buildStart() {
69
- const [swaggerPlugin] = PluginManager.getDependedPlugins(this.plugins, [pluginOasName]);
70
- const oas = await swaggerPlugin.context.getOas();
71
- const root = path.resolve(this.config.root, this.config.output.path);
72
- const mode = FileManager.getMode(path.resolve(root, output.path));
73
- const operationGenerator = new OperationGenerator(this.plugin.options, {
74
- oas,
75
- pluginManager: this.pluginManager,
76
- plugin: this.plugin,
77
- contentType,
78
- exclude,
79
- include,
80
- override,
81
- mode
82
- });
83
- const files = await operationGenerator.build(...generators);
84
- await this.addFile(...files);
85
- const barrelFiles = await this.fileManager.getBarrelFiles({
86
- type: output.barrelType ?? "named",
87
- root,
88
- output,
89
- meta: {
90
- pluginKey: this.plugin.key
91
- },
92
- logger: this.logger
93
- });
94
- await this.addFile(...barrelFiles);
95
- }
96
- };
10
+ //#region src/plugin.ts
11
+ const pluginMswName = "plugin-msw";
12
+ const pluginMsw = createPlugin((options) => {
13
+ const { output = {
14
+ path: "handlers",
15
+ barrelType: "named"
16
+ }, group, exclude = [], include, override = [], transformers = {}, handlers = false, parser = "data", generators = [mswGenerator, handlers ? handlersGenerator : void 0].filter(Boolean), contentType, baseURL } = options;
17
+ return {
18
+ name: pluginMswName,
19
+ options: {
20
+ output,
21
+ parser,
22
+ group,
23
+ baseURL
24
+ },
25
+ pre: [
26
+ pluginOasName,
27
+ pluginTsName,
28
+ parser === "faker" ? pluginFakerName : void 0
29
+ ].filter(Boolean),
30
+ resolvePath(baseName, pathMode, options$1) {
31
+ const root = path.resolve(this.config.root, this.config.output.path);
32
+ const mode = pathMode ?? FileManager.getMode(path.resolve(root, output.path));
33
+ if (mode === "single")
34
+ /**
35
+ * when output is a file then we will always append to the same file(output file), see fileManager.addOrAppend
36
+ * Other plugins then need to call addOrAppend instead of just add from the fileManager class
37
+ */
38
+ return path.resolve(root, output.path);
39
+ if (group && (options$1?.group?.path || options$1?.group?.tag)) {
40
+ const groupName = group?.name ? group.name : (ctx) => {
41
+ if (group?.type === "path") return `${ctx.group.split("/")[1]}`;
42
+ return `${camelCase(ctx.group)}Controller`;
43
+ };
44
+ return path.resolve(root, output.path, groupName({ group: group.type === "path" ? options$1.group.path : options$1.group.tag }), baseName);
45
+ }
46
+ return path.resolve(root, output.path, baseName);
47
+ },
48
+ resolveName(name, type) {
49
+ const resolvedName = camelCase(name, {
50
+ suffix: type ? "handler" : void 0,
51
+ isFile: type === "file"
52
+ });
53
+ if (type) return transformers?.name?.(resolvedName, type) || resolvedName;
54
+ return resolvedName;
55
+ },
56
+ async buildStart() {
57
+ const [swaggerPlugin] = PluginManager.getDependedPlugins(this.plugins, [pluginOasName]);
58
+ const oas = await swaggerPlugin.context.getOas();
59
+ const root = path.resolve(this.config.root, this.config.output.path);
60
+ const mode = FileManager.getMode(path.resolve(root, output.path));
61
+ const operationGenerator = new OperationGenerator(this.plugin.options, {
62
+ oas,
63
+ pluginManager: this.pluginManager,
64
+ plugin: this.plugin,
65
+ contentType,
66
+ exclude,
67
+ include,
68
+ override,
69
+ mode
70
+ });
71
+ const files = await operationGenerator.build(...generators);
72
+ await this.addFile(...files);
73
+ const barrelFiles = await this.fileManager.getBarrelFiles({
74
+ type: output.barrelType ?? "named",
75
+ root,
76
+ output,
77
+ meta: { pluginKey: this.plugin.key },
78
+ logger: this.logger
79
+ });
80
+ await this.addFile(...barrelFiles);
81
+ }
82
+ };
97
83
  });
98
84
 
85
+ //#endregion
99
86
  export { pluginMsw, pluginMswName };
100
- //# sourceMappingURL=index.js.map
101
87
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/plugin.ts"],"names":["options"],"mappings":";;;;;;;;;AAcO,IAAM,aAAgB,GAAA;AAEhB,IAAA,SAAA,GAAY,YAAwB,CAAA,CAAC,OAAY,KAAA;AAC5D,EAAM,MAAA;AAAA,IACJ,MAAS,GAAA,EAAE,IAAM,EAAA,UAAA,EAAY,YAAY,OAAQ,EAAA;AAAA,IACjD,KAAA;AAAA,IACA,UAAU,EAAC;AAAA,IACX,OAAA;AAAA,IACA,WAAW,EAAC;AAAA,IACZ,eAAe,EAAC;AAAA,IAChB,QAAW,GAAA,KAAA;AAAA,IACX,MAAS,GAAA,MAAA;AAAA,IACT,UAAA,GAAa,CAAC,YAAc,EAAA,QAAA,GAAW,oBAAoB,MAAS,CAAA,CAAE,OAAO,OAAO,CAAA;AAAA,IACpF,WAAA;AAAA,IACA;AAAA,GACE,GAAA,OAAA;AAEJ,EAAO,OAAA;AAAA,IACL,IAAM,EAAA,aAAA;AAAA,IACN,OAAS,EAAA;AAAA,MACP,MAAA;AAAA,MACA,MAAA;AAAA,MACA,KAAA;AAAA,MACA;AAAA,KACF;AAAA,IACA,GAAA,EAAK,CAAC,aAAA,EAAe,YAAc,EAAA,MAAA,KAAW,UAAU,eAAkB,GAAA,MAAS,CAAE,CAAA,MAAA,CAAO,OAAO,CAAA;AAAA,IACnG,WAAA,CAAY,QAAU,EAAA,QAAA,EAAUA,QAAS,EAAA;AACvC,MAAM,MAAA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UAAc,IAAA,OAAA;AAAA,QAC3B,IAAA;AAAA,QACA,MAAA;AAAA,QACA,IAAM,EAAA;AAAA,UACJ,SAAA,EAAW,KAAK,MAAO,CAAA;AAAA,SACzB;AAAA,QACA,QAAQ,IAAK,CAAA;AAAA,OACd,CAAA;AAED,MAAM,MAAA,IAAA,CAAK,OAAQ,CAAA,GAAG,WAAW,CAAA;AAAA;AACnC,GACF;AACF,CAAC","file":"index.js","sourcesContent":["import path from 'node:path'\n\nimport { FileManager, type Group, PluginManager, createPlugin } from '@kubb/core'\nimport { camelCase } from '@kubb/core/transformers'\nimport { OperationGenerator, pluginOasName } from '@kubb/plugin-oas'\n\nimport { pluginFakerName } from '@kubb/plugin-faker'\nimport { pluginTsName } from '@kubb/plugin-ts'\n\nimport type { Plugin } from '@kubb/core'\nimport type { PluginOas as SwaggerPluginOptions } from '@kubb/plugin-oas'\nimport { handlersGenerator, mswGenerator } from './generators'\nimport type { PluginMsw } from './types.ts'\n\nexport const pluginMswName = 'plugin-msw' satisfies PluginMsw['name']\n\nexport const pluginMsw = createPlugin<PluginMsw>((options) => {\n const {\n output = { path: 'handlers', barrelType: 'named' },\n group,\n exclude = [],\n include,\n override = [],\n transformers = {},\n handlers = false,\n parser = 'data',\n generators = [mswGenerator, handlers ? handlersGenerator : undefined].filter(Boolean),\n contentType,\n baseURL,\n } = options\n\n return {\n name: pluginMswName,\n options: {\n output,\n parser,\n group,\n baseURL,\n },\n pre: [pluginOasName, pluginTsName, parser === 'faker' ? pluginFakerName : undefined].filter(Boolean),\n resolvePath(baseName, pathMode, options) {\n const root = path.resolve(this.config.root, this.config.output.path)\n const mode = pathMode ?? FileManager.getMode(path.resolve(root, output.path))\n\n if (mode === 'single') {\n /**\n * when output is a file then we will always append to the same file(output file), see fileManager.addOrAppend\n * Other plugins then need to call addOrAppend instead of just add from the fileManager class\n */\n return path.resolve(root, output.path)\n }\n\n if (group && (options?.group?.path || options?.group?.tag)) {\n const groupName: Group['name'] = group?.name\n ? group.name\n : (ctx) => {\n if (group?.type === 'path') {\n return `${ctx.group.split('/')[1]}`\n }\n return `${camelCase(ctx.group)}Controller`\n }\n\n return path.resolve(\n root,\n output.path,\n groupName({\n group: group.type === 'path' ? options.group.path! : options.group.tag!,\n }),\n baseName,\n )\n }\n\n return path.resolve(root, output.path, baseName)\n },\n resolveName(name, type) {\n const resolvedName = camelCase(name, {\n suffix: type ? 'handler' : undefined,\n isFile: type === 'file',\n })\n\n if (type) {\n return transformers?.name?.(resolvedName, type) || resolvedName\n }\n\n return resolvedName\n },\n async buildStart() {\n const [swaggerPlugin]: [Plugin<SwaggerPluginOptions>] = PluginManager.getDependedPlugins<SwaggerPluginOptions>(this.plugins, [pluginOasName])\n\n const oas = await swaggerPlugin.context.getOas()\n const root = path.resolve(this.config.root, this.config.output.path)\n const mode = FileManager.getMode(path.resolve(root, output.path))\n\n const operationGenerator = new OperationGenerator(this.plugin.options, {\n oas,\n pluginManager: this.pluginManager,\n plugin: this.plugin,\n contentType,\n exclude,\n include,\n override,\n mode,\n })\n\n const files = await operationGenerator.build(...generators)\n await this.addFile(...files)\n\n const barrelFiles = await this.fileManager.getBarrelFiles({\n type: output.barrelType ?? 'named',\n root,\n output,\n meta: {\n pluginKey: this.plugin.key,\n },\n logger: this.logger,\n })\n\n await this.addFile(...barrelFiles)\n },\n }\n})\n"]}
1
+ {"version":3,"file":"index.js","names":["options","groupName: Group['name']"],"sources":["../src/plugin.ts"],"sourcesContent":["import path from 'node:path'\n\nimport { FileManager, type Group, PluginManager, createPlugin } from '@kubb/core'\nimport { camelCase } from '@kubb/core/transformers'\nimport { OperationGenerator, pluginOasName } from '@kubb/plugin-oas'\n\nimport { pluginFakerName } from '@kubb/plugin-faker'\nimport { pluginTsName } from '@kubb/plugin-ts'\n\nimport type { Plugin } from '@kubb/core'\nimport type { PluginOas as SwaggerPluginOptions } from '@kubb/plugin-oas'\nimport { handlersGenerator, mswGenerator } from './generators'\nimport type { PluginMsw } from './types.ts'\n\nexport const pluginMswName = 'plugin-msw' satisfies PluginMsw['name']\n\nexport const pluginMsw = createPlugin<PluginMsw>((options) => {\n const {\n output = { path: 'handlers', barrelType: 'named' },\n group,\n exclude = [],\n include,\n override = [],\n transformers = {},\n handlers = false,\n parser = 'data',\n generators = [mswGenerator, handlers ? handlersGenerator : undefined].filter(Boolean),\n contentType,\n baseURL,\n } = options\n\n return {\n name: pluginMswName,\n options: {\n output,\n parser,\n group,\n baseURL,\n },\n pre: [pluginOasName, pluginTsName, parser === 'faker' ? pluginFakerName : undefined].filter(Boolean),\n resolvePath(baseName, pathMode, options) {\n const root = path.resolve(this.config.root, this.config.output.path)\n const mode = pathMode ?? FileManager.getMode(path.resolve(root, output.path))\n\n if (mode === 'single') {\n /**\n * when output is a file then we will always append to the same file(output file), see fileManager.addOrAppend\n * Other plugins then need to call addOrAppend instead of just add from the fileManager class\n */\n return path.resolve(root, output.path)\n }\n\n if (group && (options?.group?.path || options?.group?.tag)) {\n const groupName: Group['name'] = group?.name\n ? group.name\n : (ctx) => {\n if (group?.type === 'path') {\n return `${ctx.group.split('/')[1]}`\n }\n return `${camelCase(ctx.group)}Controller`\n }\n\n return path.resolve(\n root,\n output.path,\n groupName({\n group: group.type === 'path' ? options.group.path! : options.group.tag!,\n }),\n baseName,\n )\n }\n\n return path.resolve(root, output.path, baseName)\n },\n resolveName(name, type) {\n const resolvedName = camelCase(name, {\n suffix: type ? 'handler' : undefined,\n isFile: type === 'file',\n })\n\n if (type) {\n return transformers?.name?.(resolvedName, type) || resolvedName\n }\n\n return resolvedName\n },\n async buildStart() {\n const [swaggerPlugin]: [Plugin<SwaggerPluginOptions>] = PluginManager.getDependedPlugins<SwaggerPluginOptions>(this.plugins, [pluginOasName])\n\n const oas = await swaggerPlugin.context.getOas()\n const root = path.resolve(this.config.root, this.config.output.path)\n const mode = FileManager.getMode(path.resolve(root, output.path))\n\n const operationGenerator = new OperationGenerator(this.plugin.options, {\n oas,\n pluginManager: this.pluginManager,\n plugin: this.plugin,\n contentType,\n exclude,\n include,\n override,\n mode,\n })\n\n const files = await operationGenerator.build(...generators)\n await this.addFile(...files)\n\n const barrelFiles = await this.fileManager.getBarrelFiles({\n type: output.barrelType ?? 'named',\n root,\n output,\n meta: {\n pluginKey: this.plugin.key,\n },\n logger: this.logger,\n })\n\n await this.addFile(...barrelFiles)\n },\n }\n})\n"],"mappings":";;;;;;;;;;AAcA,MAAa,gBAAgB;AAE7B,MAAa,YAAY,aAAwB,CAAC,YAAY;CAC5D,MAAM,EACJ,SAAS;EAAE,MAAM;EAAY,YAAY;CAAS,GAClD,OACA,UAAU,CAAE,GACZ,SACA,WAAW,CAAE,GACb,eAAe,CAAE,GACjB,WAAW,OACX,SAAS,QACT,aAAa,CAAC,cAAc,WAAW,oBAAoB,MAAU,EAAC,OAAO,QAAQ,EACrF,aACA,SACD,GAAG;AAEJ,QAAO;EACL,MAAM;EACN,SAAS;GACP;GACA;GACA;GACA;EACD;EACD,KAAK;GAAC;GAAe;GAAc,WAAW,UAAU,kBAAkB;EAAU,EAAC,OAAO,QAAQ;EACpG,YAAY,UAAU,UAAUA,WAAS;GACvC,MAAM,OAAO,KAAK,QAAQ,KAAK,OAAO,MAAM,KAAK,OAAO,OAAO,KAAK;GACpE,MAAM,OAAO,YAAY,YAAY,QAAQ,KAAK,QAAQ,MAAM,OAAO,KAAK,CAAC;AAE7E,OAAI,SAAS;;;;;AAKX,UAAO,KAAK,QAAQ,MAAM,OAAO,KAAK;AAGxC,OAAI,UAAUA,WAAS,OAAO,QAAQA,WAAS,OAAO,MAAM;IAC1D,MAAMC,YAA2B,OAAO,OACpC,MAAM,OACN,CAAC,QAAQ;AACP,SAAI,OAAO,SAAS,OAClB,QAAO,GAAG,IAAI,MAAM,MAAM,IAAI,CAAC,IAAI;AAErC,YAAO,GAAG,UAAU,IAAI,MAAM,CAAC,UAAU,CAAC;IAC3C;AAEL,WAAO,KAAK,QACV,MACA,OAAO,MACP,UAAU,EACR,OAAO,MAAM,SAAS,SAASD,UAAQ,MAAM,OAAQA,UAAQ,MAAM,IACpE,EAAC,EACF,SACD;GACF;AAED,UAAO,KAAK,QAAQ,MAAM,OAAO,MAAM,SAAS;EACjD;EACD,YAAY,MAAM,MAAM;GACtB,MAAM,eAAe,UAAU,MAAM;IACnC,QAAQ,OAAO,YAAY;IAC3B,QAAQ,SAAS;GAClB,EAAC;AAEF,OAAI,KACF,QAAO,cAAc,OAAO,cAAc,KAAK,IAAI;AAGrD,UAAO;EACR;EACD,MAAM,aAAa;GACjB,MAAM,CAAC,cAA8C,GAAG,cAAc,mBAAyC,KAAK,SAAS,CAAC,aAAc,EAAC;GAE7I,MAAM,MAAM,MAAM,cAAc,QAAQ,QAAQ;GAChD,MAAM,OAAO,KAAK,QAAQ,KAAK,OAAO,MAAM,KAAK,OAAO,OAAO,KAAK;GACpE,MAAM,OAAO,YAAY,QAAQ,KAAK,QAAQ,MAAM,OAAO,KAAK,CAAC;GAEjE,MAAM,qBAAqB,IAAI,mBAAmB,KAAK,OAAO,SAAS;IACrE;IACA,eAAe,KAAK;IACpB,QAAQ,KAAK;IACb;IACA;IACA;IACA;IACA;GACD;GAED,MAAM,QAAQ,MAAM,mBAAmB,MAAM,GAAG,WAAW;GAC3D,MAAM,KAAK,QAAQ,GAAG,MAAM;GAE5B,MAAM,cAAc,MAAM,KAAK,YAAY,eAAe;IACxD,MAAM,OAAO,cAAc;IAC3B;IACA;IACA,MAAM,EACJ,WAAW,KAAK,OAAO,IACxB;IACD,QAAQ,KAAK;GACd,EAAC;GAEF,MAAM,KAAK,QAAQ,GAAG,YAAY;EACnC;CACF;AACF,EAAC"}
@@ -0,0 +1,13 @@
1
+ import * as OasTypes from "oas/types";
2
+ import { HttpMethods as HttpMethod } from "oas/types";
3
+ import { Operation as Operation$1 } from "oas/operation";
4
+
5
+ //#region ../oas/src/types.d.ts
6
+ type contentType = 'application/json' | (string & {});
7
+ type SchemaObject$1 = OasTypes.SchemaObject & {
8
+ 'x-nullable'?: boolean;
9
+ $ref?: string;
10
+ };
11
+ //#endregion
12
+ export { type HttpMethod, type OasTypes, type Operation$1 as Operation, SchemaObject$1 as SchemaObject, contentType };
13
+ //# sourceMappingURL=types-BOMj2hjt.d.ts.map