Persoon: requesting verificatie fields with fields
#language: en Feature: Persoon: requesting verificatie fields with fields Background: Given the person with citizen service number '000000024' has the following data | geslachtsnaam (02.40) | geboortedatum (03.10) | | Vries | 19781103 | And the person 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: the personal data has been verified and verificatie is not requested When persons are searched with the following parameters | naam | waarde | | type | ZoekMetGeslachtsnaamEnGeboortedatum | | geslachtsnaam | Vries | | geboortedatum | 1978-11-03 | | fields | geslacht | 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 | Scenario Outline: 'datum verificatie (71.10)' of type '<type>' Given the person with citizen service number '000000140' has the following data | geslachtsnaam (02.40) | geboortedatum (03.10) | | Maassen | 20011027 | And the person has the following 'inschrijving' data | naam | waarde | | datum verificatie (71.10) | <GbaDatum> | When persons are searched with the following parameters | naam | waarde | | type | ZoekMetGeslachtsnaamEnGeboortedatum | | geslachtsnaam | Maassen | | geboortedatum | 2001-10-27 | | fields | naam.voornamen | 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> | And the person has no 'naam' data 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 | ZoekMetGeslachtsnaamEnGeboortedatum | | geslachtsnaam | Maassen | | geboortedatum | 2001-10-27 | | 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 |