$ref and $value should be the last path segment, but now it is not enforce.
Should consider enforcing this.
e.g.:
an attempt to cast after $ref will parse, and a path such as ```.../{property}/$value/$value``` will also incorrectly parse without error.
Comments: Stop before moving past $ref or $value. Or return null when matching $ref or $value if there is a next segment. Consider whether this should be fixed for CTP release.
Should consider enforcing this.
e.g.:
an attempt to cast after $ref will parse, and a path such as ```.../{property}/$value/$value``` will also incorrectly parse without error.
Comments: Stop before moving past $ref or $value. Or return null when matching $ref or $value if there is a next segment. Consider whether this should be fixed for CTP release.