Strict data Structure

Hi,

I checked Strict Option in the Data Structure, but I dont understand why my data structure is not compared to the structure of the payload and why the payload contains extra items not specified in the data structure, are not rejected ?

I’m expected the for exemple to have in my “dirigeants” field (Array) the follows item : prenom, nom, denomination
And in fact my worflow put in my datastore “dirigeants” field (Array) all the item from the source such as : nom, prenoms, annee_de_naissance, qualite, nationalite, type_dirigeant, denomination, etc…

Yhis is not I want, I want just prenoms, nom, denomination






Thank a lot for your help

Hi @cedric_MARTIN

If you set Strict to Yes, the module will reject the full payload. What you want is to set it to No and map only the fields you need.

From what I can see, you need to iterate over Dirigeants array and map the results of the iterator to these values:

@damato