How-to guides¶
One question a project meets, answered in a few steps. Each assumes the library is installed.
| Adopt it in an existing project | a project with an envelope of its own - what changes for its clients, and in what order |
| Read the envelope from a frontend | types, one fetch function, a pager for both kinds, a form's errors |
| Choose how a list is paged | by number or by cursor, its size, the client's say, and no pages at all |
| Write your own errors | a DomainError with data, raised from a service, a task or a command |
| Rename the error codes | for a client that already branches on other words |
| Leave a view out of the envelope | a webhook, a health check, a file |
| Report bugs to Sentry | the REPORTER, the log, and DEBUG |
| Answer a database constraint | two requests taking the same name at once |
| Use your own schema class or handler | with an AutoSchema or an exception handler of the project's |
| Test an API in the envelope | reading answers as a client does |