$schema: http://json-schema.org/draft-07/schema#
title: User Page Resource
type: object
properties:
  allow_origins:
    type: array
    items:
      type: string
    description: These origins will be allowed to XSS the page

  allow_xss:
    type: boolean
    description: |
      Whether to allow XSS at all.
      If not present, defaults to true if allow_origins not blank.
      Legacy use only.

  mimetype:
    type: string

  no_header:
    type: boolean

  no_navheader:
    type: boolean

  require_method:
    type: array
    items:
      type: string

  require_permissions:
    type: array
    items: {}

  alt_top_banner:
    type: string

  streaming_response:
    type: boolean

  template_engine:
    type: string

  theme_css_url:
    type: string

  body:
    type: string
    description: The actual content or template. Saved in it's own section, not the
      metadata header.

  code:
    type: string
    description: Per-reload code. Saved in it's own section

  setupcode:
    type: string
    description: Per-reload code. Saved in it's own section

  versions:
    type: object
    description: Used to store old versions of the file.  Should not actually be saved.

required:
  - body

additionalProperties: true
