Skip to content

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

@YASWANTH-K-S

Description

@YASWANTH-K-S

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:bugA broken experience

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions