Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions atom_tools/lib/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,9 +246,9 @@ def _create_param_object(self, ep: str, orig_ep: str, call: Dict | None) -> List
if not params and call:
ptypes = set(call.get('paramTypes', []))
if len(ptypes) > 1:
params = [{'name': param, 'in': 'header'} for param in ptypes if param != 'ANY']
params = [{'name': param, 'in': 'header'} for param in ptypes if param != 'ANY' and not param.startswith("__") and param not in ("LAMBDA",)]
else:
params = [{'name': param, 'in': 'header'} for param in ptypes]
params = [{'name': param, 'in': 'header'} for param in ptypes if not param.startswith("__") and param not in ("LAMBDA",)]
return params

def _extract_endpoints(self, method: str) -> List[str]:
Expand Down Expand Up @@ -315,6 +315,8 @@ def _filter_matches(self, matches: List[str], code: str) -> List[str]:

for m in matches:
if m and m[0] not in ('.', '@', ','):
if "/" not in m or "node_modules" in m or "@types" in m:
continue
nm = m.replace('"', '').replace("'", '').lstrip('/')
filtered_matches.append(f'/{nm}')

Expand Down
Loading