oneOf rule should apply to OpenAPI 2.0 only #9
Labels
No labels
bug
dependencies
documentation
duplicate
enhancement
good first issue
help wanted
invalid
javascript
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
andylockran/spectral-aws-apigateway-ruleset#9
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The ruleset currently has the following rule:
However, the AWS documentation states:
I have been able to use oneOf successfully in API Gateway with 3.0 which seems to confirm this.
Therefore, I suggest that this rule only applies to OpenAPI 2.0 specs.
Thanks for the feedback, unfortunately due to time constraints I'd not worked out how to differentiate between the two AWS OpenAPI implementations, so am assuming that this library should only work with the v3 fork of OpenAPI.
As the AWS documentation has been updated, I will fix this by removing the warning around oneOf not being supported, and make it clearer in the README that this is only targetting openapiV3-aws.
Thank you so much - this has now been released.