Skip to main content

CDD Weight Definition

Schema for customer due diligence risk weight definitions

FieldValue
Schema IDhttps://github.com/ksuk/merlon/schemas/cdd_weight_v1.json
JSON Schema dialecthttps://json-schema.org/draft/2020-12/schema
Typeobject
Required top-level fieldsschema_version, id, name, version, axes, tier_thresholds

Properties

NameTypeRequiredDescription
schema_versionconstYes
idstringYes
namestringYes
name_jastringNo
descriptionstringNo
versionintegerYes
is_samplebooleanNo
axesobjectYes
tier_thresholdsobjectYes

schema_version

ConstraintValue
Const"cdd_weight_v1"

id

ConstraintValue
Pattern^[a-z][a-z0-9_]*$

version

ConstraintValue
Minimum1

axes

NameTypeRequiredDescription
(any key)object

axes.*

NameTypeRequiredDescription
weightnumberYes
factorsarrayYes
axes.*.weight
ConstraintValue
Minimum0
Maximum1

tier_thresholds

ConstraintValue
Required keyslow, 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"
]
}
}
}