Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenAPI: Inconsistent test cases when "null" and "empty" values are serialized identically #201

Closed
kerrykimbrough opened this issue Jul 21, 2021 · 1 comment

Comments

@kerrykimbrough
Copy link
Contributor

Depending on how a request parameter is serialized (as defined by its exploded and style attributes), a null value and an empty value can take the same form in the serialized request message. This is problematic when the parameter schema dictates that a null value is invalid but an empty value is OK, or vice versa. In this case, Tcases for OpenAPI will usually generate inconsistent test cases. Alternatively, even if null and empty values are both valid (or both invalid), TFOA will generate redundant success (or failure) test cases.

@kerrykimbrough
Copy link
Contributor Author

Fixed in release 3.7.1 -- see the release notes for details.

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

No branches or pull requests

1 participant