Skip to content

Choosing examples from open api specification for responses. #1364

@PlatWalker

Description

@PlatWalker

Trying to setup some tests for twilio (https://github.com/twilio/twilio-oai) with their open api specification. I downloaded their oai, registered with wiremock method ".WithMappingFromOpenApiFile" everything goes smooth. Problem is that their oai has examples that I want to use. I can't find option to map those examples to wiremock, it seems there is only option to randomly generate values based on schema types? My only option is to read those examples with openapi reader and register desired options manually with ".RespondWith"?

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions