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

Tcases with oneOf multiple schemas #255

Closed
kerrykimbrough opened this issue Nov 10, 2022 Discussed in #254 · 1 comment
Closed

Tcases with oneOf multiple schemas #255

kerrykimbrough opened this issue Nov 10, 2022 Discussed in #254 · 1 comment

Comments

@kerrykimbrough
Copy link
Contributor

Discussed in #254

Originally posted by aeringis November 9, 2022
Hello,

I was testing to see how tcases handles the use of oneOf in openapi. Based on this example spec, generating tests with tcases-api-test is possible and functions correctly, but does not do so in examples mode. If run with source set to examples, tcases is unable to generate any test data of its own, even if no example data is provided which I had thought should function equivalently to running tcases normally. Is this the expected behavior?

https://github.com/Cornutum/tcases/blob/master/tcases-openapi/README.md#openapi-tips

Based on reading the tips in above, I believe it should be possible to have tcases work with the spec layout provided and have examples for some of the properties in the schema section and have tcases generate random values for others

Screen Shot 2022-11-09 at 2 08 55 PM
@kerrykimbrough
Copy link
Contributor Author

@aeringis Fixed in release 3.8.6

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