docs/api.lisp @ 37efd8463e96

Create separate error types for malformed JSON and unknown slots
author Steve Losh <steve@stevelosh.com>
date Wed, 02 Dec 2020 23:40:36 -0500
parents 700d5c649245
children (none)
(ql:quickload "cl-d-api")

(defparameter *header*
  "The following is a list of all user-facing parts of Jarl.

If there are backwards-incompatible changes to anything listed here, they will
be noted in the changelog and the author will feel bad.

Anything not listed here is subject to change at any time with no warning, so
don't touch it.

")

(d-api:generate-documentation
  :jarl
  #p"docs/02-reference.markdown"
  (list "JARL")
  *header*
  :title "API Reference")

(d-api:draw-class-hierarchy
  "docs/static/errors.svg"
  '(jarl::json-error
    jarl::json-reading-error
    jarl::malformed-json-error
    jarl::unknown-json-slot-error
    jarl::json-limit-exceeded-error
    jarl::json-size-limit-exceeded-error
    jarl::json-depth-limit-exceeded-error)
  :abstract-classes
  '(jarl::json-error
    jarl::json-reading-error
    jarl::json-limit-exceeded-error))