Giter VIP home page Giter VIP logo

Comments (3)

jburzynski avatar jburzynski commented on August 25, 2024 1

I just released version 2.3.0, which should fix this issue.

from typegen.

jburzynski avatar jburzynski commented on August 25, 2024

Hi, thanks for reporting the issue!

I'm on holiday now; I should be able to fix it on the weekend or the beginning of next week.

In the meantime, the solution could be to use TsTypeAttribute and TsDefaultValueAttribute on all properties/fields with enum values - this way you can e.g. set the type to number (this will also cause the enum types to not be generated) and the default value to a numeric value.

This can be time consuming if you have a lot of enum properties, but I can't think of another way of doing it unfortunately.

I'll post any updates on the progress in this thread.

from typegen.

jburzynski avatar jburzynski commented on August 25, 2024

Just a small update: there are some new things I'd like to add to the next release, so I will release the new version probably in a couple of days.

Right now there is a TypeGen NuGet package on the dev branch (in the nuget or nuget-dotnetcli folder) that contains the fix for the bug mentioned in this thread - the updated package should generate enums with all possible underlying types correctly.

Until the next version is released you can use this package locally, and of course I'll post an update here when I make the release.

from typegen.

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.