Skip to content

How can we define the range for one of the input parameters while generating API tests #198

Discussion options

You must be logged in to vote

All of the information about input parameters must come from the OpenAPI definition. For example, if you have an input parameter that must be an integer between 0 and 100, you can define its value range like this:

...
"parameters": [
    {
        "name": "myParam",
        "schema": {
            "type": "integer",
            "minimum": 0,
            "maximum": 100
        }
    }
]
...

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@AnirudhChaudhary
Comment options

@kerrykimbrough
Comment options

@AnirudhChaudhary
Comment options

@AnirudhChaudhary
Comment options

@kerrykimbrough
Comment options

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