From 6a9c35e590600f5fce73f19faa4f3bc53fa2f331 Mon Sep 17 00:00:00 2001 From: Nigel Metheringham Date: Sat, 23 Mar 2024 11:09:08 +0000 Subject: [PATCH] fix: Ensure SearchCriteria are not seen as Requests --- utilities/process_schema.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utilities/process_schema.py b/utilities/process_schema.py index 3b37bee..d927949 100644 --- a/utilities/process_schema.py +++ b/utilities/process_schema.py @@ -354,7 +354,8 @@ def process_schema( xsd_component = schema.types[item] if xsd_component.is_complex(): match = re.search( - r"(Request|Response)(\d+((mp|sp|V)\d+)?)?$", + # Look for Requests/Responses but exclude SearchCriteria + r"^(?!SearchCriteria).+(Request|Response)(\d+((mp|sp|V)\d+)?)?$", xsd_component.name, ) if match and match.group(1) == "Request":