Persoon: supplying verificatie when not requested with fields
#language: en Feature: Persoon: supplying verificatie when not requested with fields Background: Given the person with citizen service number '000000152' has the following 'inschrijving' data | naam | waarde | | datum verificatie (71.10) | 20020701 | | omschrijving verificatie (71.20) | bewijs nationaliteit | Rule: verificatie of the personal data is returned with every request Scenario Outline: the personal data has been verified and verificatie is not requested When persons are searched with the following parameters | naam | waarde | | type | RaadpleegMetBurgerservicenummer | | burgerservicenummer | 000000152 | | fields | <fields> | Then the response has a person with the following 'verificatie' data | naam | waarde | | datum.type | Datum | | datum.datum | 2002-07-01 | | datum.langFormaat | 1 juli 2002 | | omschrijving | bewijs nationaliteit | Examples: | fields | | naam.voorvoegsel | | verblijfstitel | | overlijden.datum | | immigratie | Scenario Outline: 'datum verificatie (71.10)' of type '<type>' Given the person with citizen service number '000000140' has the following 'inschrijving' data | naam | waarde | | datum verificatie (71.10) | <GbaDatum> | When persons are searched with the following parameters | naam | waarde | | type | RaadpleegMetBurgerservicenummer | | burgerservicenummer | 000000140 | | fields | overlijden | Then the response has a person with the following 'verificatie' data | naam | waarde | | datum.type | <type> | | datum.datum | <datum> | | datum.jaar | <jaar> | | datum.maand | <maand> | | datum.onbekend | <onbekend> | | datum.langFormaat | <langFormaat> | Examples: | type | GbaDatum | datum | jaar | maand | onbekend | langFormaat | | Datum | 20200308 | 2020-03-08 | | | | 8 maart 2020 | | DatumOnbekend | 00000000 | | | | true | onbekend | | JaarDatum | 20200000 | | 2020 | | | 2020 | | JaarMaandDatum | 20200300 | | 2020 | 3 | | maart 2020 | Rule: verificatie may not be requested, because it is supplied automatically @fout-case Scenario Outline: field <fields> may not be requested, because it is supplied automatically When persons are searched with the following parameters | naam | waarde | | type | RaadpleegMetBurgerservicenummer | | burgerservicenummer | 000000024 | | fields | <fields> | Then the response has an object with the following data | naam | waarde | | type | https://datatracker.ietf.org/doc/html/rfc7231#section-6.5.1 | | title | Een of meerdere parameters zijn niet correct. | | status | 400 | | detail | De foutieve parameter(s) zijn: fields[0]. | | code | paramsValidation | | instance | /haalcentraal/api/brp/personen | And the object has the following 'invalidParams' data | code | name | reason | | fields | fields[0] | Parameter bevat een niet toegestane veldnaam. | Examples: | fields | | verificatie | | verificatie.datum | | verificatie.datum.type | | verificatie.datum.datum | | verificatie.datum.jaar | | verificatie.datum.maand | | verificatie.datum.onbekend | | verificatie.datum.langFormaat | | verificatie.omschrijving |