cqframework / cqf-tooling

Tooling for CQL and IG Authors
Apache License 2.0
19 stars 22 forks source link

Position of xsi:type attribute in ModelInfo matters #401

Open brynrhodes opened 1 year ago

brynrhodes commented 1 year ago

For some reason I don't understand, the position of the xsi:type attribute in the XML ModelInfo matters:

https://github.com/cqframework/clinical_quality_language/commit/e0fd90ddcd4bf47b0218eddfeb54af9aa9e026e9

Fixup the ModelInfo serialization to produce XML that ensures that the type attribute is the first attribute listed in the ModelInfo.

vitorpamplona commented 1 year ago

It's a bug on Jackson's XML processing: https://github.com/FasterXML/jackson-dataformat-xml/issues/525

brynrhodes commented 1 year ago

I thought it might be something like that. And thank you for posting the regex fix in your commit, super helpful!

brynrhodes commented 1 year ago

I'll see if I can get the serializer to write it that way for a longer term fix.