swagger-api / swagger-api/swagger-codegen
pls. integrate validator into generator.war
Nobody has claimed this yet.
- Dominant language
- Mustache
- Stars
- 17.8k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
I ran mvn package on this repo and started the war using java -rar jetty-runner.jar swagger-generator-2.2.3-SNAPSHOT.war
When I opened the app in my browser, it came as a surprise it called http://online.swagger.io/validator.
I understand I can clone your repo validator-badge, compile a war file and start it just as I start generator. I can edit the file swagger-codegen\modules\swagger-generator\src\main\webapp\index.html and provide host and port under which I run validator locally as validatorUrl. This works after I recompile.
I was just wondering if there's a more dynamic approach. Is there a possibility to configure the validator url without the need to recompile?
Can you maybe integrate validator into the generator.war?
Best,
Bernhard
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 with swagger-codegen/modules/swagger-generator/src/main/webapp/index.html and the Maven package flow that produces generator.war. Trace how validatorUrl is currently supplied and determine the scope of runtime configuration or validator integration. Done means the validator endpoint can be configured without recompiling, or the integration approach is clearly defined and tested.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend, build-system
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100