Validate a profile definition
validate_profile_definitionValidate bank-supplied profile or rule-pack JSON against schema, syntax, and semantic rules before registering custom profiles or importing external packs.
Instructions
Validate a bank-supplied profile / rule-pack definition (raw JSON).
Purpose:
Verify that a candidate clearing profile or rule-pack JSON text meets
all schema, syntactic, and semantic requirements.
When to use:
Use before registering new custom bank profiles or importing external
rule packs into the engine.
When NOT to use:
Do not use to validate payment messages; use `lint_payload` instead.
Behavioral transparency:
- Deterministic: Evaluates strictly according to the Pydantic profile
schema.
- External dependencies: None (standard JSON parsing).
- Side effects: Pure read-only validation; does not register the profile.
- Error states: Returns `is_valid: False` with descriptive error details
if validation fails.
Args:
definition_content: The candidate profile definition, as JSON text.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| definition_content | Yes | A profile / rule-pack definition as JSON text. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||