Skip to content

Feature/962 Use OpenAPI examples#967

Merged
255kb merged 4 commits intomockoon:mainfrom
mathilde-lannes:feature/962-use-openapi-examples
Feb 28, 2023
Merged

Feature/962 Use OpenAPI examples#967
255kb merged 4 commits intomockoon:mainfrom
mathilde-lannes:feature/962-use-openapi-examples

Conversation

@mathilde-lannes
Copy link
Contributor

@mathilde-lannes mathilde-lannes commented Feb 27, 2023

Closes #962

Technical implementation details

When importing an OpenAPI specification file, the examples property of the specification is used to generate new route responses. Each example is transformed in a new route response and the default route response is the one generated from the schema property.

Checklist

  • data migration added (@mockoon/commons)
  • data migration automated tests added (@mockoon/commons)
  • CLI automated tests added (@mockoon/cli)
  • desktop automated tests added (@mockoon/desktop)

@mathilde-lannes mathilde-lannes changed the title Closes #962 Feature/962 Use OpenAPI examples Feb 27, 2023
Copy link
Member

@255kb 255kb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution and for adding tests in the commons-server package.
There is a small issue that is breaking the desktop tests.

@255kb 255kb merged commit 946c5c4 into mockoon:main Feb 28, 2023
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.

Use OpenAPI examples

2 participants