Skip to content

Commit

Permalink
[#309] Fix admin and schema
Browse files Browse the repository at this point in the history
  • Loading branch information
danielmursa-dev committed Feb 5, 2025
1 parent e0eb0cc commit 2f31a2e
Show file tree
Hide file tree
Showing 4 changed files with 152 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/openklant/components/contactgegevens/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ class PersoonAdmin(admin.ModelAdmin):
_("Adres gegevens"),
{
"fields": [
"adres_straatnaam",
"adres_huisnummer",
"adres_huisnummertoevoeging",
"adres_postcode",
"adres_stad",
"adres_adresregel1",
"adres_adresregel2",
"adres_adresregel3",
Expand Down Expand Up @@ -58,6 +63,11 @@ class OrganisatieAdmin(admin.ModelAdmin):
_("Adres gegevens"),
{
"fields": [
"adres_straatnaam",
"adres_huisnummer",
"adres_huisnummertoevoeging",
"adres_postcode",
"adres_stad",
"adres_adresregel1",
"adres_adresregel2",
"adres_adresregel3",
Expand Down
44 changes: 44 additions & 0 deletions src/openklant/components/contactgegevens/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,28 @@ components:
en Gebouwen.
pattern: ^[0-9]{16}$
maxLength: 16
straatnaam:
type: string
description: Straatnaam in het Basisregistratie Adressen en Gebouwen.
maxLength: 255
huisnummer:
type: integer
maximum: 99999
minimum: 1
description: Huisnummer in het Basisregistratie Adressen en Gebouwen.
huisnummertoevoeging:
type: string
description: Huisnummertoevoeging in het Basisregistratie Adressen en Gebouwen.
maxLength: 20
postcode:
type: string
description: Postcode in het Basisregistratie Adressen en Gebouwen.
pattern: ^[1-9][0-9]{3} ?[a-zA-Z]{2}$
maxLength: 6
stad:
type: string
description: Stad in het Basisregistratie Adressen en Gebouwen.
maxLength: 255
adresregel1:
type: string
description: Eerste deel van het adres dat niet voorkomt in de Basisregistratie
Expand Down Expand Up @@ -645,6 +667,28 @@ components:
en Gebouwen.
pattern: ^[0-9]{16}$
maxLength: 16
straatnaam:
type: string
description: Straatnaam in het Basisregistratie Adressen en Gebouwen.
maxLength: 255
huisnummer:
type: integer
maximum: 99999
minimum: 1
description: Huisnummer in het Basisregistratie Adressen en Gebouwen.
huisnummertoevoeging:
type: string
description: Huisnummertoevoeging in het Basisregistratie Adressen en Gebouwen.
maxLength: 20
postcode:
type: string
description: Postcode in het Basisregistratie Adressen en Gebouwen.
pattern: ^[1-9][0-9]{3} ?[a-zA-Z]{2}$
maxLength: 6
stad:
type: string
description: Stad in het Basisregistratie Adressen en Gebouwen.
maxLength: 255
adresregel1:
type: string
description: Eerste deel van het adres dat niet voorkomt in de Basisregistratie
Expand Down
10 changes: 10 additions & 0 deletions src/openklant/components/klantinteracties/admin/partijen.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,11 @@ class PartijAdmin(admin.ModelAdmin):
{
"fields": [
"bezoekadres_nummeraanduiding_id",
"bezoekadres_straatnaam",
"bezoekadres_huisnummer",
"bezoekadres_huisnummertoevoeging",
"bezoekadres_postcode",
"bezoekadres_stad",
"bezoekadres_adresregel1",
"bezoekadres_adresregel2",
"bezoekadres_adresregel3",
Expand All @@ -140,6 +145,11 @@ class PartijAdmin(admin.ModelAdmin):
{
"fields": [
"correspondentieadres_nummeraanduiding_id",
"correspondentieadres_straatnaam",
"correspondentieadres_huisnummer",
"correspondentieadres_huisnummertoevoeging",
"correspondentieadres_postcode",
"correspondentieadres_stad",
"correspondentieadres_adresregel1",
"correspondentieadres_adresregel2",
"correspondentieadres_adresregel3",
Expand Down
88 changes: 88 additions & 0 deletions src/openklant/components/klantinteracties/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3206,6 +3206,28 @@ components:
en Gebouwen.
pattern: ^[0-9]{16}$
maxLength: 16
straatnaam:
type: string
description: Straatnaam in het Basisregistratie Adressen en Gebouwen.
maxLength: 255
huisnummer:
type: integer
maximum: 99999
minimum: 1
description: Huisnummer in het Basisregistratie Adressen en Gebouwen.
huisnummertoevoeging:
type: string
description: Huisnummertoevoeging in het Basisregistratie Adressen en Gebouwen.
maxLength: 20
postcode:
type: string
description: Postcode in het Basisregistratie Adressen en Gebouwen.
pattern: ^[1-9][0-9]{3} ?[a-zA-Z]{2}$
maxLength: 6
stad:
type: string
description: Stad in het Basisregistratie Adressen en Gebouwen.
maxLength: 255
adresregel1:
type: string
description: Eerste deel van het adres dat niet voorkomt in de Basisregistratie
Expand Down Expand Up @@ -3337,6 +3359,28 @@ components:
en Gebouwen.
pattern: ^[0-9]{16}$
maxLength: 16
straatnaam:
type: string
description: Straatnaam in het Basisregistratie Adressen en Gebouwen.
maxLength: 255
huisnummer:
type: integer
maximum: 99999
minimum: 1
description: Huisnummer in het Basisregistratie Adressen en Gebouwen.
huisnummertoevoeging:
type: string
description: Huisnummertoevoeging in het Basisregistratie Adressen en Gebouwen.
maxLength: 20
postcode:
type: string
description: Postcode in het Basisregistratie Adressen en Gebouwen.
pattern: ^[1-9][0-9]{3} ?[a-zA-Z]{2}$
maxLength: 6
stad:
type: string
description: Stad in het Basisregistratie Adressen en Gebouwen.
maxLength: 255
adresregel1:
type: string
description: Eerste deel van het adres dat niet voorkomt in de Basisregistratie
Expand Down Expand Up @@ -4633,6 +4677,28 @@ components:
en Gebouwen.
pattern: ^[0-9]{16}$
maxLength: 16
straatnaam:
type: string
description: Straatnaam in het Basisregistratie Adressen en Gebouwen.
maxLength: 255
huisnummer:
type: integer
maximum: 99999
minimum: 1
description: Huisnummer in het Basisregistratie Adressen en Gebouwen.
huisnummertoevoeging:
type: string
description: Huisnummertoevoeging in het Basisregistratie Adressen en Gebouwen.
maxLength: 20
postcode:
type: string
description: Postcode in het Basisregistratie Adressen en Gebouwen.
pattern: ^[1-9][0-9]{3} ?[a-zA-Z]{2}$
maxLength: 6
stad:
type: string
description: Stad in het Basisregistratie Adressen en Gebouwen.
maxLength: 255
adresregel1:
type: string
description: Eerste deel van het adres dat niet voorkomt in de Basisregistratie
Expand Down Expand Up @@ -4663,6 +4729,28 @@ components:
en Gebouwen.
pattern: ^[0-9]{16}$
maxLength: 16
straatnaam:
type: string
description: Straatnaam in het Basisregistratie Adressen en Gebouwen.
maxLength: 255
huisnummer:
type: integer
maximum: 99999
minimum: 1
description: Huisnummer in het Basisregistratie Adressen en Gebouwen.
huisnummertoevoeging:
type: string
description: Huisnummertoevoeging in het Basisregistratie Adressen en Gebouwen.
maxLength: 20
postcode:
type: string
description: Postcode in het Basisregistratie Adressen en Gebouwen.
pattern: ^[1-9][0-9]{3} ?[a-zA-Z]{2}$
maxLength: 6
stad:
type: string
description: Stad in het Basisregistratie Adressen en Gebouwen.
maxLength: 255
adresregel1:
type: string
description: Eerste deel van het adres dat niet voorkomt in de Basisregistratie
Expand Down

0 comments on commit 2f31a2e

Please sign in to comment.