highsource / highsource/jsonix

missing properties

Open
#217 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
369
Forks
85
PR merge metrics
No merged PRs in 30d

Description

Hi again, I have create the jsonix schema with this command:

```cmd
java -jar jsonix-schema-compiler-full.jar schema.xsd -d jsonSchemas -p ddexV341 -generateJsonSchema
```
and have this json:
```json
{
"name": {
"namespaceURI": "http://ddex.net/xml/ern/37",
"localPart": "NewReleaseMessage",
"prefix": "ern"
},
"value": {
"resourceList": {
"soundRecording": [{
"soundRecordingDetailsByTerritory": [
{
"technicalSoundRecordingDetails": [
{
"file": [
{
"fileName": "782150651416_1_01.wav",
"filePath": "resources/",
"hashSum": {
"hashSum": "8365682821f1c5553fdf1a1f58b597db",
"hashSumAlgorithmType": "MD5"
}
}
]
}
]
}
]
}]
}
}
}
```

then

```js
let context = new Jsonix.Context([schema]);
let marshaller = context.createMarshaller();
let xml = marshaller.marshalDocument(data);
```
the problem is soundRecordingDetailsByTerritory is empty, checking the jsonix schema, the last property is technicalSoundRecordingDetails, but checking the jsonschema generated, soundRecordingDetailsByTerritory hasn't technicalSoundRecordingDetails property

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.