Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion refarch-frontend/.prettierignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
dist
node_modules
node_modules

# Ignore generated api-folders only
src/api/*/
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There might be cases where we have custom hand written code in src/api so I suggest to change it to something like src/api/generated

Copy link
Contributor Author

@langehm langehm Jan 22, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

custom hand written is inside of /api as seperate files. Those are getting ignored.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah but what if you add custom subfolders in the API folder?
@simonhir @DanielOber What do you think about this?

Copy link
Contributor Author

@langehm langehm Jan 22, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My thought on this: We implemented code geneation for apis - used it.

Smaller api or api-request can still be written in separated files, larger apis should be generated from a specification.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For me personally, i would keep my generated APIs inside a generated folder. So i would prefer to ignore everything inside src/api/generated like Tobi said.

2 changes: 1 addition & 1 deletion refarch-frontend/eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,5 @@ export default defineConfigWithVueTs(
},
},
},
globalIgnores(["dist", "target", "node_modules", "env.d.ts"])
globalIgnores(["dist", "target", "node_modules", "env.d.ts", "src/api/*/**"])
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See previous comment

);
18 changes: 18 additions & 0 deletions refarch-frontend/openapitools.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"$schema": "./node_modules/@openapitools/openapi-generator-cli/config.schema.json",
"spaces": 2,
"generator-cli": {
"version": "7.19.0",
"generators": {
"refarch-backend": {
"generatorName": "typescript-fetch",
"glob": "../refarch-backend/target/*.yaml",
"output": "#{cwd}/src/api/#{name}",
"additionalProperties": {
"supportsES6": true,
"enumPropertyNaming": "UPPERCASE"
}
}
}
}
}
Loading
Loading