-
-
Notifications
You must be signed in to change notification settings - Fork 240
Closed
Labels
bug 🔥Something isn't workingSomething isn't workingprioritized 🚚This issue has been prioritized and will be worked on soonThis issue has been prioritized and will be worked on soon
Description
Description
If your openapi spec has entries with operationId
s like:
operationId: account___note_retrieve
...
operationId: account_note_retrieve
(which are auto-generated by drf-spectacular based on the paths)
then then both get mapped to accountNoteRetrieve
(presumably because all underscores are ignored?)
This is using client-axios
.
Reproducible example or configuration
npx @hey-api/openapi-ts -i 'schema.yml' -o src/schemas/mySchema -c @hey-api/client-axios
OpenAPI specification (optional)
/api/account/{blah}/{foo}-{bar}/note:
get:
operationId: account___note_retrieve
parameters:
- in: path
name: blah
schema:
type: string
required: true
- in: path
name: foo
schema:
type: string
required: true
- in: path
name: bar
schema:
type: string
required: true
/api/account/{blah}/note:
get:
operationId: account_note_retrieve
parameters:
- in: path
name: blah
schema:
type: string
required: true
System information (optional)
No response
Metadata
Metadata
Assignees
Labels
bug 🔥Something isn't workingSomething isn't workingprioritized 🚚This issue has been prioritized and will be worked on soonThis issue has been prioritized and will be worked on soon