Skip to content

armgit / fli

Public Imported from GitHub
0

Google Flights MCP, CLI and Python Library

Add default values for PassengerInfo

Punit Aranic5c43ab6ce15
diff --git a/fli/models/google_flights.py b/fli/models/google_flights.py
index caf6cf9..59ce471 100644
--- a/fli/models/google_flights.py
+++ b/fli/models/google_flights.py
@@ -54,10 +54,10 @@ class TimeRestrictions(BaseModel):
class PassengerInfo(BaseModel):
- adults: NonNegativeInt
- children: NonNegativeInt
- infants_in_seat: NonNegativeInt
- infants_on_lap: NonNegativeInt
+ adults: NonNegativeInt = 1
+ children: NonNegativeInt = 0
+ infants_in_seat: NonNegativeInt = 0
+ infants_on_lap: NonNegativeInt = 0
class PriceLimit(BaseModel):