Open heruan opened 9 years ago
I think you can achieve this by setting a custom VisitorContex
on the HyperSchemaFactoryWrapper
visitor.setVisitorContext( myCtx )
Thank you @edrik using a custom VisitorContext
solved half of a problem: now I can generate an id
with the full URI of the schema; but I always get the schema nested and not referenced with $ref
.
I have two classes:
Article
andUser
and their respective schemas are available at:Since
Article.author
is of typeUser
, how can I have the correct$ref
in the schema? Now I'm getting this:but I would expect something like:
This is the code I'm using to generate the schema: