$schema: "https://json-schema.org/draft/2020-12/schema"
type: object
required:
  - frontmatter
  - body
  - headings
  - links
  - body_dates
properties:
  frontmatter:
    type: object
    required:
      - description
      - type
    properties:
      description:
        type: string
        minLength: 1
        pattern: '\S'
        allOf:
          - minLength: 50
            severity: warn
            description: description should be at least 50 characters
          - maxLength: 250
            severity: warn
            description: description should be at most 250 characters
      type:
        type: string
      traits:
        type: array
        uniqueItems: true
        items:
          type: string
      tags:
        type: array
        items:
          type: string
      user-verified:
        const: true
    additionalProperties: true
  body:
    type: string
  headings:
    type: array
    items:
      type: string
  links:
    type: array
    items:
      type: string
  body_dates:
    type: array
    items:
      type: string
      format: date
additionalProperties: false
