Skip to content

Feature Request: adapt name includes parentheses string #125

Closed
@tkow

Description

@tkow

Steps To Reproduce

Run bun i && bun gen.ts in https://github.com/tkow/cloudflare-ts-client.

This spec includes parentheses in operationId , which is valid though It's not recommended in OAS 3.0.3.
operationId: secondary-dns-(-primary-zone)-create-primary-zone-configuration

The current behavior

See generated codes from a coudflare spec.
https://github.com/tkow/cloudflare-ts-client/blob/main/src/client.ts

The expected behavior

Sanitize them to valid function name.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: BugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions