next-openapi-gen 0.6.0 → 0.6.1

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.
@@ -188,6 +188,9 @@ export class SchemaProcessor {
188
188
  items: this.resolveTSNodeType(typeNode.elementType),
189
189
  };
190
190
  }
191
+ if (t.isTSUnionType(typeNode)) {
192
+ return this.resolveTSNodeType(typeNode);
193
+ }
191
194
  return {};
192
195
  }
193
196
  finally {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-openapi-gen",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "description": "Automatically generate OpenAPI 3.0 documentation from Next.js projects, with support for TypeScript types and Zod schemas.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",