generated from stijnvanhulle/template
-
-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
aba5379
commit 7e19fdd
Showing
67 changed files
with
1,618 additions
and
558 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
title: Python PetStore | ||
aside: false | ||
--- | ||
|
||
<iframe | ||
src="https://codesandbox.io/embed/github/kubb-project/kubb/tree/main/examples/python?fontsize=14&module=%2Fsrc%2Fgen%2Fmodels%2FPerson.ts&theme=dark&view=editor" | ||
:style="{ | ||
width: '100%', | ||
height: '700px', | ||
border: 0, | ||
borderRadius: '4px', | ||
overflow: 'hidden' | ||
}" | ||
title="python" | ||
allow="accelerometer; ambient-light-sensor; camera; encrypted-media; geolocation; gyroscope; hid; microphone; midi; payment; usb; vr; xr-spatial-tracking" | ||
sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts" | ||
/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,8 +7,6 @@ outline: deep | |
|
||
# Editor | ||
|
||
## Editor | ||
|
||
::: code-group | ||
|
||
```tsx [simple] | ||
|
16 changes: 0 additions & 16 deletions
16
examples/client/src/gen/clients/axios/userService/createUser.kt
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
examples/client/src/gen/clients/axios/userService/createUser.py
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
examples/client/src/gen/clients/axios/userService/createUsersWithListInput.kt
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
examples/client/src/gen/clients/axios/userService/createUsersWithListInput.py
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
examples/client/src/gen/clients/axios/userService/deleteUser.kt
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
examples/client/src/gen/clients/axios/userService/deleteUser.py
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
examples/client/src/gen/clients/axios/userService/getUserByName.kt
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
examples/client/src/gen/clients/axios/userService/getUserByName.py
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
examples/client/src/gen/clients/axios/userService/loginUser.kt
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
examples/client/src/gen/clients/axios/userService/loginUser.py
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
examples/client/src/gen/clients/axios/userService/logoutUser.kt
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
examples/client/src/gen/clients/axios/userService/logoutUser.py
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
examples/client/src/gen/clients/axios/userService/updateUser.kt
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
examples/client/src/gen/clients/axios/userService/updateUser.py
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"tabWidth": 2, | ||
"printWidth": 160, | ||
"parser": "typescript", | ||
"singleQuote": true, | ||
"semi": false, | ||
"bracketSameLine": false, | ||
"endOfLine": "auto" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import { defineConfig } from '@kubb/core' | ||
|
||
import { templates } from './templates/CustomClientTemplate' | ||
|
||
export default defineConfig(async () => { | ||
return { | ||
root: '.', | ||
input: { | ||
// path: './test.json', | ||
path: './petStore.yaml', | ||
}, | ||
output: { | ||
path: './src/gen', | ||
clean: true, | ||
}, | ||
hooks: { | ||
// done: ['npx eslint --fix ./src/gen', 'prettier --write "**/*.{ts,tsx}"', 'pnpm typecheck'], | ||
}, | ||
plugins: [ | ||
['@kubb/swagger', { output: false, validate: true }], | ||
[ | ||
'@kubb/swagger-client', | ||
{ | ||
output: { | ||
path: './', | ||
exportType: false, | ||
}, | ||
group: { type: 'tag', output: './{{tag}}Service' }, | ||
templates: { | ||
client: templates, | ||
operations: false, | ||
}, | ||
}, | ||
], | ||
], | ||
} | ||
}) |
Oops, something went wrong.