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

doc: JSONPointable and JSONSetable are ambiguous #6

Open
dolmen opened this issue Jan 28, 2021 · 0 comments
Open

doc: JSONPointable and JSONSetable are ambiguous #6

dolmen opened this issue Jan 28, 2021 · 0 comments
Labels

Comments

@dolmen
Copy link

dolmen commented Jan 28, 2021

The documentation for interfaces JSONPointable and JSONSetable doesn't mention how the argument to methods JSONLookup and JSONSet must be interpreted. As the pointable/setable value may be not just flat be instead structured, the documentation should tell if:

  • the value is just the raw (decoded) name of a property or an array index (JSONLookup must only go one single level deeper)
  • the value is itself the tail of a JSON Pointer
  • something else

This is important for implementation to choose how to interpret characters / and ~.

Example: https://play.golang.org/p/81-pIl7Vjwc

type X struct {
     Y struct {
        Z string
     }
}
@fredbi fredbi added the doc label Dec 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants