Comments (13)
The fix appears to be a one-liner, but I'm not familiar with this project - I don't know how to build it.
packages/core/src/getters/enum.ts, line 93 should be
` ${keyword.isIdentifierNameES5(name) ? name : `'${name}'`}= ${val},\n`
from orval.
PR for documentation update would be great! cc @soartec-lab
from orval.
PR welcome
from orval.
@soartec-lab are you submitting this PR or is @rnm-sxm ?
from orval.
I can move forward with this response once the current response is finished, but out of respect for @rnm-sxm who reported the issue, I'll wait for a moment for a response 👍
from orval.
OK I assigned to both of you and you guys can work it out!
from orval.
@soartec-lab Thanks for taking this over.
from orval.
This was added in 6.21.0: #907
Is it not working for you?
from orval.
Thanks for pointing this out. This option is apparently not enabled by default (I'm using CLI), and is not documented on the main web site.
from orval.
There is still a bug related to the way the x-enumNames is used. It ends up generating enums with colons (Color2) instead of equals:
export enum Color2 {
black: 0,
white: 10,
red: 20,
green: 30,
blue: 40,
}
export enum Color1 {
black= 'black',
white= 'white',
red= 'red',
green= 'green',
blue= 'blue',
}
from orval.
Cc @dsthode who made this change.
from orval.
Thank you for sharing this issue. I will also check the PR. looking forward to it 🙌
from orval.
No, I haven't started yet.
If you don't, I can also respond to this next to the other responses.
from orval.
Related Issues (20)
- Sample: axios cancelToken is deprecated HOT 1
- Bug: Nordic characters are ignored HOT 2
- Reproducable TypeScript output HOT 1
- useMutation still appears HOT 9
- Passing the config type to mutator as secondary generic argument
- Feature: Don't add unused imports to the generated file(s) HOT 3
- React Query: onMutate is missing from generated mutateOptions HOT 1
- TypeScript: Variable is used before being assigned / Block-scoped variable used before its declaration
- "WARNING: `import.meta` is not available" after updating to 6.24.0 HOT 11
- Support for Svelte Query v5 HOT 1
- Node16 or bundler module resolution causes TS2742 error HOT 1
- Missing import of enum const in generated mock when using split mode HOT 5
- Mock TypeError custom override HOT 7
- Possibility of TS2563 error for mock generation HOT 5
- TS2300 Duplicate identifier: duplicated imports when `mock` enabled HOT 7
- Allow overriding entire handler function in generated MSW handlers, not just response object
- Invalid typescript generation for empty schema HOT 4
- msw generation does not import used models HOT 1
- Mock generation doesn't guarantee the required property mocking
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from orval.