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
Hello, there.
I'm working on custom rule set, I need to make rules that require examples for requestBody and response. I have question in this context - how to make a rule to check nested objects? I figured out that content and response objects (at rule definition) are related to this but how to check that nested application/json (or ideally any property) contains example or examples object? Or maybe there is another way to check that?
Context
I'm working on custom rule set, I need to make rules that require examples for requestBody and response. I have question in this context - described above.
I think such kind of check would be useful for other users.
Possible implementation
Your environment
Include as many relevant details about the environment you experienced the bug in and how to reproduce it.
Node Version: 10.14.1
Operating system and version (e.g. Ubuntu 16.04, Windows 7): Ubuntu 16.04
speccy version: 0.11.0
The text was updated successfully, but these errors were encountered:
okv
changed the title
How to make custom rules to require example of content and response?
How to make custom rules to require example of content and response? #question
Jul 26, 2019
okv
changed the title
How to make custom rules to require example of content and response? #question
How to make custom rules to require example of content and response?
Jul 26, 2019
Detailed description
Hello, there.
I'm working on custom rule set, I need to make rules that require examples for requestBody and response. I have question in this context - how to make a rule to check nested objects? I figured out that
content
andresponse
objects (at rule definition) are related to this but how to check that nestedapplication/json
(or ideally any property) containsexample
orexamples
object? Or maybe there is another way to check that?Context
I'm working on custom rule set, I need to make rules that require examples for requestBody and response. I have question in this context - described above.
I think such kind of check would be useful for other users.
Possible implementation
Your environment
Include as many relevant details about the environment you experienced the bug in and how to reproduce it.
The text was updated successfully, but these errors were encountered: