Skip to content

(ADO-3390) addFields applied to dictionary and XML#113

Merged
bzimonjaSDPR merged 1 commit into
devfrom
ADO-3390-add-fields-dictionary
Sep 26, 2025
Merged

(ADO-3390) addFields applied to dictionary and XML#113
bzimonjaSDPR merged 1 commit into
devfrom
ADO-3390-add-fields-dictionary

Conversation

@NicolaSDPR1
Copy link
Copy Markdown
Collaborator

What changes did you make?

Dictionary now supports addFields. This means empty fields can now be added to the JSON in order to appear in the XML after conversion.

Fix where Kiln version was only giving results in XML for V2 instead of both v1 and v2.

CF2900 has wrapper tags and add fields applied to it in dictionary.

Why did you make these changes?

Some forms require the XML to include empty field tags. In order to do this, the JSON needs to have required key-value pairs as "field name": null. This update fulfils this requirement for up to 6 levels deep into an object's key-value pairs.

CF2900 was done to assist with testing the XML.

What alternatives did you consider?

The solution for this has the potential to work as a recursive function. It remains up to 6-levels rather than be made recursive in order to start testing for additional values.

NOTE: licensed-group-b650d0a6-2871-433c-9a2b-9e80a2f7c9a8 appears twice in CF2900 wrapper tags. It will display as the second one in XML (i.e. the key-pair with value 2).

Checklist

  • I have assigned at least one reviewer
  • My code meets the style guide
  • My code has adequate test coverage (if applicable)

@bzimonjaSDPR bzimonjaSDPR merged commit 0bd687f into dev Sep 26, 2025
3 checks passed
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

Successfully merging this pull request may close these issues.

2 participants