hs.hsadmin.ng/src/main/resources/api-definition/hs-office/hs-office-contact-schemas.yaml

100 lines
3.5 KiB
YAML
Raw Normal View History

components:
schemas:
2022-09-20 14:17:12 +02:00
HsOfficeContact:
type: object
properties:
2022-09-20 14:17:12 +02:00
uuid:
type: string
format: uuid
caption:
type: string
postalAddress:
$ref: '#/components/schemas/HsOfficeContactPostalAddress'
emailAddresses:
$ref: '#/components/schemas/HsOfficeContactEmailAddresses'
phoneNumbers:
$ref: '#/components/schemas/HsOfficeContactPhoneNumbers'
2022-09-20 14:17:12 +02:00
HsOfficeContactInsert:
type: object
properties:
caption:
2022-09-20 14:17:12 +02:00
type: string
postalAddress:
$ref: '#/components/schemas/HsOfficeContactPostalAddress'
2022-09-20 14:17:12 +02:00
emailAddresses:
$ref: '#/components/schemas/HsOfficeContactEmailAddresses'
2022-09-20 14:17:12 +02:00
phoneNumbers:
$ref: '#/components/schemas/HsOfficeContactPhoneNumbers'
2022-09-20 14:17:12 +02:00
required:
- caption
2022-09-20 14:17:12 +02:00
HsOfficeContactPatch:
type: object
properties:
caption:
2022-09-20 14:17:12 +02:00
type: string
nullable: true
postalAddress:
$ref: '#/components/schemas/HsOfficeContactPostalAddress'
2022-09-20 14:17:12 +02:00
emailAddresses:
$ref: '#/components/schemas/HsOfficeContactEmailAddresses'
2022-09-20 14:17:12 +02:00
phoneNumbers:
$ref: '#/components/schemas/HsOfficeContactPhoneNumbers'
HsOfficeContactPostalAddress:
# forces generating a java.lang.Object containing a Map, instead of a class with fixed properties
anyOf:
- type: object
properties:
firm:
type: string
nullable: true
name:
type: string
nullable: true
co:
type: string
nullable: true
street:
type: string
nullable: true
zipcode:
type: string
nullable: true
city:
type: string
nullable: true
country:
type: string
nullable: true
additionalProperties: true
HsOfficeContactEmailAddresses:
# forces generating a java.lang.Object containing a Map, instead of a class with fixed properties
anyOf:
- type: object
additionalProperties: true
HsOfficeContactPhoneNumbers:
# forces generating a java.lang.Object containing a Map, instead of a class with fixed properties
anyOf:
- type: object
properties:
phone_office:
type: string
nullable: true
phone_private:
type: string
nullable: true
phone_mobile:
type: string
nullable: true
fax:
type: string
nullable: true
additionalProperties: false