Merge pull request #7978 from colinux/fix-rna
fix(rna): date_creation may be null
This commit is contained in:
commit
c59867b456
2 changed files with 9 additions and 4 deletions
|
@ -14,9 +14,16 @@
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"association_date_creation": {
|
"association_date_creation": {
|
||||||
|
"anyOf": [
|
||||||
|
{
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"format": "date"
|
"format": "date"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"type": "null"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
"association_date_declaration": {
|
"association_date_declaration": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"format": "date"
|
"format": "date"
|
||||||
|
@ -229,7 +236,6 @@
|
||||||
"required": [
|
"required": [
|
||||||
"association_titre",
|
"association_titre",
|
||||||
"association_rna",
|
"association_rna",
|
||||||
"association_date_creation",
|
|
||||||
"association_date_declaration",
|
"association_date_declaration",
|
||||||
"association_date_publication"
|
"association_date_publication"
|
||||||
]
|
]
|
||||||
|
|
|
@ -29,7 +29,6 @@ describe APIEntreprise::RNAAdapter do
|
||||||
expect(subject["association_rna"]).to eq('W595001988')
|
expect(subject["association_rna"]).to eq('W595001988')
|
||||||
expect(subject["association_titre"]).to eq('UN SUR QUATRE')
|
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_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_creation"]).to eq('2014-01-23')
|
|
||||||
expect(subject["association_date_declaration"]).to eq('2014-01-24')
|
expect(subject["association_date_declaration"]).to eq('2014-01-24')
|
||||||
expect(subject["association_date_publication"]).to eq('2014-02-08')
|
expect(subject["association_date_publication"]).to eq('2014-02-08')
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue