Commit a5c0f21f authored by Herbert Slaghekke's avatar Herbert Slaghekke Committed by Mark Canterbury
Browse files

Update file translate_spec.py

parent ac6097c8
Loading
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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"] }
}


@@ -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