-
Notifications
You must be signed in to change notification settings - Fork 0
refactor: 🚚 rename target and location to jsonpath
#89
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
refactor: 🚚 rename target and location to jsonpath
#89
Conversation
martonvago
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, just very minor comments!
The 2 cons I can think of about calling it field:
- Doesn't express clearly that it has to be in JSON path notation
- One JSON path can correspond to multiple fields (e.g. you can target the
nameof all resources or all properties of a particular resource). Maybe this is not captured by justfield?
docs/guide/config.qmd
Outdated
| express the location of the field or fields in [JSON | ||
| path](https://en.wikipedia.org/wiki/JSONPath) notation and define an | ||
| `Exclude` object with this `target`. For example, you can exclude all | ||
| `Exclude` object with the `jsonpath`. For example, you can exclude all |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| `Exclude` object with the `jsonpath`. For example, you can exclude all | |
| `Exclude` object with this `jsonpath`. For example, you can exclude all |
This sounds better to me, but 🤷
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've rewritten the sentence a bit now. Let me know what you think.
It's used now, so doesn't need to be included here.
lwjohnst86
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉 Nice! I'll update my PR after merging this 😁
# Description Based on a comment in #89 that this needs to be updated. Needs a quick review. ## Checklist - [X] Ran `just run-all`
Description
Closes #88
Needs an in-depth review.
Afterthought: Could we call "jsonpath" "field" instead to make it even simpler? Bc it's a JSON path to a specific field?
Checklist
just run-all