Schema for Maxwell Session Scopes (Maxwell)

From SessionScopes.schema.yaml (maxwell/SessionScopes.schema)

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

title: Session Scopes (Maxwell)
description: Maxwell specific session scopes. See [heimdall/SessionScopes.schema](index.html#heimdall-sessionscopes) for more information.

type: array
uniqueItems: true
minItems: 2
maxItems: 2
allOf:
  - contains:
      $ref: "/hospital/SessionScopes.schema#/definitions/User Session Scope"
  - anyOf:
      - contains:
          title: Doctor
          description: Doctor with full access.
          const: "maxwell:doctor"

      - contains:
          title: Assistant
          description: Assistant with limited scheduling access.
          const: "maxwell:assistant"

      - contains:
          title: Clinic Admin
          description: Clinic Admin with full access to doctors in the clinic.
          const: "maxwell:clinic_admin"

      - contains:
          title: Call Center
          description: Call Center with full access to all doctors.
          const: "maxwell:call_center"
items:
  type: string
#end items

[Main Page] [Schema Documentation] [Examples]