CDD Weight Definition
Schema for customer due diligence risk weight definitions
| Field | Value |
|---|---|
| Schema ID | https://github.com/ksuk/merlon/schemas/cdd_weight_v1.json |
| JSON Schema dialect | https://json-schema.org/draft/2020-12/schema |
| Type | object |
| Required top-level fields | schema_version, id, name, version, axes, tier_thresholds |
Properties
| Name | Type | Required | Description |
|---|---|---|---|
schema_version | const | Yes | |
id | string | Yes | |
name | string | Yes | |
name_ja | string | No | |
description | string | No | |
version | integer | Yes | |
is_sample | boolean | No | |
axes | object | Yes | |
tier_thresholds | object | Yes |
schema_version
| Constraint | Value |
|---|---|
| Const | "cdd_weight_v1" |
id
| Constraint | Value |
|---|---|
| Pattern | ^[a-z][a-z0-9_]*$ |
version
| Constraint | Value |
|---|---|
| Minimum | 1 |
axes
| Name | Type | Required | Description |
|---|---|---|---|
(any key) | object | — |
axes.*
| Name | Type | Required | Description |
|---|---|---|---|
weight | number | Yes | |
factors | array | Yes |
axes.*.weight
| Constraint | Value |
|---|---|
| Minimum | 0 |
| Maximum | 1 |
tier_thresholds
| Constraint | Value |
|---|---|
| Required keys | low, medium, high |
Full schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://github.com/ksuk/merlon/schemas/cdd_weight_v1.json",
"title": "CDD Weight Definition",
"description": "Schema for customer due diligence risk weight definitions",
"type": "object",
"required": [
"schema_version",
"id",
"name",
"version",
"axes",
"tier_thresholds"
],
"properties": {
"schema_version": {
"type": "string",
"const": "cdd_weight_v1"
},
"id": {
"type": "string",
"pattern": "^[a-z][a-z0-9_]*$"
},
"name": {
"type": "string"
},
"name_ja": {
"type": "string"
},
"description": {
"type": "string"
},
"version": {
"type": "integer",
"minimum": 1
},
"is_sample": {
"type": "boolean"
},
"axes": {
"type": "object",
"additionalProperties": {
"type": "object",
"required": [
"weight",
"factors"
],
"properties": {
"weight": {
"type": "number",
"minimum": 0,
"maximum": 1
},
"factors": {
"type": "array"
}
}
}
},
"tier_thresholds": {
"type": "object",
"required": [
"low",
"medium",
"high"
]
}
}
}