Skip to content

Commit

Permalink
Issue #22. JSON Schema support.
Browse files Browse the repository at this point in the history
  • Loading branch information
highsource committed May 2, 2015
1 parent d06dccc commit 188fa8b
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ public class JsonixJsonSchemaConstants {
private JsonixJsonSchemaConstants() {
}

public static final String JSONIX_BASE_URI = "http://highsource.github.io/jsonix";
public static final String JSONIX_BASE_URI = "http://www.jsonix.org";
public static final String JSONIX_JSONSCHEMAS_BASE_URI = JSONIX_BASE_URI
+ "/jsonschemas";

Expand Down
4 changes: 2 additions & 2 deletions demos/po-npm/bindings/bindings.xjb
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
</jaxb:schemaBindings>

<jsonix:module name="PurchaseOrder">
<jsonix:mapping name="PO" package="org.hisrc.jsonix.demos.po" schemaId="https://cdn.rawgit.com/highsource/jsonix-schema-compiler/master/demos/po-npm/mappings/PurchaseOrder.jsonschema#"/>
<jsonix:mapping name="PO" package="org.hisrc.jsonix.demos.po" schemaId="PurchaseOrder.jsonschema#"/>
<jsonix:output naming="standard" fileName="${module.name}.standard.js"/>
<jsonix:output naming="compact" fileName="${module.name}.compact.js"/>
<jsonix:jsonSchema fileName="${module.name}.jsonschema"/>
<jsonix:jsonSchema/>
</jsonix:module>
</jaxb:bindings>

Expand Down
2 changes: 1 addition & 1 deletion demos/po-npm/mappings/PurchaseOrder.jsonschema
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

{
"id":"https://cdn.rawgit.com/highsource/jsonix-schema-compiler/master/demos/po-npm/mappings/PurchaseOrder.jsonschema#",
"id":"PurchaseOrder.jsonschema#",
"definitions":{
"Items.Item":{
"type":"object",
Expand Down
3 changes: 2 additions & 1 deletion npm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"marshalling", "parse", "parsing", "serialize", "serializing",
"javascript objects", "dom", "util", "utility", "jaxb",
"jsonix", "jsonix-schema-compiler",
"xs", "xsd", "xml schema", "wsdl", "dtd", "relax ng", "relaxng", "relax ng compact", "relaxng compact"
"xs", "xsd", "xml schema", "wsdl", "dtd", "relax ng", "relaxng", "relax ng compact", "relaxng compact",
"jsonschema", "json schema"
],
"homepage" : "https://github.com/highsource/jsonix-schema-compiler",
"bugs" : {
Expand Down
3 changes: 2 additions & 1 deletion npm/src/main/npm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"marshalling", "parse", "parsing", "serialize", "serializing",
"javascript objects", "dom", "util", "utility", "jaxb",
"jsonix", "jsonix-schema-compiler",
"xs", "xsd", "xml schema", "wsdl", "dtd", "relax ng", "relaxng", "relax ng compact", "relaxng compact"
"xs", "xsd", "xml schema", "wsdl", "dtd", "relax ng", "relaxng", "relax ng compact", "relaxng compact",
"jsonschema", "json schema"
],
"homepage" : "https://github.com/highsource/jsonix-schema-compiler",
"bugs" : {
Expand Down

0 comments on commit 188fa8b

Please sign in to comment.