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

[docs]: add nested fields example in config file #1892

Open
gouravkrosx opened this issue May 23, 2024 · 1 comment
Open

[docs]: add nested fields example in config file #1892

gouravkrosx opened this issue May 23, 2024 · 1 comment
Labels
Documentation Improvements or additions to documentation Good First Issue Good for newcomers keploy Repo/@docs Issue Related to Keploy Documentation Repository

Comments

@gouravkrosx
Copy link
Member

gouravkrosx commented May 23, 2024

What do you want to add to the docs? (please state reasons if any)

Currently, adding deeply nested JSON fields in the configuration file, such as in the global noise section, is somewhat tricky. While adding fields with a single level of nesting is manageable, handling multiple levels of nesting can be more complex. Therefore, we need additional examples in the Keploy configuration comments and documentation to better illustrate how to add these nested fields.

Where is this stated?

Lets say we have this token field inside the response body.

{"data":{"signUp":{"id":"100","email":"keploy@test.com","firstName":"keploy","lastName":"keploy","token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImNyZWF0ZWRBdCI6IjIwMjQtMDUtMjJUMTA6NDk6MjIuNjI0WiIsImlkIjoxMDAsImZpcnN0TmFtZSI6InNhZ2FyIiwibGFzdE5hbWUiOiJ0b21hciIsImVtYWlsIjoic2FnYXJAdGVzdC5jb20iLCJwYXNzd29yZCI6IjU1ZjQ1MTg2OWI3OTZlMmFlZmU3ODA2ZjA0YTJlMzBkIiwidXBkYXRlZEF0IjoiMjAyNC0wNS0yMlQxMDo0OToyMi4wMzlaIiwiZGVsZXRlZEF0IjpudWxsfSwiaWF0IjoxNzE2Mzc0OTYyLCJleHAiOjE3MTY0NjEzNjJ9.21A-gz8QLnbx2bhpzMcezENjTGWKhBfwU4o2paFuEVM","createdAt":"2024-05-22T10:49:22.624Z","deletedAt":null,"updatedAt":"2024-05-22T10:49:22.039Z"}}}

How can I use it in the config file? refer this.

Repository

docs

@gouravkrosx gouravkrosx added the Documentation Improvements or additions to documentation label May 23, 2024
@github-actions github-actions bot added the docs label May 23, 2024
@gouravkrosx gouravkrosx added keploy and removed docs labels May 23, 2024
@github-actions github-actions bot added the docs label May 23, 2024
@gouravkrosx gouravkrosx added Good First Issue Good for newcomers Repo/@docs Issue Related to Keploy Documentation Repository and removed docs labels May 23, 2024
@gouravkrosx
Copy link
Member Author

This is working:
Screenshot 2024-05-23 at 6 02 13 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation Improvements or additions to documentation Good First Issue Good for newcomers keploy Repo/@docs Issue Related to Keploy Documentation Repository
Projects
None yet
Development

No branches or pull requests

1 participant