-
Notifications
You must be signed in to change notification settings - Fork 35
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
Allow refPointerSuffix #42
Comments
Hi! Not sure if I totally grasp your use case here, but do you think it'd be solvable with JSON Schema's I'd be happy to review a PR for refPointerSuffix too if that's easier. |
It seems the |
Alright, looks like |
Thinking about it a bit more, there are two other ways to solve this:
|
Hi there! I'm using class-validator-jsonschema to create multiple
.schema.json
files for creating schemas and then other libraries to dereference the schemas and build markdown documentation. The dereferencing only works with a bit of a hack, though: With the defaultrefPointerPrefix
of#/definitions/
the schemas cannot be dereferenced, as class-validator-jsonschema doesn't really put them in#/definitions/
. Instead I now create the schemas as individual files, userefPointerPrefix
as./
and manually add.schema.json
as a suffic to all#ref
s so the dereferencer can find the files.It would be great to either have a
refPointerSuffix
option to add.schema.json
to all#ref
s, or some guidance on what the preferred way is to link the schemas together and dereference them correctly.The text was updated successfully, but these errors were encountered: