question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] Virtualan plugin (additional property "virtualService") has old version that does not work with 5.x.x

See original GitHub issue

Bug Report Checklist

Virtualan version 1.0.0 is too old. That version has minor bugs that are resolved in later versions. The old version 1.0.0 is not working with OpenAPI tools version 5.x.x and fails to start the spring boot application.

  • [x ] Have you provided a full/minimal spec to reproduce the issue? Generate with generator “spring” and additional property virtualService=true. mvn spring-boot:run fails to start the Spring Boot application.
  • [x ] Have you validated the input using an OpenAPI validator (example)? It is the common petstore sample.
  • [x ] Have you tested with the latest master to confirm the issue still exists? It works with version 4.3.1 but not anymore in version 5.x.x.
  • [x ] Have you searched for related issues/PRs? Yes,
  • [x ] What’s the actual output vs expected output? Spring Boot fails to start with old version of virtualan.
  • [x ] [Optional] Sponsorship to speed up the bug fix or feature request (example)
Description

The old version 1.0.0 has minor bugs and does not work with OpenAPI tools 5.x.x. Version must be updated to 2.1.7 which is the most current version of virtualan.

        <dependency>
            <groupId>io.virtualan</groupId>
            <artifactId>virtualan-plugin</artifactId>
            <version>2.1.7</version>
        </dependency>
openapi-generator version

5.0.1 and 5.1.0

OpenAPI declaration file content or url

Petstore yaml is quite sufficient. It is a more general problem and not from specification. https://github.com/OpenAPITools/openapi-petstore/blob/master/src/main/resources/openapi.yaml

Generation Details

java -jar openapi-generator-cli.jar generate -i petstoreoas3.yaml -g spring -o ./output/petstoreoas3 --additional-properties=virtualService=true

Steps to reproduce

mvn spring-boot:run

Related issues/PRs

https://github.com/OpenAPITools/openapi-generator/pull/8910

Suggest a fix

Just update the pom.xml with new version.

         <dependency>
             <groupId>io.virtualan</groupId>
             <artifactId>virtualan-plugin</artifactId>
             <version>2.1.7</version>
     ``    </dependency>

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
networkinsscommented, Mar 6, 2021

I am already working on it 😃.

0reactions
wing328commented, Mar 7, 2021

Merged. Thanks for the contribution.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Virtualservices/Destination rules not working after 1.2.5 upgrade
Bug description I've recently upgraded my istio setup from 1.0.5 to 1.2.5, basically running a fresh setup.
Read more >
Istio / Virtual Service
A list of namespaces to which this virtual service is exported. Exporting a virtual service allows it to be used by sidecars and...
Read more >
Documentation for the spring Generator
Generates a Java SpringBoot Server application using the SpringDoc integration. #CONFIG OPTIONS. These options may be applied as additional- ...
Read more >
Diff - kernel/common - Google Git
It will + *not* clear the RAM. It will then launch the bootloader, as + normal. + +-- The freshly booted kernel will...
Read more >
com.backbase.oss:backbase-openapi-tools 0.16.5 on Maven
Backbase Open Api Tools will help you converting RAML to OpenAPI plus many ... schema type when adding additional properties in Maven plugin...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found