Code Monkey home page Code Monkey logo

Comments (13)

rnm-sxm avatar rnm-sxm commented on May 29, 2024 2

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.

melloware avatar melloware commented on May 29, 2024 1

PR for documentation update would be great! cc @soartec-lab

from orval.

melloware avatar melloware commented on May 29, 2024 1

PR welcome

from orval.

melloware avatar melloware commented on May 29, 2024 1

@soartec-lab are you submitting this PR or is @rnm-sxm ?

from orval.

soartec-lab avatar soartec-lab commented on May 29, 2024 1

@melloware

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.

melloware avatar melloware commented on May 29, 2024 1

OK I assigned to both of you and you guys can work it out!

from orval.

rnm-sxm avatar rnm-sxm commented on May 29, 2024 1

@soartec-lab Thanks for taking this over.

from orval.

melloware avatar melloware commented on May 29, 2024

This was added in 6.21.0: #907

Is it not working for you?

#1058

from orval.

rnm-sxm avatar rnm-sxm commented on May 29, 2024

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.

rnm-sxm avatar rnm-sxm commented on May 29, 2024

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.

melloware avatar melloware commented on May 29, 2024

Cc @dsthode who made this change.

from orval.

soartec-lab avatar soartec-lab commented on May 29, 2024

Thank you for sharing this issue. I will also check the PR. looking forward to it 🙌

from orval.

soartec-lab avatar soartec-lab commented on May 29, 2024

No, I haven't started yet.

@rnm-sxm

If you don't, I can also respond to this next to the other responses.

from orval.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.