Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: support different enum key #1366

Open
liveMomentY opened this issue May 13, 2024 · 0 comments
Open

Feature request: support different enum key #1366

liveMomentY opened this issue May 13, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@liveMomentY
Copy link

What happens?

In backend generation tools, it is possible that the enum key are generated in the format of "x-enum-varnames".

What were you expecting to happen?

like "https://github.com/acacode/swagger-typescript-api"

getEnumNames = (schema) => {
  return (
    schema["x-enumNames"] ||
    schema["xEnumNames"] ||
    schema["x-enumnames"] ||
    schema["x-enum-varnames"]
  );
};

What versions are you using?

Package Version: 6.28.2

@melloware melloware added the enhancement New feature or request label May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants