Skip to content

Commit

Permalink
Mark fields as optional in Postman import
Browse files Browse the repository at this point in the history
  • Loading branch information
darrenburns committed Oct 11, 2024
1 parent e0cb6a5 commit c0948bf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/posting/importing/postman.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import json
import re

from pydantic import BaseModel
from pydantic import BaseModel, Field

from rich.console import Console

Expand Down Expand Up @@ -66,8 +66,8 @@ class RequestItem(BaseModel):


class PostmanCollection(BaseModel):
info: dict[str, str]
variable: List[Variable]
info: dict[str, str] = Field(default_factory=dict)
variable: List[Variable] = Field(default_factory=list)

item: List[RequestItem]

Expand Down

0 comments on commit c0948bf

Please sign in to comment.