swagger-api / swagger-api/swagger-codegen

Update fake petstore spec with more `example`

Open
#5,458 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Enhancement: CI/Test
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.