Skip to content

Commit

Permalink
fixes #45 Move schema.json to resources folder from resources/config …
Browse files Browse the repository at this point in the history
…folder for light-hybrid-4j service
  • Loading branch information
stevehu committed Jun 10, 2017
1 parent 4cc6cb3 commit ff31e20
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,6 @@ public void generate(String targetPath, Object model, Any config) throws IOExcep
Files.createDirectories(Paths.get(targetPath, ("src.main.resources.config").replace(".", separator)));
}
// write the generated schema into the config folder for schema validation.
JsonStream.serialize(services, new FileOutputStream(FileSystems.getDefault().getPath(targetPath, ("src.main.resources.config").replace(".", separator), "schema.json").toFile()));
JsonStream.serialize(services, new FileOutputStream(FileSystems.getDefault().getPath(targetPath, ("src.main.resources").replace(".", separator), "schema.json").toFile()));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,6 @@
<artifactId>rpc-security</artifactId>
<version>${version.light-hybrid-4j}</version>
</dependency>
<dependency>
<groupId>com.networknt</groupId>
<artifactId>json-schema-validator</artifactId>
<version>${version.json-schema-validator}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
Expand Down

0 comments on commit ff31e20

Please sign in to comment.