Giter Club home page Giter Club logo

Comments (4)

padamstx avatar padamstx commented on August 12, 2024 1

Hi @rvesse, it turns out that I was making these changes in my fork of the openapi-generator project for our internal use only, and we simply didn't need to retain the function that relied on the Suggester stuff, so I "fixed" the problem by simply removing that code that depended on it :)

I think at some point, the maintainers of the official open-source openapi-generator project will need to make similar changes and they will most likely want to retain that functionality. But, I'll let them do the necessary exploration to make that work :)

from airline.

padamstx avatar padamstx commented on August 12, 2024

After my initial semi-panicked post above 😂, I've been able to migrate the majority of the code to use the new airline v2.9.0 library, with a few loose ends remaining.

Previously the openapi-generator code used the "required" and "allowedValues" attributes of the @Option annotation and I don't see equivalents in the newer "airline" library v2.9.0. Were these just dropped or is there some alternative that I can use?

Also, the CompletionCommand class uses airline's "Suggester" support and the parser (the code previously used the airline Parser class, and I think that needs to be changed to use CliParser but the parser interface has changed a bit (e.g. a different return type for the "parse()" method) so I'm still a little unclear on how to migrate that code specifically.

Again, any help is appreciated.

Thanks,
Phil

from airline.

padamstx avatar padamstx commented on August 12, 2024

Previously the openapi-generator code used the "required" and "allowedValues" attributes of the @Option annotation and I don't see equivalents in the newer "airline" library v2.9.0. Were these just dropped or is there some alternative that I can use?

After more digging, I've discovered the restrictions-related annotations, specifically the @required and @AllowedRawValues annotations.

As for my other issue related to the "Suggester" stuff, I was able to modify imports and make minor code changes so that everything compiles clean with the 2.9.0 version of the new airline library, although I was not able to get everything working correctly with respect to the "CommandCompletion" class in openapi-generator (linked above).

from airline.

rvesse avatar rvesse commented on August 12, 2024

Hi @padamstx

Just coming back from the holiday break so apologies for not seeing this any sooner. It sounds like you've figured out most of the migration yourself.

For the Suggester stuff I'm afraid that's an area of the codebase that I never really touched at all other than making it continue to compile with the various refactoring that have happened over the years.

Do you have specific examples of what works/doesn't work (or works differently) with the original library versus my fork?

from airline.

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.