{
    "$id": "https://example.com/schemas/com-example-amount-2018-03-01.schema.json",
    "$schema": "http://json-schema.org/draft-07/schema#",
    "description": "An amount object including quanity and currency code.",
    "properties": {
        "amount": {
            "pattern": "^[-]?\\d*\\.?\\d+$",
            "type": "string"
        },
        "currency": {
            "maxLength": 3,
            "minLength": 3,
            "pattern": "^[a-zA-Z0-9]{3}$",
            "type": "string"
        }
    },
    "required": [
        "amount",
        "currency"
    ],
    "title": "Amount Version 2018-03-01",
    "type": "object"
}