fix(rna): some associations don't have date_publication
https://sentry.io/organizations/demarches-simplifiees/issues/3698792231/events/fde901fac5a44129adcafc891d59d086/?project=1429550
This commit is contained in:
parent
061a3e59ff
commit
820cb4bd27
2 changed files with 10 additions and 5 deletions
|
@ -29,8 +29,15 @@
|
|||
"format": "date"
|
||||
},
|
||||
"association_date_publication": {
|
||||
"type": "string",
|
||||
"format": "date"
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "string",
|
||||
"format": "date"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
]
|
||||
},
|
||||
"association_date_dissolution": {
|
||||
"anyOf": [
|
||||
|
@ -236,7 +243,6 @@
|
|||
"required": [
|
||||
"association_titre",
|
||||
"association_rna",
|
||||
"association_date_declaration",
|
||||
"association_date_publication"
|
||||
"association_date_declaration"
|
||||
]
|
||||
}
|
||||
|
|
|
@ -30,7 +30,6 @@ describe APIEntreprise::RNAAdapter do
|
|||
expect(subject["association_titre"]).to eq('UN SUR QUATRE')
|
||||
expect(subject["association_objet"]).to eq("valoriser, transmettre et partager auprès des publics les plus larges possibles, les bienfaits de l'immigration, la richesse de la diversité et la curiosité de l'autre autrement")
|
||||
expect(subject["association_date_declaration"]).to eq('2014-01-24')
|
||||
expect(subject["association_date_publication"]).to eq('2014-02-08')
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue