Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on swagger parser #65

Open
SergeyVinickiy opened this issue Nov 24, 2020 · 4 comments
Open

Error on swagger parser #65

SergeyVinickiy opened this issue Nov 24, 2020 · 4 comments
Labels
type:bug Something isn't working

Comments

@SergeyVinickiy
Copy link

Hi Victor,
Thanks for sharing this project

Getting this error on one of the swaggers, for another it works fine

[main] INFO io.swagger.parser.Swagger20Parser - reading from appmarketqa.json
[main] INFO com.github.viclovsky.swagger.coverage.core.generator.Generator - spec is io.swagger.models.Swagger@13eef5a4
[main] INFO com.github.viclovsky.swagger.coverage.configuration.ConfigurationBuilder - can't read configuration, use default configuration
Exception in thread "main" java.lang.NullPointerException
at com.github.viclovsky.swagger.coverage.core.results.builder.postbuilder.TagStatisticsBuilder.lambda$null$1(TagStatisticsBuilder.java:43)
at java.util.ArrayList.forEach(Unknown Source)
at com.github.viclovsky.swagger.coverage.core.results.builder.postbuilder.TagStatisticsBuilder.lambda$configure$2(TagStatisticsBuilder.java:43)
at java.util.HashMap.forEach(Unknown Source)
at com.github.viclovsky.swagger.coverage.core.results.builder.postbuilder.TagStatisticsBuilder.configure(TagStatisticsBuilder.java:43)
at com.github.viclovsky.swagger.coverage.core.results.builder.postbuilder.TagStatisticsBuilder.configure(TagStatisticsBuilder.java:22)
at com.github.viclovsky.swagger.coverage.configuration.Configuration.lambda$getStatisticsBuilders$2(Configuration.java:44)
at java.util.stream.ReferencePipeline$3$1.accept(Unknown Source)
at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(Unknown Source)
at java.util.stream.AbstractPipeline.copyInto(Unknown Source)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source)
at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(Unknown Source)
at java.util.stream.AbstractPipeline.evaluate(Unknown Source)
at java.util.stream.ReferencePipeline.collect(Unknown Source)
at com.github.viclovsky.swagger.coverage.configuration.Configuration.getStatisticsBuilders(Configuration.java:46)
at com.github.viclovsky.swagger.coverage.core.generator.Generator.run(Generator.java:37)
at com.github.viclovsky.swagger.coverage.CommandLine.run(CommandLine.java:74)
at java.util.Optional.orElseGet(Unknown Source)
at com.github.viclovsky.swagger.coverage.CommandLine.main(CommandLine.java:35)

@SergeyVinickiy
Copy link
Author

SergeyVinickiy commented Nov 25, 2020

We found missing tag in swagger. So it fail if there is no announced tag
Great project,
Thanks a lot!

@viclovsky
Copy link
Owner

Hello, @SergeyVinickiy

Could you give swagger-coverage version? Sounds like we already fixed something similar here: #60
Anyway, to understand a root cause I need an example with specification and swagger-coverage-output .

@viclovsky viclovsky added the type:bug Something isn't working label Nov 25, 2020
@SergeyVinickiy
Copy link
Author

I have swagger-coverage-commandline-1.3.1
Please writhe me on mail - [email protected] if some other data you need

@viclovsky
Copy link
Owner

@SergeyVinickiy could you check the latest version of swagger-coverage, I have merged some fixes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants