Skip to content

Commit 9e3fe27

Browse files
committed
use open-api config
1 parent 6953fc3 commit 9e3fe27

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
export default {
2+
input: 'http://localhost:6583/umbraco/swagger/AlgoliaSearch/swagger.json',
3+
output: {
4+
lint: 'eslint',
5+
path: 'generated',
6+
},
7+
schemas: false,
8+
services: {
9+
asClass: true
10+
},
11+
types: {
12+
enums: 'typescript',
13+
}
14+
}
15+

src/Umbraco.Cms.Integrations.Search.Algolia/Client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"build": "tsc && vite build",
1313
"preview": "vite preview",
1414
"watch": "vite build --watch",
15-
"generate:api": "openapi-ts --input http://localhost:6583/umbraco/swagger/AlgoliaSearch/swagger.json --output src/api --debug true --enums typescript --lint true --schemas false"
15+
"generate:api": "openapi-ts"
1616
},
1717
"devDependencies": {
1818
"@hey-api/openapi-ts": "^0.37.3",

0 commit comments

Comments
 (0)