Skip to content

Bug: uri-reference in root $id results in incorrect reference resolution #87

Closed
@jrhok

Description

@jrhok

Is there an existing issue for this?

  • I have searched the existing issues

Question

Hello,

We are currently trying to use your library with KMM in order to validate multiple JSON schemas which use references ($ref), see the following example.

foo.json
request.json

But we did not manage to use absolute path "/myproject/enums/foo" nor relative paths "enums/foo"

We ended up using myproject://enums/foo for the ids and refs, which is working fine but does not look like the best / appropriate solution.

We wanted to check with you if it might be a bug in the library or if we are misunderstanding the JSON Schema references/id usage ?

Library version

0.0.10

Anything else?

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

Status

✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions