Skip to content
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

It should be possible to set real data for bodies #5

Closed
SvenBayer opened this issue Jul 18, 2018 · 0 comments
Closed

It should be possible to set real data for bodies #5

SvenBayer opened this issue Jul 18, 2018 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@SvenBayer
Copy link
Owner

A request- and response-body should be able to have example data in the x-example field as json string so we can create requests and responses with real data.

Example of a response with real data:
responses:
'201':
description: Created
schema:
x-example: "{ id: 1, name: 'Mark Muller' }"
$ref: '#/definitions/BeanPlanet'

Acceptance criteria

  • It is verified or implemented that a x-example field can be set to a json string
  • The spring-cloud-contract-swagger-sample project is extended
  • Tests are added
@SvenBayer SvenBayer added the enhancement New feature or request label Jul 18, 2018
@SvenBayer SvenBayer added this to the 1.0.2.RELEASE milestone Jul 18, 2018
@SvenBayer SvenBayer self-assigned this Jul 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant