Skip to content

Conversation

BerkeKaragoz
Copy link

@BerkeKaragoz BerkeKaragoz commented Dec 29, 2023

What

Adds some extra string to MissingPointerError and InvalidPointerError. But only gets used on one place. Which is when the token is not found.

- Expected + Received Token "foo" does not exist. + + In the following schema: null + 

or

- Expected + Received Token "components" does not exist. + + In the following schema: { + type: "string", ... 

Why

I ended up with an issue where my refs could not get resolved and throwed out an error. However I got mislead and spent some time approaching the problem from the wrong direction.

The problem was completely my fault. However if I saw on which context it tried to resolve refs, I would've found the issue instantly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant