add schema validations
This commit is contained in:
parent
75043070da
commit
57604b9c89
4 changed files with 220 additions and 43 deletions
79
spec/fixtures/cassettes/api_particulier/success/composition_familiale_invalid.yml
vendored
Normal file
79
spec/fixtures/cassettes/api_particulier/success/composition_familiale_invalid.yml
vendored
Normal file
|
@ -0,0 +1,79 @@
|
|||
---
|
||||
http_interactions:
|
||||
- request:
|
||||
method: get
|
||||
uri: https://particulier-test.api.gouv.fr/api/v2/composition-familiale?codePostal=92110&numeroAllocataire=5843972
|
||||
body:
|
||||
encoding: US-ASCII
|
||||
string: ''
|
||||
headers:
|
||||
User-Agent:
|
||||
- demarches-simplifiees.fr
|
||||
Accept:
|
||||
- application/json
|
||||
X-Api-Key:
|
||||
- 29eb50b65f64e8e00c0847a8bbcbd150e1f847
|
||||
Content-Type:
|
||||
- text/html; charset=utf-8
|
||||
Expect:
|
||||
- ''
|
||||
response:
|
||||
status:
|
||||
code: 200
|
||||
message: ''
|
||||
headers:
|
||||
Server:
|
||||
- nginx
|
||||
Date:
|
||||
- Mon, 20 Sep 2021 20:01:39 GMT
|
||||
Content-Type:
|
||||
- application/json; charset=utf-8
|
||||
Content-Length:
|
||||
- '387'
|
||||
X-Powered-By:
|
||||
- Express
|
||||
Vary:
|
||||
- Origin
|
||||
Etag:
|
||||
- W/"183-5m9o/ng+PfdMOPeC0VBn5lqbziQ"
|
||||
Strict-Transport-Security:
|
||||
- max-age=15724800; includeSubdomains
|
||||
body:
|
||||
encoding: UTF-8
|
||||
string: '
|
||||
{
|
||||
"adresse": {
|
||||
"codePostalVille": "92110 Clichy",
|
||||
"identite": "Mr SNOW Eric",
|
||||
"complementIdentite": "ne connait rien",
|
||||
"numeroRue": "109 rue La Boétie",
|
||||
"pays": "FRANCE",
|
||||
"complementIdentiteGeo": "au nord de paris",
|
||||
"lieuDit": "glagla"
|
||||
},
|
||||
"allocataires": [
|
||||
{
|
||||
"nomPrenom": "ERIC SNOW",
|
||||
"dateDeNaissance": "07011991",
|
||||
"sexe": "M"
|
||||
},
|
||||
{
|
||||
"nomPrenom": "SANSA SNOW",
|
||||
"dateDeNaissance": "15011992",
|
||||
"sexe": "F"
|
||||
}
|
||||
],
|
||||
"enfants": [
|
||||
{
|
||||
"nomPrenom": "PAUL SNOW",
|
||||
"dateDeNaissance": "04012018",
|
||||
"sexe": "M"
|
||||
}
|
||||
],
|
||||
"quotientFamilial": 1856,
|
||||
"annee": 2021,
|
||||
"mois": 13
|
||||
}
|
||||
'
|
||||
recorded_at: Mon, 20 Sep 2021 20:01:39 GMT
|
||||
recorded_with: VCR 6.0.0
|
Loading…
Add table
Add a link
Reference in a new issue