betty.json_schemas.project module#

JSON schemas for the project API.

final class betty.json_schemas.project.ProjectSchema#

Bases: Manufacturable, Schema

A JSON Schema for a project.

async classmethod def_url(project: Project, def_name: str) str#

Get the URL to a project’s JSON Schema definition.

new = <betty.requirement._RequirableDecorator object>#
async classmethod url(project: Project) str#

Get the URL to a project’s JSON Schema.

classmethod www_path(project: Project) Path#

Get the path to the schema file in a site’s public WWW directory.