Details
-
Bug
-
Resolution: Unresolved
-
High
-
None
-
None
-
None
Description
After executing the command xjc -nv <path/to/XSD-files> to create classes out of the XSD files (https://github.com/ezsystems/ezpublish-kernel/tree/master/doc/specifications/rest/xsd), the following errors appear:
- ContentCreate.xsd
- line 9: locationCreateType is unknown --> using vnd.ez.api.LocationCreate and including LocationCreate.xsd solves it
- Content.xsd
- line 10: versionType is unknown --> using vnd.ez.api.Version solves it
- UserGroup.xsd
- line 10: contentInfoType is unknown --> using vnd.ez.api.ContentInfo solves it
- User.xsd
- line 10: contentInfoType is unknown --> using vnd.ez.api.ContentInfo solves it
- Version.xsd
- line 32: vnd.ez.api.Relation is unknown --> using relationType solves it
Seems that the namespace was changed.
- ErrorMessage.xsd
- line 18: xsd:attribute is wrong here --> should be pushed to line 35 at the end of xsd:complexType, after the xsd:all
- FieldValue.xsd
- line 10: valueType is already defined
- CommonDefinitions.xsd
- line 31: (related to above error) the first definition appears here
- FieldValue.xsd
- line 15: fieldValueType is already defined
- CommonDefinitions.xsd
- line 38: (related to above error) the first definition appears here
- ObjectRelation.xsd
- line 6: relationListType is already defined
- Relation.xsd
- line 29: (related to above error) the first definition appears here
- FieldDefinitionUpdate.xsd
- line 84: FieldDefinitionInput is already defined
- FieldDefinitionCreate.xsd
- line 95: (related to above error) the first definition appears here