swagger-api / swagger-api/swagger-codegen
Update fake petstore spec with more `example`
Nobody has claimed this yet.
- Dominant language
- Mustache
- Stars
- 17.8k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
Description
Add example to fake petstore to cover more edge cases.
Ref: https://gist.github.com/spr3nk3ls/f165f0f19656a9e1ef8bf0f900f5067a
Swagger-codegen version
Latest master
Related issues
https://github.com/swagger-api/swagger-codegen/pull/5247
Suggest a Fix
Add the example in https://gist.github.com/spr3nk3ls/f165f0f19656a9e1ef8bf0f900f5067a#file-swagger_example-json-L64 to fake petstore spec.
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
Open modules/swagger-codegen/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml and compare it with the example shown at the referenced gist line. Add the requested example to the fake petstore spec, then verify that the YAML remains valid and continues to serve as a test fixture for the additional edge case.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- openapi, yaml
- Domain
- testing
- Issue type
- Feature
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100