Schema for Cleo Permissions

From StitchPermissions.schema.yaml (cleo/StitchPermissions.schema)

---
$id: https://skeleton.botmd.io/cleo/StitchPermissions.schema
$schema: http://json-schema.org/draft-07/schema#

title: Permissions
description: Cleo application specific permissions.

type: object
required: [profile]
additionalProperties: true # to allow union with other sub-schemas

properties:
  stream_response:
    title: Stream Response
    description: Allow the content to be streamed directly from Hippocrates instead of a redirect. Use sparingly and with care. Defaults to `false`.
    type: boolean

  profile:
    title: Profile
    description: The cleo patient or clinician profile with access to this link.

    type: string
    pattern: '^(clinician|patient)\:\w{16,}$'

  permissions:
    title: Permissions
    description: Permission required for clinician to acess this link.
    $ref: "/cleo/RolePermission.schema"
#end properties

[Main Page] [Schema Documentation] [Examples]