Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- asyncapi: '2.0.0-rc2'
- id: 'urn:demo'
- info:
- title: Demo
- version: '1.0'
- channels:
- userEvents:
- description: User Events Channel
- publish:
- summary: Publish User related events
- message:
- $ref: '#/components/messages/userCreated'
- components:
- messages:
- userCreated:
- name: userCreated
- payload:
- $ref: '#/components/schemas/userCreated'
- schemas:
- userCreated:
- type: object
- additionalProperties: false
- properties:
- id:
- type: string
- format: uuid
- example: bd58d14f-fd3e-449c-b60c-a56548190d68
- userName:
- type: string
- format: email
- familyName:
- type: string
- example: Alex
- givenName:
- type: string
- example: Jem
- phoneNumber:
- type: string
- example: "+4917159374368"
- role:
- type: string
- example: admin
- pattern: '^[-.~a-zA-Z0-9_]+$'
- maxLength: 64
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement