pradelf commited on
Commit
dd44a35
·
1 Parent(s): b40bba3

refactor: update RentalFeatures model to make fields mandatory

Browse files
Files changed (1) hide show
  1. app.py +12 -12
app.py CHANGED
@@ -53,18 +53,18 @@ app = FastAPI(
53
 
54
 
55
  class RentalFeatures(BaseModel):
56
- mileage: int | None = None
57
- engine_power: int | None = None
58
- fuel: str | None = None
59
- paint_color: str | None = None
60
- car_type: str | None = None
61
- private_parking_available: int | None = None
62
- has_gps: int | None = None
63
- has_air_conditioning: int | None = None
64
- automatic_car: int | None = None
65
- has_getaround_connect: int | None = None
66
- has_speed_regulator: int | None = None
67
- winter_tires: int | None = None
68
 
69
 
70
  @app.get("/")
 
53
 
54
 
55
  class RentalFeatures(BaseModel):
56
+ mileage: int
57
+ engine_power: int
58
+ fuel: str
59
+ paint_color: str
60
+ car_type: str
61
+ private_parking_available: int
62
+ has_gps: int
63
+ has_air_conditioning: int
64
+ automatic_car: int
65
+ has_getaround_connect: int
66
+ has_speed_regulator: int
67
+ winter_tires: int
68
 
69
 
70
  @app.get("/")