Skip to content

Commit

Permalink
Issue #67.
Browse files Browse the repository at this point in the history
  • Loading branch information
highsource committed Jul 17, 2016
1 parent 34907b3 commit e90b9cf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ private void addElementInfos(final JsonSchemaBuilder schema) {
new JsonSchemaBuilder().addAllOf(qNameRef).addAllOf(nameConstant));

elementInfoSchema.addProperty(JsonixConstants.VALUE_PROPERTY_NAME,
createTypeInfoSchemaRef(elementInfo, typeInfo));
getTypeInfoProducer(elementInfo, typeInfo).createTypeInfoSchemaRef(this));

elementInfoSchema.add(JsonixJsonSchemaConstants.ELEMENT_NAME_PROPERTY_NAME,
new JsonSchemaBuilder()
Expand All @@ -95,7 +95,7 @@ private void addElementInfos(final JsonSchemaBuilder schema) {
elementName.getNamespaceURI()));
if (scope != null) {
elementInfoSchema.add(JsonixJsonSchemaConstants.SCOPE_PROPERTY_NAME,
createTypeInfoSchemaRef(scope, scope));
getTypeInfoProducer(elementInfo, typeInfo).createTypeInfoSchemaRef(this));
}
schema.addAnyOf(elementInfoSchema);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ public JsonSchemaBuilder compile(JsonSchemaMappingCompiler<T, C> mappingCompiler
final MClassTypeInfo<T, C, ?> baseTypeInfo = classInfo.getBaseTypeInfo();
final JsonSchemaBuilder typeInfoSchema;
if (baseTypeInfo != null) {
final JsonSchemaBuilder baseTypeInfoSchema = mappingCompiler.createTypeInfoSchemaRef(baseTypeInfo,
baseTypeInfo);
final JsonSchemaBuilder baseTypeInfoSchema = mappingCompiler.getTypeInfoProducer(baseTypeInfo, baseTypeInfo)
.createTypeInfoSchemaRef(mappingCompiler);
typeInfoSchema = new JsonSchemaBuilder();
typeInfoSchema.addAllOf(baseTypeInfoSchema);
typeInfoSchema.addAllOf(classInfoSchema);
Expand Down

0 comments on commit e90b9cf

Please sign in to comment.