HAALCENTRAAL English translation
BRP API / Personen / Features / fields-alias-fout-cases

adressering - fields alias error cases

#language: en

Feature: adressering - fields alias error cases


Rule: the 'adresseringBinnenland' fields alias cannot be used in combination with the address line fields for a residence abroad

  @fout-case
  Scenario Outline: the consumer uses the fields alias to request the '<field>' field of the adresseringBinnenland data group
    When persons are searched with the following parameters
    | naam                | waarde                          |
    | type                | RaadpleegMetBurgerservicenummer |
    | burgerservicenummer | 000000097                       |
    | fields              | adresseringBinnenland.<field>   |
    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 bestaande veldnaam. |

    Examples:
    | field       |
    | adresregel3 |
    | land        |