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

Boolean Type Not Recognized in oneOf Property in OAS Spec File #1772

Open
YASWANTH-K-S opened this issue Aug 6, 2024 · 0 comments
Open

Boolean Type Not Recognized in oneOf Property in OAS Spec File #1772

YASWANTH-K-S opened this issue Aug 6, 2024 · 0 comments
Labels
type:bug A broken experience

Comments

@YASWANTH-K-S
Copy link

Describe the bug
When defining boolean type default example values within the oneOf property in an OpenAPI Specification (OAS) file, the boolean type is not recognized correctly. Instead, it is recognized as a string.

OpenApi File To Reproduce
I have attached the Sample OAS Spec file.
OAS Spec File Test.txt
Steps to reproduce :
1 - Create an OAS file with a boolean type within a oneOf property as shown in the example.
2 - Import the OAS file into your API tool.
3 - Observe that the boolean type is recognized as a string instead of a boolean.

Expected behavior
The boolean type within the oneOf property should be recognized as a boolean, not a string.

**Additional content
This issue affects the validation and interpretation of the API specification, leading to potential errors in the API implementation and testing.

@MaggieKimani1 MaggieKimani1 added the type:bug A broken experience label Aug 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug A broken experience
Projects
None yet
Development

No branches or pull requests

2 participants