Skip to content
This repository has been archived by the owner on Dec 30, 2023. It is now read-only.

JAXRS generator bug w/ relative JSON schema references.

Notifications You must be signed in to change notification settings

zivver/raml-for-jax-rs-maven-plugin-bug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bugreport for raml-jaxrs-maven-plugin

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).

Workaround

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.

Possible solutions

  • 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.

About

JAXRS generator bug w/ relative JSON schema references.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published