{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://ariesnet.com/downloads/governed-definition/net-written-premium.schema.json",
  "$comment": "Illustration for a fictional insurer. Hand-authored in a format CoreModels exports (JSON Schema, ShEx) or renders to in an Ariesnet engagement (SQL, Cypher); not produced by CoreModels. https://ariesnet.com/resources/governed-definition-end-to-end",
  "title": "NetWrittenPremium",
  "description": "Gross written premium less cancellations and endorsement reductions, before reinsurance ceded. One row per policy per accounting month; cancellations net at period close.",
  "type": "object",
  "required": ["policyId", "accountingMonth", "netWrittenPremium"],
  "properties": {
    "policyId": {
      "type": "string"
    },
    "accountingMonth": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}$"
    },
    "netWrittenPremium": {
      "type": "number"
    }
  }
}
