swagger-api / swagger-api/swagger-parser
Swagger-parser 1.x: SwaggerDeserializer.java- No declaration found for method setPattern()
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 867
- Forks
- 560
- Avg merge
- 2d 21h
- Merged PRs (30d)
- 7
Description
I have tried with versions 1.0.36/38 and 39.
The code breaks when it reaches (for version 1.0.39) line #821 impl.setPattern(value); as
it cannot find setPattern() method in ModelImpl.java.
This is the exception that i get - org.springframework.web.util.NestedServletException: Handler dispatch failed; nested exception is java.lang.NoSuchMethodError: io.swagger.models.ModelImpl.setPattern(Ljava/lang/String;)V
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at SwaggerDeserializer.java around line 821 and compare the referenced ModelImpl.java API for versions 1.0.36, 1.0.38, and 1.0.39. Reproduce the NoSuchMethodError and determine why setPattern(String) is unavailable at runtime; done means the parser and model versions resolve the method consistently.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- api
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100