Skip to content

Conversation

@smals-mavh
Copy link
Collaborator

No description provided.

@smals-mavh smals-mavh requested a review from pvdbosch October 9, 2025 13:04
@smals-mavh smals-mavh linked an issue Oct 9, 2025 that may be closed by this pull request
@pvdbosch
Copy link
Collaborator

corner case - should also check nested types:

oneOf:
- allOf:
   - type: string
   - description: "blabla"
 - type: object
oneOf:
- allOf:
   - $ref: "#/components/schemas/MyStringSchema"
 - type: object

Copy link
Collaborator

@pvdbosch pvdbosch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The implementation can be changed to use the getPossibleTypes from the allOf, for nested checks. I think it would do the job more throughly.

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

Successfully merging this pull request may close these issues.

Validate rule [sch-oneof]

3 participants