Skip to content

Allow "/" in non-JSON-pointer identifiers #23

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

Merged
merged 2 commits into from
Aug 17, 2021
Merged

Allow "/" in non-JSON-pointer identifiers #23

merged 2 commits into from
Aug 17, 2021

Conversation

mitchellh
Copy link
Contributor

This allows for the "/" character in identifiers in the non-JSON-pointer use case. Given a map "foo/bar" = "hello" for example, the following boolean expression is now valid: foo/bar == hello. We use "/" heavily in Waypoint as a namespacing tool for labels so we'd like this.

The only concern I had was any interaction with JSON pointer, since that uses / as a separator. But we key JSON pointer based on if the identifier starts with /, and JSON pointer provides its own mechanism to escape /, so its unaffected.

@mitchellh mitchellh requested review from jefferai and mkeeler August 17, 2021 20:18
@mitchellh mitchellh merged commit b515551 into main Aug 17, 2021
@mitchellh mitchellh deleted the forwardslash branch August 17, 2021 21:34
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

Successfully merging this pull request may close these issues.

3 participants