example.order
Publish a new version
version 1.0 ▾
- Canonical URL
- https://schematalog.com/api/schemas/example.order/versions/1.0 (opens in a new tab)
- Published
- 22 August 2026 23:11
Properties
| Parameter | Description | Type | Required | Nullable | Default | Example |
|---|---|---|---|---|---|---|
created_at |
ISO 8601 Timestamp | Optional | ||||
order_id |
UUID | Required | ||||
total |
Number | Required |
Definition
{ "type": "object", "$schema": "https://json-schema.org/draft/2020-12/schema", "required": [ "order_id", "total" ], "properties": { "total": { "type": "number", "minimum": 0 }, "order_id": { "type": "string", "format": "uuid" }, "created_at": { "type": "string", "format": "date-time" } }, "$id": "https://schematalog.com/api/schemas/example.order/versions/1.0", "title": "example.order" }
$id: https://schematalog.com/api/schemas/example.order/versions/1.0 $schema: https://json-schema.org/draft/2020-12/schema properties: created_at: format: date-time type: string order_id: format: uuid type: string total: minimum: 0 type: number required: - order_id - total title: example.order type: object
from __future__ import annotations from typing import Optional from uuid import UUID from pydantic import AwareDatetime, BaseModel, confloat class ExampleOrder(BaseModel): total: confloat(ge=0.0) order_id: UUID created_at: Optional[AwareDatetime] = None
{ "type": "record", "name": "ExampleOrder", "fields": [ { "name": "total", "type": "double" }, { "name": "order_id", "type": { "type": "string", "logicalType": "uuid" } }, { "name": "created_at", "type": [ "null", { "type": "long", "logicalType": "timestamp-millis" } ], "default": null } ], "namespace": "example.order" }