Running mvn verify
fails because first.json
references second.json
. second.json
was not copied to the plugin's temp space by the Context
class like the other JSON schema(s).
Adding second.json
to the schemas
section of the RAML file ensures that the file is copied to temp space. This is not desired because it is hard to keep track of all JSON schemas recusively.
- Not using temp space and temp files. Inline schema definitions in the RAML should be handled by reference instead of using their already included contents.
- Let the
Context
class analyze recursive JSON schemas wrt to the source directory. - Just copy all
*.json
files from source to temp space rather than only the ones referenced in the RAML.