You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
User story.
As a spectral user, I can create rules that combine other rules and evaluate them using OR, so that I can define rules where one of multiple possible approaches is valid but only 1 is required.
Is your feature request related to a problem?
I cannot create a rule currently that forces a parameter to have an example but allow the example to be in the schema or in the top level parameter object.
Example:
Describe the solution you'd like
I can define each of these rules individually, to look for example in the schema object, or in the parameter object, and then add a truthy function on them, but I cannot check both of these together using OR logic.
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered:
Hey!
Thanks for submitting the feature request.
We already have a similar proposal over here #1276, so I'm going to close this one out.
Feel free to upvote and follow the one above
@P0lip#1276 appears to be specific to combining functions, whereas I want to combine rules. I do not believe combining functions would solve for the example I raised here.
@P0lip Is there some other approach you can think of that would solve this example? It isn't encouraging that the other item you referenced is 3 years old. I tried something like this but it did not work:
User story.
As a spectral user, I can create rules that combine other rules and evaluate them using OR, so that I can define rules where one of multiple possible approaches is valid but only 1 is required.
Is your feature request related to a problem?
I cannot create a rule currently that forces a parameter to have an example but allow the example to be in the schema or in the top level parameter object.
Example:
Describe the solution you'd like
I can define each of these rules individually, to look for example in the schema object, or in the parameter object, and then add a truthy function on them, but I cannot check both of these together using OR logic.
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: