Bug #191
openSome extraneous text in the JSON exported; and sime finalization of the Metadata section
0%
Description
There is some extraneous text in the JSON that is exported: In the sample below, there text "rule_group": ""
does not belong here. Be sure to remove the comma after the last line which will now be "consequences": " "
"output_weight": {
"character": "0",
"enforcement": "74",
"consequences": "74",
"rule_group": ""
},
Files
Updated by Huda Hussain almost 2 years ago
- Status changed from New to Feedback
- Assignee changed from Huda Hussain to Joseph Potvin
Understood, It has been removed. Just comnfirming Rule groups are no longer used?
Updated by Joseph Potvin almost 2 years ago
- Subject changed from Some extraneous text in the JSON exported to Some extraneous text in the JSON exported; and sime finalization of the Metadata section
- Assignee changed from Joseph Potvin to Huda Hussain
- Priority changed from Normal to High
Still some adjustment to do. Please check that AFTER Metadata "Explanation", we then export the data for "Rule_Group", then "RuleDataVersion" , then "RuleVersion", prior to "Rule Criticality".
[NOTE, the term "RuleSchema" I changed just before submitting the dissertation in January, and I probably neglected to inform you. Sorry about that. The reason for that change was to avoid confusion with semantic "schemas". Note that RuleData is a camel-style single word equivalent in form to RuleMaker, RuleReserve and RuleTaker.]
So the exported JSON data in this section should be like this:
"960_explanation": "",
"rule_group": "",
"ruledata_version": "",
"rule_version":"",
"rule_criticality": "",
"url": "",
"pattern": "",
"pattern_version": "",
Updated by Huda Hussain 9 months ago
- Assignee changed from Huda Hussain to Joseph Potvin
I made some updates, could you let me know if the issue is resolved?
Updated by Joseph Potvin about 1 month ago
- Status changed from Feedback to In Progress
- Assignee changed from Joseph Potvin to Huda Hussain
Looks like I had a mistake in my example in this task:
{
"id": "7ab058a7-e87d-4231-8005-3ff8f2e5b5cb",
"uuid": "7ab058a7-e87d-4231-8005-3ff8f2e5b5cb",
"rule_id": "7ab058a7-e87d-4231-8005-3ff8f2e5b5cb",
"rulereserve_nodes": "*",
"version_standard_url": "https://semver.org/",
"dwds_schema_version": "0.0.0", <<< change this to "ruledata_version": "0.0.0",
"properties": {
I previously said this is what should be in the export:
"960_explanation": "",
"rule_group": "",
"ruledata_version": "", <<< but this was an incorrect suggestion. It should be "rule_version"
"rule_version":"",
"rule_criticality": "",
"url": "",
"pattern": "",
"pattern_version": "",
"id": "7ab058a7-e87d-4231-8005-3ff8f2e5b5cb"
},
Updated by Huda Hussain about 1 month ago
- File clipboard-202503221500-osk4x.png clipboard-202503221500-osk4x.png added
- Assignee changed from Huda Hussain to Joseph Potvin
I am a bit confused:
"
Looks like I had a mistake in my example in this task:
{
"id": "7ab058a7-e87d-4231-8005-3ff8f2e5b5cb",
"uuid": "7ab058a7-e87d-4231-8005-3ff8f2e5b5cb",
"rule_id": "7ab058a7-e87d-4231-8005-3ff8f2e5b5cb",
"rulereserve_nodes": "*",
"version_standard_url": "https://semver.org/",
"dwds_schema_version": "0.0.0", <<< change this to "ruledata_version": "0.0.0",
"properties": {
I previously said this is what should be in the export:
"960_explanation": "",
"rule_group": "",
"ruledata_version": "", <<< but this was an incorrect suggestion. It should be "rule_version"
"rule_version":"",
"rule_criticality": "",
"url": "",
"pattern": "",
"pattern_version": "",
"id": "7ab058a7-e87d-4231-8005-3ff8f2e5b5cb"
},"
So based on this, there is Rule version, where is the Rule Schema version stored?
Updated by Joseph Potvin about 1 month ago
- Assignee changed from Joseph Potvin to Huda Hussain
Using a fresh rule .json export to finish the tweak. See "<<<"
{
"id": "f2b84ec7-1b38-41de-9177-ca3a2dc4afb6",
"uuid": "f2b84ec7-1b38-41de-9177-ca3a2dc4afb6",
"rule_id": "f2b84ec7-1b38-41de-9177-ca3a2dc4afb6",
"rulereserve_nodes": "*",
"version_standard_url": "https://semver.org/",
"dwds_schema_version": "0.0.0", <<< THIS SHOULD BE CHANGED TO "ruledata_version"
"properties": {
"id": "f2b84ec7-1b38-41de-9177-ca3a2dc4afb6"
},
"metadata": {
"rule": {
"120_title": "Section 39: Minimum capital funds. Banking Institutions Act 2023 (as amended) ",
"240_summary": "Banks must maintain Central Bank-set minimum capital (fixed sum or % of risk assets). Systemic banks face higher requirements. Penalties for non-compliance. Temporary lower reserves possible.",
"960_explanation": "Banks must maintain minimum capital, either a fixed amount or a percentage of risk-weighted assets, as set by the Central Bank. If a bank is deemed systemically important, it faces stricter capital requirements. The Central Bank can require additional capital if existing funds are inadequate or permit temporary lower reserves for valid reasons. Capital rules may apply to the bank, its holding company, and affiliates on a consolidated basis if the Bank decides. Non-compliance with these rules results in penalties. The Bank also determines risk weightings and percentages for assets and exposures.",
"rule_group": "",
"rule_version": "",
"rule_criticality": "experimental",
"url": "https://www.bon.com.na/Regulations/Banking-Institutions-Act-2023.aspx",
"pattern": "",
"pattern_version": "",
Updated by Huda Hussain about 1 month ago
- Assignee changed from Huda Hussain to Joseph Potvin
This should be fixed