Skip to content

Specmatic Generated Value Exceeds Defined Maximum for Query Parameter in OpenAPI Specification #1146

Closed Answered by harikrishnan83
premsvmm asked this question in Ask For Help
Discussion options

You must be logged in to vote

@premsvmm I tested with your API specification above with Specmatic 1.3.29 and it is generating values within the set minimum and maximum values for your amount field. Can you please check again with the latest version of Specmatic?

Also, I see that your name examples are not co-ordinated between request and response. In request section you have two examples example and [WIP] SUCCESS, however in responses you have examples_1 and examples_2. So your examples were not getting picked up as test data. Since OpenAPI inherently does not have a way to associate request and response examples, in Specmatic we leverage example names as a way to associate request and responses.

Once I fixed this (re…

Replies: 7 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@yogeshnikam671
Comment options

@premsvmm
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by premsvmm
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants