1
0

add API validation

This commit is contained in:
Michael Hoennig
2022-10-15 11:29:56 +02:00
parent 4f22dffe5d
commit 67e850f9b2
8 changed files with 114 additions and 33 deletions

View File

@ -22,7 +22,7 @@ components:
type: string
vatCountryCode:
type: string
pattern: '^[A_Z][A-Z]$'
pattern: '^[A-Z][A-Z]$'
vatBusiness:
type: boolean
refundBankAccount:
@ -40,7 +40,7 @@ components:
nullable: true
vatCountryCode:
type: string
pattern: '^[A_Z][A-Z]$'
pattern: '^[A-Z][A-Z]$'
nullable: true
vatBusiness:
type: boolean
@ -56,9 +56,11 @@ components:
partnerUuid:
type: string
format: uuid
nullable: false
billingContactUuid:
type: string
format: uuid
nullable: false
debitorNumber:
type: integer
format: int32
@ -68,7 +70,7 @@ components:
type: string
vatCountryCode:
type: string
pattern: '^[A_Z][A-Z]$'
pattern: '^[A-Z][A-Z]$'
vatBusiness:
type: boolean
refundBankAccountUuid:

View File

@ -15,16 +15,21 @@ components:
$ref: './hs-office-contact-schemas.yaml#/components/schemas/HsOfficeContact'
registrationOffice:
type: string
nullable: true
registrationNumber:
type: string
nullable: true
birthName:
type: string
nullable: true
birthday:
type: string
format: date
nullable: true
dateOfDeath:
type: string
format: date
nullable: true
HsOfficePartnerPatch:
type: object
@ -84,8 +89,3 @@ components:
required:
- personUuid
- contactUuid
- registrationOffice
- registrationNumber
- birthName
- birthday
- dateOfDeath