Is there a way to set, as schema definition, a DTO defined in a java DTO .class?
A reference needs to be a valid URI, so technically if your jar is accessible, it could work. However, it's unlikely that the different resolvers would be able to make sense of it. Of course, the expectation that the reference would lead to a JSON Schema, otherwise it's completely meaningless.
I found out that if you reference the class with quotes, it works
if MyPOJO is present in the proyect classpath, it works