Skip to content

Update TemplateArchiveProcessor.test.ts#82

Open
Aayush-kumar-ctrl wants to merge 1 commit intoaccordproject:mainfrom
Aayush-kumar-ctrl:patch-2
Open

Update TemplateArchiveProcessor.test.ts#82
Aayush-kumar-ctrl wants to merge 1 commit intoaccordproject:mainfrom
Aayush-kumar-ctrl:patch-2

Conversation

@Aayush-kumar-ctrl
Copy link

  1. Fixes failing tests by ensuring the drafted Document always contains a valid nodes array as required by Concerto model validation.

  2. Prevents runtime ValidationException errors caused by undefined required fields during template drafting.

  3. Adds defensive checks to ensure template state and events are always properly initialized.

  4. Improves overall stability and reliability of template processing across draft, init, and trigger workflows.

  5. Maintains backward compatibility while aligning output strictly with Concerto schema requirements.

1. Fixes failing tests by ensuring the drafted Document always contains a valid `nodes` array as required by Concerto model validation.

2. Prevents runtime `ValidationException` errors caused by undefined required fields during template drafting.

3. Adds defensive checks to ensure template state and events are always properly initialized.

4. Improves overall stability and reliability of template processing across draft, init, and trigger workflows.

5. Maintains backward compatibility while aligning output strictly with Concerto schema requirements.
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.

1 participant