-
-
Notifications
You must be signed in to change notification settings - Fork 7.4k
Closed
Description
Bug Report Checklist
- Have you provided a full/minimal spec to reproduce the issue?
- Have you validated the input using an OpenAPI validator (example)?
- Have you tested with the latest master to confirm the issue still exists?
- Have you searched for related issues/PRs?
- What's the actual output vs expected output?
- [Optional] Sponsorship to speed up the bug fix or feature request (example)
Description
Defining operations with multiple tags leads to duplicate export:
> tsc
src/apis/index.ts:3:1 - error TS2308: Module './AdminApi' has already exported a member named 'GetSelfServiceSettingsFlowRequest'. Consider explicitly re-exporting to resolve the ambiguity.
3 export * from './PublicApi';
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
openapi-generator version
4.3.1
OpenAPI declaration file content or url
"/self-service/settings/flows": {
"get": {
"produces": [
"application/json"
],
"schemes": [
"http",
"https"
],
"tags": [
"public",
"admin"
],
"summary": "Get Settings Flow",
"operationId": "getSelfServiceSettingsFlow",
"parameters": [
{
"type": "string",
"description": "ID is the Settings Flow ID\n\nThe value for this parameter comes from `flow` URL Query parameter sent to your\napplication (e.g. `/settings?flow=abcde`).",
"name": "id",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "settingsFlow",
"schema": {
"$ref": "#/definitions/settingsFlow"
}
},
"403": {
"description": "genericError",
"schema": {
"$ref": "#/definitions/genericError"
}
},
"404": {
"description": "genericError",
"schema": {
"$ref": "#/definitions/genericError"
}
},
"410": {
"description": "genericError",
"schema": {
"$ref": "#/definitions/genericError"
}
},
"500": {
"description": "genericError",
"schema": {
"$ref": "#/definitions/genericError"
}
}
}
}
},Generation Details
# typescript.yml
npmName: "@oryd/kratos-client"
npmVersion: v0.0.1
supportsES6: truenpx @openapitools/openapi-generator-cli@cli-4.3.1 generate -i "./contrib/sdk/api.swagger.json" \
-g typescript-fetch \
-o "./contrib/sdk/generated" \
--git-user-id ory \
--git-repo-id sdk \
--git-host github.com \
-c ./contrib/sdk/typescript.yml
Steps to reproduce
See command above.
Related issues/PRs
None
Suggest a fix
Prefix and exports with their tag as to avoid duplicate exports.