example.order
deprecated
Publish a new version
version 1.1 ▾
- Canonical URL
- https://schematalog.com/api/schemas/example.order/versions/1.1 (opens in a new tab)
- Published
- 22 August 2026 23:11
This version is deprecated and should not be used for new work.
Superseded by: https://schematalog.com/api/schemas/example.order/versions/2.0
Properties
| Parameter | Description | Type | Required | Nullable | Default | Example |
|---|---|---|---|---|---|---|
created_at |
ISO 8601 Timestamp | Optional | ||||
currency |
ISO 4217 currency code. | String | 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 }, "currency": { "type": "string", "description": "ISO 4217 currency code." }, "order_id": { "type": "string", "format": "uuid" }, "created_at": { "type": "string", "format": "date-time" } }, "$id": "https://schematalog.com/api/schemas/example.order/versions/1.1", "title": "example.order", "deprecated": true }
$id: https://schematalog.com/api/schemas/example.order/versions/1.1 $schema: https://json-schema.org/draft/2020-12/schema deprecated: true properties: created_at: format: date-time type: string currency: description: ISO 4217 currency code. 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, Field, confloat class ExampleOrder(BaseModel): total: confloat(ge=0.0) currency: Optional[str] = Field(None, description='ISO 4217 currency code.') order_id: UUID created_at: Optional[AwareDatetime] = None
{ "type": "record", "name": "ExampleOrder", "fields": [ { "name": "total", "type": "double" }, { "name": "currency", "type": [ "null", "string" ], "doc": "ISO 4217 currency code.", "default": null }, { "name": "order_id", "type": { "type": "string", "logicalType": "uuid" } }, { "name": "created_at", "type": [ "null", { "type": "long", "logicalType": "timestamp-millis" } ], "default": null } ], "namespace": "example.order" }