Skip to content

Commit 72016bc

Browse files
Mac Minimichaelbe812
authored andcommitted
fix(core): make built-in plugin fallback robust and use it for demo generation via hey-openapi\n\n- Correct fallback path to dist src/index.js and support CJS require + file URL import\n- Switch demo target to 'hey-openapi' with a valid client option\n- Add @hey-api/openapi-ts to workspace devDependencies to enable runtime codegen
1 parent f05380f commit 72016bc

4 files changed

Lines changed: 349 additions & 3 deletions

File tree

apps/demo/project.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,11 @@
3030
"generate-api-with-core": {
3131
"executor": "@nx-plugin-openapi/core:generate-api",
3232
"options": {
33+
"generator": "hey-openapi",
3334
"inputSpec": "apps/demo/swagger.json",
3435
"outputPath": "apps/demo/src/app/api-core",
3536
"generatorOptions": {
36-
"skipValidateSpec": true
37+
"client": "fetch"
3738
}
3839
},
3940
"outputs": ["{options.outputPath}"]

0 commit comments

Comments
 (0)