pushkin-compiler 0.2.1

Schema compiler for pushkin: canonical JSON Schema emission and generated bindings
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
# GENERATED by pushkin compile from contract 'user' — do not hand-edit.
# pushkin-epoch: 1
from typing import Literal

from pydantic import BaseModel, ConfigDict, EmailStr, Field


class UserCreate(BaseModel):
    model_config = ConfigDict(extra='forbid', strict=True)

    email: EmailStr
    name: str = Field(min_length=1, max_length=200)
    role: Literal["member", "admin"] = Field(default="member")