Open joneldiablo opened 5 years ago
Please provide a MCVE.
I've tried your schema and your XML file. Worked OOTB from the start:
https://github.com/highsource/jsonix-support/tree/master/f/fugamusic
This is what your XML looks like in JSON:
{
"name": {
"namespaceURI": "",
"localPart": "ingestion",
"prefix": "",
"key": "ingestion",
"string": "ingestion"
},
"value": {
"TYPE_NAME": "ING.Ingestion",
"action": "INSERT",
"album": {
"TYPE_NAME": "ING.Ingestion.Album",
"albumNotes": "Music by: Heath Whitelock\n http://www.heathwhitelock.com/",
"supplier": "Armada",
"cLineText": "Copyright",
"cLineYear": 2008,
"catalogNumber": "LABELONE1",
"catalogTier": "FRONT",
"coverArt": {
"TYPE_NAME": "ING.Ingestion.Album.CoverArt",
"image": {
"TYPE_NAME": "ING.Ingestion.Album.CoverArt.Image",
"file": {
"TYPE_NAME": "ING.FileType",
"name": "1234567890136.jpg",
"crc32Checksum": "3715643725",
"size": 359375
}
}
},
"consumerReleaseDate": {
"year": 2006,
"month": 1,
"day": 1,
"hour": null,
"minute": null,
"second": null,
"fractionalSecond": null,
"timezone": null,
"date": "2006-01-01T00:00:00.000Z"
},
"mainGenre": "Rock",
"alternateSubgenre": "Boogie",
"mainSubgenre": "Boogie",
"label": "Cortez Records",
"language": "IT",
"name": "Peace, Love, Death Metal",
"pLineText": "Copyright",
"pLineYear": 2009,
"parentalAdvisory": "false",
"pricings": {
"TYPE_NAME": "ING.Ingestion.Album.Pricings",
"pricing": [
{
"TYPE_NAME": "ING.PricingType",
"organization": {
"TYPE_NAME": "ING.OrganizationType",
"name": "Amazon"
},
"territory": "DE",
"tier": "FRONTLINE",
"price": 9.99
}
]
},
"pricingIntervals": {
"TYPE_NAME": "ING.Ingestion.Album.PricingIntervals",
"pricingInterval": [
{
"TYPE_NAME": "ING.PricingIntervalType",
"organization": {
"TYPE_NAME": "ING.OrganizationType",
"name": "Clubload"
},
"territory": "WORLD",
"tier": "Mini EP",
"startDate": {
"year": 2013,
"month": 4,
"day": 4,
"hour": null,
"minute": null,
"second": null,
"fractionalSecond": null,
"timezone": null,
"date": "2013-04-04T00:00:00.000Z"
}
}
]
},
"primaryArtist": {
"TYPE_NAME": "ING.PrimaryArtist",
"biography": "After the Eagles of Death Metal first album was crowned the greatest boogie record of all time by rockers worldwide, no one knew just how the hell they could top it. But what were they thinking? The dream boys always bring da neck-licking, boot-scooting, soul-scratching, ass-shaking party tunes that never disappoint. This & that.",
"name": "Eagles of Death Metal",
"website": "http://www.Eagles-of-Death-Metal.com",
"artistIdentifiers": {
"TYPE_NAME": "ING.ArtistIdentifiers",
"artistIdentifier": [
{
"TYPE_NAME": "ING.ArtistIdentifiers.ArtistIdentifier",
"identifier": {
"TYPE_NAME": "AnyType",
"content": [
"1234"
]
},
"issuingOrganization": {
"TYPE_NAME": "AnyType",
"content": [
"iTunes"
]
}
},
{
"TYPE_NAME": "ING.ArtistIdentifiers.ArtistIdentifier",
"identifier": {
"TYPE_NAME": "AnyType",
"content": [
"5678"
]
},
"issuingOrganization": {
"TYPE_NAME": "AnyType",
"content": [
"Spotify"
]
}
}
]
}
},
"additionalArtists": {
"TYPE_NAME": "ING.Ingestion.Album.AdditionalArtists",
"artist": [
{
"TYPE_NAME": "ING.Artist",
"name": "Vultures of Death Metal",
"website": "http://www.Vultures-of-Death-Metal.com",
"primaryArtist": true,
"artistIdentifiers": {
"TYPE_NAME": "ING.ArtistIdentifiers",
"artistIdentifier": [
{
"TYPE_NAME": "ING.ArtistIdentifiers.ArtistIdentifier",
"identifier": {
"TYPE_NAME": "AnyType",
"content": [
"9286492"
]
},
"issuingOrganization": {
"TYPE_NAME": "AnyType",
"content": [
"iTunes"
]
}
},
{
"TYPE_NAME": "ING.ArtistIdentifiers.ArtistIdentifier",
"identifier": {
"TYPE_NAME": "AnyType",
"content": [
"9878388"
]
},
"issuingOrganization": {
"TYPE_NAME": "AnyType",
"content": [
"Spotify"
]
}
}
]
}
},
{
"TYPE_NAME": "ING.Artist",
"name": "Mega Mondo",
"website": "http://www.mega-mondo.com",
"primaryArtist": false,
"artistIdentifiers": {
"TYPE_NAME": "ING.ArtistIdentifiers",
"artistIdentifier": [
{
"TYPE_NAME": "ING.ArtistIdentifiers.ArtistIdentifier",
"identifier": {
"TYPE_NAME": "AnyType",
"content": [
"898363"
]
},
"issuingOrganization": {
"TYPE_NAME": "AnyType",
"content": [
"iTunes"
]
}
},
{
"TYPE_NAME": "ING.ArtistIdentifiers.ArtistIdentifier",
"identifier": {
"TYPE_NAME": "AnyType",
"content": [
"2986"
]
},
"issuingOrganization": {
"TYPE_NAME": "AnyType",
"content": [
"Spotify"
]
}
}
]
}
}
]
},
"recordingYear": 2004,
"recordingLocation": "Palm Springs, California",
"releaseFormatType": "ALBUM",
"totalDiscs": 1,
"territories": {
"TYPE_NAME": "ING.Ingestion.Album.Territories",
"territory": [
"DZ",
"AO",
"GB"
]
},
"translations": {
"TYPE_NAME": "ING.Translations",
"translation": [
{
"TYPE_NAME": "ING.Translation",
"fieldName": "name",
"lang": "RU",
"value": "Russian name"
},
{
"TYPE_NAME": "ING.Translation",
"fieldName": "version",
"lang": "RU",
"value": "Russian version"
}
]
},
"tracks": {
"TYPE_NAME": "ING.Ingestion.Album.Tracks",
"trackOrClassicalTrackOrVideo": [
{
"TYPE_NAME": "ING.Ingestion.Album.Tracks.Track",
"allowPreorderPreview": false,
"mainGenre": "Rock",
"alternateSubgenre": "Boogie",
"mainSubgenre": "Boogie",
"availableSeparately": false,
"contributors": {
"TYPE_NAME": "ING.Ingestion.Album.Tracks.Track.Contributors",
"contributor": [
{
"TYPE_NAME": "ING.Contributor",
"name": "Joshua Homme",
"role": "Arranger"
},
{
"TYPE_NAME": "ING.Contributor",
"name": "Scout Niblett",
"role": "Arranger"
}
]
},
"pLineText": "Copyright",
"pLineYear": 2009,
"catalogTier": "FRONT",
"resources": {
"TYPE_NAME": "ING.Resources",
"audio": [
{
"TYPE_NAME": "ING.Resources.Audio",
"file": {
"TYPE_NAME": "ING.FileType",
"name": "1234567890136_1_01.wav",
"crc32Checksum": "4017732434",
"size": 3889280
}
}
]
},
"isrcCode": "NLFUG0710000",
"language": "EN",
"audioLocale": "EN",
"lyrics": "I'm gon' set my soul on fire. My heart beats low while the flames go higher. Strike the match and then the truth is told.",
"name": "Flames go Higher",
"onDisc": 1,
"preorderType": "STANDARD",
"parentalAdvisory": "clean",
"previewLength": 30,
"previewStart": 10,
"primaryArtist": {
"TYPE_NAME": "ING.PrimaryArtist",
"biography": "After the Eagles of Death Metal first album was crowned the greatest boogie record of all time by rockers worldwide, no one knew just how the hell they could top it. But what were they thinking? The dream boys always bring da neck-licking, boot-scooting, soul-scratching, ass-shaking party tunes that never disappoint.",
"name": "Eagles of Death Metal",
"website": "http://www.Eagles-of-Death-Metal.com"
},
"publishers": {
"TYPE_NAME": "ING.Ingestion.Album.Tracks.Track.Publishers",
"publisher": [
{
"TYPE_NAME": "ING.Publisher",
"publisherName": "Sunshine Records",
"writerName": "Billy Johnson"
},
{
"TYPE_NAME": "ING.Publisher",
"publisherName": "The Publishing House Ltd.",
"writerName": "Jesse Hughes"
}
]
},
"recordingYear": 2004,
"recordingLocation": "Palm Springs, California",
"sequenceNumber": 1,
"trackNotes": "think about this",
"trackVersion": "track version",
"usageRights": {
"TYPE_NAME": "ING.Ingestion.Album.Tracks.Track.UsageRights",
"usageRight": [
{
"TYPE_NAME": "ING.UsageRightType",
"rights": {
"TYPE_NAME": "ING.UsageRightType.Rights",
"right": [
"Subscription streaming",
"Ad supported streaming",
"Burn CD"
]
}
},
{
"TYPE_NAME": "ING.UsageRightType",
"organization": {
"TYPE_NAME": "ING.OrganizationType",
"name": "Clubload"
},
"rights": {
"TYPE_NAME": "ING.UsageRightType.Rights",
"right": [
"Subscription streaming"
]
}
}
]
},
"translations": {
"TYPE_NAME": "ING.Translations",
"translation": [
{
"TYPE_NAME": "ING.Translation",
"fieldName": "name",
"lang": "ES",
"value": "Track name in spanish"
},
{
"TYPE_NAME": "ING.Translation",
"fieldName": "name",
"lang": "FR",
"value": "Track name in french"
},
{
"TYPE_NAME": "ING.Translation",
"fieldName": "version",
"lang": "FR",
"value": "Track version in french"
}
]
}
},
{
"TYPE_NAME": "ING.Ingestion.Album.Tracks.Track",
"mainGenre": "Rock",
"alternateSubgenre": "Boogie",
"mainSubgenre": "Boogie",
"availableSeparately": false,
"contributors": {
"TYPE_NAME": "ING.Ingestion.Album.Tracks.Track.Contributors",
"contributor": [
{
"TYPE_NAME": "ING.Contributor",
"name": "Joshua Homme",
"role": "Arranger"
},
{
"TYPE_NAME": "ING.Contributor",
"name": "Scout Niblett",
"role": "Arranger"
}
]
},
"resources": {
"TYPE_NAME": "ING.Resources",
"audio": [
{
"TYPE_NAME": "ING.Resources.Audio",
"file": {
"TYPE_NAME": "ING.FileType",
"name": "1234567890136_1_02.wav",
"crc32Checksum": "2380662033",
"size": 3889280
}
}
]
},
"isrcCode": "NLFUG0710001",
"language": "NL",
"audioLocale": "NL",
"lyrics": "Who'll love the devil? Who'll song his song? Who will love the devil and his song? I'll love the devil!",
"name": "Kiss the Devil",
"onDisc": 1,
"parentalAdvisory": "false",
"previewLength": 30,
"previewStart": 10,
"primaryArtist": {
"TYPE_NAME": "ING.PrimaryArtist",
"biography": "After the Eagles of Death Metal first album was crowned the greatest boogie record of all time by rockers worldwide, no one knew just how the hell they could top it. But what were they thinking? The dream boys always bring da neck-licking, boot-scooting, soul-scratching, ass-shaking party tunes that never disappoint.",
"name": "Eagles of Death Metal",
"website": "http://www.Eagles-of-Death-Metal.com"
},
"publishers": {
"TYPE_NAME": "ING.Ingestion.Album.Tracks.Track.Publishers",
"publisher": [
{
"TYPE_NAME": "ING.Publisher",
"publisherName": "The Publishing House Ltd.",
"writerName": "Jesse Hughes"
}
]
},
"recordingYear": 2004,
"recordingLocation": "Palm Springs, California",
"sequenceNumber": 2,
"trackNotes": "think about this",
"trackVersion": ""
},
{
"TYPE_NAME": "ING.Ingestion.Album.Tracks.ClassicalTrack",
"alternateSubgenre": "Boogie",
"mainSubgenre": "Boogie",
"availableSeparately": false,
"contributors": {
"TYPE_NAME": "ING.Ingestion.Album.Tracks.ClassicalTrack.Contributors",
"contributor": [
{
"TYPE_NAME": "ING.Contributor",
"name": "Joshua Homme",
"role": "Arranger"
},
{
"TYPE_NAME": "ING.Contributor",
"name": "Scout Niblett",
"role": "Arranger"
}
]
},
"resources": {
"TYPE_NAME": "ING.Resources",
"audio": [
{
"TYPE_NAME": "ING.Resources.Audio",
"file": {
"TYPE_NAME": "ING.FileType",
"name": "1234567890136_1_02.wav",
"crc32Checksum": "2380662033",
"size": 3889280
}
}
]
},
"isrcCode": "NLFUG0710001",
"language": "IT",
"audioLocale": "IT",
"lyrics": "Who'll love the devil? Who'll song his song? Who will love the devil and his song? I'll love the devil!",
"movement": "Meijer Movement I",
"onDisc": 1,
"parentalAdvisory": "false",
"previewLength": 30,
"previewStart": 10,
"primaryArtist": {
"TYPE_NAME": "ING.PrimaryArtist",
"biography": "After the Eagles of Death Metal first album was crowned the greatest boogie record of all time by rockers worldwide, no one knew just how the hell they could top it. But what were they thinking? The dream boys always bring da neck-licking, boot-scooting, soul-scratching, ass-shaking party tunes that never disappoint.",
"name": "Eagles of Death Metal",
"website": "http://www.Eagles-of-Death-Metal.com"
},
"publishers": {
"TYPE_NAME": "ING.Ingestion.Album.Tracks.ClassicalTrack.Publishers",
"publisher": [
{
"TYPE_NAME": "ING.Publisher",
"publisherName": "The Publishing House Ltd.",
"writerName": "Jesse Hughes"
}
]
},
"recordingYear": 2004,
"recordingLocation": "Palm Springs, California",
"sequenceNumber": 3,
"trackNotes": "think about this",
"trackVersion": "",
"work": {
"TYPE_NAME": "ING.Ingestion.Album.Tracks.ClassicalTrack.Work",
"name": "Metal Sonata in C#"
},
"classicalCatalog": "",
"key": "A_MAJOR",
"alwaysSendDisplayTitle": true
},
{
"TYPE_NAME": "ING.Ingestion.Album.Tracks.Video",
"name": "Kiss the Devil Music Video",
"isrcCode": "NLFUG0710002",
"mainGenre": "Rock",
"primaryArtist": {
"TYPE_NAME": "ING.PrimaryArtist",
"biography": "After the Eagles of Death Metal first album was crowned the greatest boogie record of all time by rockers worldwide, no one knew just how the hell they could top it. But what were they thinking? The dream boys always bring da neck-licking, boot-scooting, soul-scratching, ass-shaking party tunes that never disappoint. This & that.",
"name": "Eagles of Death Metal",
"website": "http://www.Eagles-of-Death-Metal.com"
},
"additionalArtists": {
"TYPE_NAME": "ING.Ingestion.Album.Tracks.Video.AdditionalArtists",
"artist": [
{
"TYPE_NAME": "ING.Artist",
"name": "Vultures of Death Metal",
"website": "http://www.Vultures-of-Death-Metal.com",
"primaryArtist": true
},
{
"TYPE_NAME": "ING.Artist",
"name": "Mega Mondo",
"website": "http://www.mega-mondo.com",
"primaryArtist": false
}
]
},
"contributors": {
"TYPE_NAME": "ING.Ingestion.Album.Tracks.Video.Contributors",
"contributor": [
{
"TYPE_NAME": "ING.Contributor",
"name": "Joshua Homme",
"role": "Arranger"
}
]
},
"publishers": {
"TYPE_NAME": "ING.Ingestion.Album.Tracks.Video.Publishers",
"publisher": [
{
"TYPE_NAME": "ING.Publisher",
"publisherName": "Sunshine Records",
"writerName": "Billy Johnson"
}
]
},
"sequenceNumber": 4,
"audioLocale": "NL",
"videoVersion": "Director's cut",
"catalogTier": "FRONT",
"onDisc": 1,
"availableSeparately": false,
"parentalAdvisory": "false",
"previewLength": 30,
"previewStart": 10,
"preorderType": "STANDARD",
"allowPreorderPreview": false,
"recordingYear": 2015,
"recordingLocation": "Palm Springs, California",
"resources": {
"TYPE_NAME": "ING.Ingestion.Album.Tracks.Video.Resources",
"video": {
"TYPE_NAME": "ING.Ingestion.Album.Tracks.Video.Resources.Video",
"file": {
"TYPE_NAME": "ING.FileType",
"name": "1234567890136_04.m4v",
"crc32Checksum": "238432432",
"size": 42332423
}
},
"videoPreviewImage": {
"TYPE_NAME": "ING.Ingestion.Album.Tracks.Video.Resources.VideoPreviewImage",
"file": {
"TYPE_NAME": "ING.FileType",
"name": "1234567890136_04.jpg",
"crc32Checksum": "3715643725",
"size": 359375
}
}
},
"submitItunesVideoEncoding": true
}
]
},
"upcCode": "1234567890136",
"schedule": {
"TYPE_NAME": "ING.Schedule",
"consumerReleaseDate": {
"year": 2011,
"month": 6,
"day": 3,
"hour": null,
"minute": null,
"second": null,
"fractionalSecond": null,
"timezone": null,
"date": "2011-06-03T00:00:00.000Z"
},
"deliverByDefault": true,
"activate": true,
"deliveries": {
"TYPE_NAME": "ING.Schedule.Deliveries",
"delivery": [
{
"TYPE_NAME": "ING.Schedule.Deliveries.Delivery",
"organization": {
"TYPE_NAME": "ING.OrganizationType",
"id": 300
}
},
{
"TYPE_NAME": "ING.Schedule.Deliveries.Delivery",
"organization": {
"TYPE_NAME": "ING.OrganizationType",
"name": "Clubload"
},
"leadTime": "ONE_WEEK",
"consumerReleaseDate": {
"year": 2011,
"month": 6,
"day": 6,
"hour": null,
"minute": null,
"second": null,
"fractionalSecond": null,
"timezone": null,
"date": "2011-06-06T00:00:00.000Z"
}
}
]
},
"exclusions": {
"TYPE_NAME": "ING.Schedule.Exclusions",
"exclusion": [
{
"TYPE_NAME": "ING.Schedule.Exclusions.Exclusion",
"organization": {
"TYPE_NAME": "ING.OrganizationType",
"name": "eMusic"
}
}
]
},
"territoryReleaseDates": {
"TYPE_NAME": "ING.Schedule.TerritoryReleaseDates",
"territoryReleaseDate": [
{
"TYPE_NAME": "ING.TerritoryReleaseDateType",
"territoryGroup": "Europe",
"releaseDate": {
"year": 2013,
"month": 4,
"day": 4,
"hour": null,
"minute": null,
"second": null,
"fractionalSecond": null,
"timezone": null,
"date": "2013-04-04T00:00:00.000Z"
},
"preorderDate": {
"year": 2013,
"month": 3,
"day": 23,
"hour": null,
"minute": null,
"second": null,
"fractionalSecond": null,
"timezone": null,
"date": "2013-03-23T00:00:00.000Z"
}
}
]
}
},
"usageRights": {
"TYPE_NAME": "ING.Ingestion.Album.UsageRights",
"usageRight": [
{
"TYPE_NAME": "ING.UsageRightType",
"rights": {
"TYPE_NAME": "ING.UsageRightType.Rights",
"right": [
"Subscription streaming",
"Ad supported streaming",
"Subscription download",
"Permanent download",
"User generated audio",
"User generated video",
"User generated ringtone",
"Burn CD"
]
}
},
{
"TYPE_NAME": "ING.UsageRightType",
"organization": {
"TYPE_NAME": "ING.OrganizationType",
"name": "Clubload"
},
"rights": {
"TYPE_NAME": "ING.UsageRightType.Rights",
"right": [
"Subscription streaming"
]
}
}
]
}
}
}
}
sorry but I'm lost too, this is my xsd: http://fugamusic.com/docs/ingestion/ingestion.xsd and this is the xml example: https://fugamusic.com/docs/ingestion/ingestion.xml I having this error