Skip to content

Use JSON examples, when available, when creating sample JSON for operations #303

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 19, 2015
Merged

Conversation

whitlockjc
Copy link
Contributor

If a response has an examples property and it has an application/json property, we will use that whenever generating the sample JSON for an operation instead of building the sample JSON from the response schema. This is the way things originally worked and this was a regression.

Fixes #300

whitlockjc added a commit that referenced this pull request Mar 19, 2015
Use JSON examples, when available, when creating sample JSON for operations
@whitlockjc whitlockjc merged commit 77d48a1 into swagger-api:develop_2.0 Mar 19, 2015
@whitlockjc whitlockjc deleted the issue-300 branch March 19, 2015 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant