Git Product home page Git Product logo

Comments (1)

christianhelle avatar christianhelle commented on July 21, 2024

@attilah thanks for taking the time to report this

I looked a bit into this and there is very little I can do regarding changing how the contracts/dto types are generated. I piggy back entirely on a tool called NSwag for parsing the OpenAPI spec and for generating contracts.

Implementing customizations to the generated contracts/dto types would require building them by hand, and that's a bit of a big task, which I'm not ready to start on yet. I've done it previously in another project I'm involved in called the ATC REST Generator and it was rather hard to do and we kept seeing bugs.

NSwag seems to have nailed the contract/dto type generation to the point where everyone can almost be happy, but the feature set for generating contract/dto types hasn't really changed much over the years

I'll park this for now and revisit it in the future if I decide that Refitter should also handle contract/dto type generation.

May I suggest that you try other code generators and see if any of the others (e.g. OpenAPI Generator, NSwag, Kiota) can solve your problem? I have a Visual Studio extension that can help with trying out different code generators

from refitter.

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.