hs.hsadmin.ng/src/main/resources/api-definition/hs-office/hs-office-relation-schemas.yaml
Michael Hoennig f0eb76ee61 upgrade io.openapiprocessor:openapi-processor-spring to 2024.2 (#42)
Co-authored-by: Michael Hoennig <michael@hoennig.de>
Reviewed-on: #42
Reviewed-by: Marc Sandlus <marc.sandlus@hostsharing.net>
2024-04-16 10:08:00 +02:00

67 lines
1.8 KiB
YAML

components:
schemas:
HsOfficeRelationType:
type: string
enum:
- UNKNOWN
- PARTNER
- EX_PARTNER
- DEBITOR
- REPRESENTATIVE
- VIP_CONTACT
- OPERATIONS
- SUBSCRIBER
HsOfficeRelation:
type: object
properties:
uuid:
type: string
format: uuid
anchor:
$ref: 'hs-office-person-schemas.yaml#/components/schemas/HsOfficePerson'
holder:
$ref: 'hs-office-person-schemas.yaml#/components/schemas/HsOfficePerson'
type:
type: string
mark:
type: string
nullable: true
contact:
$ref: 'hs-office-contact-schemas.yaml#/components/schemas/HsOfficeContact'
HsOfficeRelationPatch:
type: object
properties:
contactUuid:
type: string
format: uuid
nullable: true
HsOfficeRelationInsert:
type: object
properties:
anchorUuid:
type: string
format: uuid
holderUuid:
type: string
format: uuid
type:
type: string
nullable: true
mark:
type: string
nullable: true
contactUuid:
type: string
format: uuid
required:
- anchorUuid
- holderUuid
- type
- contactUuid