Loading utils/translate_spec.py +2 −1 Original line number Diff line number Diff line Loading @@ -18,7 +18,7 @@ json_signature_struct = { json_x590_signature_struct = { "type": "array", "minItems": 1, "items": {"type": "object", "properties": {"hash_algorithm": {"type": "string"}, "algorithm": {"type": "string"}, "public_key": {"type": "string"}, "value": {"type": "string"} } "required": ["haash_algorithm", "algorithm", "value"] } "required": ["hash_algorithm", "algorithm", "value"] } } Loading Loading @@ -94,6 +94,7 @@ if __name__ == "__main__": logging.info("Modifying signature elements") js["$defs"]["HI1Message"]["patternProperties"] = {"^@": {"type": "string"}} js["$defs"]["HI1Message"]["properties"].pop("xmldsig:Signature") js["$defs"]["HI1Message"]["properties"]["Signature"] = json_signature_struct js["$defs"]["HI1Message"]["properties"]["Signatures"] = json_x590_signature_struct Loading Loading
utils/translate_spec.py +2 −1 Original line number Diff line number Diff line Loading @@ -18,7 +18,7 @@ json_signature_struct = { json_x590_signature_struct = { "type": "array", "minItems": 1, "items": {"type": "object", "properties": {"hash_algorithm": {"type": "string"}, "algorithm": {"type": "string"}, "public_key": {"type": "string"}, "value": {"type": "string"} } "required": ["haash_algorithm", "algorithm", "value"] } "required": ["hash_algorithm", "algorithm", "value"] } } Loading Loading @@ -94,6 +94,7 @@ if __name__ == "__main__": logging.info("Modifying signature elements") js["$defs"]["HI1Message"]["patternProperties"] = {"^@": {"type": "string"}} js["$defs"]["HI1Message"]["properties"].pop("xmldsig:Signature") js["$defs"]["HI1Message"]["properties"]["Signature"] = json_signature_struct js["$defs"]["HI1Message"]["properties"]["Signatures"] = json_x590_signature_struct Loading