diff --git a/opencapif_sdk/api_schema_translator.py b/opencapif_sdk/api_schema_translator.py index 2d4ebc0dfbac6607aca63d5f47b6d845e038098e..12c2ad9fe80c94d7c81ea45a3d9b5e821a08ae42 100644 --- a/opencapif_sdk/api_schema_translator.py +++ b/opencapif_sdk/api_schema_translator.py @@ -164,10 +164,13 @@ class api_schema_translator: def __build_aef_profiles(self, ip, port, api_version, fqdn=None, ipv6Addr=None, ): """Builds the aefProfiles section based on the paths and components in the API info.""" aef_profiles = [] + http_methods = {"get", "put", "post", "delete", "options", "head", "patch", "trace"} resources = [] for path, methods in self.api_info.get("paths", {}).items(): for method, details in methods.items(): + if method.lower() not in http_methods: + continue resource = { "resourceName": details.get("summary", "Unnamed Resource"), "commType": "REQUEST_RESPONSE",