Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to make custom rules to require example of content and response? #356

Open
okv opened this issue Jul 26, 2019 · 1 comment
Open

How to make custom rules to require example of content and response? #356

okv opened this issue Jul 26, 2019 · 1 comment

Comments

@okv
Copy link

okv commented 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 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
@okv 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 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
@okv
Copy link
Author

okv commented Oct 31, 2019

Just bump, any help would be appreciated, thanks.

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

No branches or pull requests

1 participant