-
Notifications
You must be signed in to change notification settings - Fork 45
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
Feature: Option to include data path in CLI output #46
Comments
Hi @Lakitna, do you still want to work on this? And, how can I help you? :) |
@torifat If you can point me to where I should probably start I can probably figure things out from there. |
You can refactor
Just a heads up, I'm converting the whole project to TypeScript: https://github.com/torifat/better-ajv-errors/tree/typescript. So, you welcome to make this change in either place. |
I looked at this today and got it working (see screenshot below). But right now without the option since there does not seem to be an existing way to pass options to that part of the code. Should I create a way to pass the option or just make this the default behaviour without a way to disable it? I prefer to make this default as it is useful information. Once we've made a decision I'll implement it and work on the tests. |
I was planning to make it a default behavior for v1 :) |
Some tests are failing and it seems to be unrelated to my changes. Can you make sense of errors like the one below? These tests already failed before I changed anything. It's probably an OS thing. I'm running Windows 10 and these tests don't fail on CI. Probably be a good idea to fix this if I can. Edit: Traced it back to |
If doesn't fail in CI then feel free to create the PR. I will follow up on the |
In that case, everything is done but the documentation. I've tried to update the screenshots, but that does not seem to work on Windows. Can you take care of that for me? |
Sure, I can do that :) |
Just a heads up that this is ready for merge after the screenshot update as far as I'm concerned. |
Version Packages
Data paths are great when working with big, repeating or complex responses, but at the moment these paths are not included in the CLI output. It would also be very useful if you don't have the
indent
option set.I'd like to have an option to enable data path output in the CLI mode. It might look something like.
And sure, the example above is a really extreme example, and if your API looks like this you have bigger problems. But these things exist in the wild, so I'd like to at least be able to test them with some ease. This feature would contribute to this.
I'm willing to implement this myself if someone can tell me where to start :)
The text was updated successfully, but these errors were encountered: