14 lines
361 B
YAML

type: object
properties:
username:
type: string
example: 'admin'
description: The username of the authenticated user.
roles:
type: array
items:
type: string
enum: ['admin', 'user']
example: ['admin', 'user']
description: A list of roles assigned to the authenticated user.