Number

The number type is a flexible data type used for storing numeric values. It can represent timestamps (milliseconds since epoch), simple numeric fields, or values used in comparisons. When used with the special default value $.now, it stores the current timestamp.

...
{
    "schema": {
        "title": {
            "type": "string"
        },
        "publishedAt": {
            "type": "number",
            "default": "$.now"
        },
        "price": {
            "type": "number"
        },
        "score": {
            "type": "number",
            "default": 100
        }
    }
}
...
Edit this page on Github
© 2025 kav3.com. Crafted with and dedication.