Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

missing properties #217

Open
joneldiablo opened this issue Mar 28, 2019 · 1 comment
Open

missing properties #217

joneldiablo opened this issue Mar 28, 2019 · 1 comment

Comments

@joneldiablo
Copy link

joneldiablo commented Mar 28, 2019

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

java -jar jsonix-schema-compiler-full.jar schema.xsd -d jsonSchemas -p ddexV341 -generateJsonSchema

and have this 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

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

@joneldiablo
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant