example.user
Publish a new version
version 1.0 ▾
- Canonical URL
- https://schematalog.com/api/schemas/example.user/versions/1.0 (opens in a new tab)
- Published
- 22 August 2026 23:11
Properties
| Parameter | Description | Type | Required | Nullable | Default | Example |
|---|---|---|---|---|---|---|
email |
Primary contact email. | String | Required | |||
id |
UUID | Required | ||||
name |
String | Optional |
Definition
{ "type": "object", "$schema": "https://json-schema.org/draft/2020-12/schema", "required": [ "id", "email" ], "properties": { "id": { "type": "string", "format": "uuid" }, "name": { "type": "string" }, "email": { "type": "string", "description": "Primary contact email." } }, "$id": "https://schematalog.com/api/schemas/example.user/versions/1.0", "title": "example.user" }
$id: https://schematalog.com/api/schemas/example.user/versions/1.0 $schema: https://json-schema.org/draft/2020-12/schema properties: email: description: Primary contact email. type: string id: format: uuid type: string name: type: string required: - id - email title: example.user type: object
from __future__ import annotations from typing import Optional from uuid import UUID from pydantic import BaseModel, Field class ExampleUser(BaseModel): id: UUID name: Optional[str] = None email: str = Field(..., description='Primary contact email.')
{ "type": "record", "name": "ExampleUser", "fields": [ { "name": "id", "type": { "type": "string", "logicalType": "uuid" } }, { "name": "name", "type": [ "null", "string" ], "default": null }, { "name": "email", "type": "string", "doc": "Primary contact email." } ], "namespace": "example.user" }