Skip to content

Commit

Permalink
fix: Edge cases
Browse files Browse the repository at this point in the history
  • Loading branch information
ll931217 committed Sep 14, 2024
1 parent 913e14a commit 090b51e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/posting/importing/postman.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
class Variable(BaseModel):
key: str
value: Optional[str] = None
src: Optional[str] = None
src: Optional[str | List[str]] = None
fileNotInWorkingDirectoryWarning: Optional[str] = None
filesNotInWorkingDirectory: Optional[List[str]] = None
type: Optional[str] = None
Expand Down Expand Up @@ -80,7 +80,7 @@ def generate_directory_structure(
directories.append(str(full_path))
generate_directory_structure(item.item, new_path, base_path)
if item.request is not None:
request_name = item.name
request_name = re.sub(r"[^A-Za-z0-9\.]+", "", item.name)
file_name = f"{request_name}.posting.yaml"
full_path = Path(base_path) / current_path / file_name
create_request_file(full_path, item)
Expand Down

0 comments on commit 090b51e

Please sign in to comment.