Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

@ericszentivanyi
Copy link
Contributor

@ericszentivanyi ericszentivanyi commented Dec 20, 2025

The characters ~ and / have special meanings in JSON Pointer, so they must be encoded as ~0 and ~1, respectively. Previously, Typify did not handle decoding these properly. This PR implements decoding for ref_name, allowing these characters to be correctly unescaped.

See: https://github.com/GREsau/schemars/blob/ac0b65131d2c27017fee3e8b641cdfd6dac4f841/schemars/src/encoding.rs#L7

@ericszentivanyi ericszentivanyi changed the title feat: decode ref names feat: decode ref_name Dec 20, 2025
Copy link
Collaborator

@ahl ahl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent! Thanks for this. It seems like they only way one could hit this today would be if a property of the $defs object was named something like "foo/bar" -- did you hit this in schema in the wild?

@ahl ahl merged commit f0636f0 into oxidecomputer:main Dec 26, 2025
4 checks passed
@ericszentivanyi
Copy link
Contributor Author

Excellent! Thanks for this. It seems like they only way one could hit this today would be if a property of the $defs object was named something like "foo/bar" -- did you hit this in schema in the wild?

Yes, I was trying to use a JSON Schema generated by Effect, where "identifiers" are used for definition names, and these identifiers commonly include the name of the module separated by slashes.

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.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.