swagger-api / swagger-api/swagger-codegen

Is there any way to generate example json file?

Open
#7,449 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Mustache
Stars
17.8k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

Is there any way to generate example json file?

ex) Pet.json
https://github.com/swagger-api/swagger-codegen/blob/master/samples/yaml/pet.yml#L145

{
  "id": "123456",
  "name": "hoge"
}

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

Start by reviewing samples/yaml/pet.yml and the linked example to clarify the expected JSON output; no implementation file or test is named. Done should mean the requested example JSON generation behavior is defined and verified against the Pet example.

Written by the indexing model from the issue text.

Assessment

Tech stack
openapi
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.