Skip to content

How to generate tests for all enums defined in a specification #502

Answered by thim81
PaulCluver asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @PaulCluver

The schema validation will use the ENUM values to validate if the response contains any of the allowed values.

Next to this, you could manually create a contentTests > responseBodyTests using the oneOf property, to manually validate the content.
https://github.com/apideck-libraries/portman#portman---contenttests-properties

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@PaulCluver
Comment options

Answer selected by PaulCluver
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants