From cedf4d35e15efcb7fcf41cd4b3c10d00159c2106 Mon Sep 17 00:00:00 2001 From: Ernesto Ruge Date: Sat, 29 Nov 2025 09:52:04 +0100 Subject: [PATCH] deprecate parking_site.max_stay --- .../parking_site/parking_sites_schema.py | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/webapp/shared/parking_site/parking_sites_schema.py b/webapp/shared/parking_site/parking_sites_schema.py index b42ac3d..c31c385 100644 --- a/webapp/shared/parking_site/parking_sites_schema.py +++ b/webapp/shared/parking_site/parking_sites_schema.py @@ -140,7 +140,8 @@ 'address': StringField( maxLength=512, required=False, - description='Full address including street postalcode and city. Preferable in format {street with number}, {postalcode} {city}', + description='Full address including street postalcode and city. Preferable in format {street with number}, ' + '{postalcode} {city}', ), 'description': StringField( maxLength=4096, @@ -152,13 +153,18 @@ description='ON_STREET, OFF_STREET_PARKING_GROUND, UNDERGROUND and CAR_PARK are used at car parks, ' 'WALL_LOOPS, STANDS, LOCKERS, SHED, TWO_TIER, BUILDING are used at bike parks, and OTHER at both.', ), - 'max_stay': IntegerField(minimum=0, required=False, description='Maximum stay, in seconds.'), + 'max_stay': IntegerField( + minimum=0, + required=False, + description='*Deprecated, use restrictions.max_stay instead.*
Maximum stay, in seconds.', + ), 'max_height': IntegerField(minimum=0, required=False, description='Max height, in centimeters.'), 'max_width': IntegerField(minimum=0, required=False, description='Max width, in centimeters.'), 'has_lighting': BooleanField(required=False), 'park_and_ride_type': ArrayField(items=EnumField(enum=ParkAndRideType), required=False), 'is_supervised': BooleanField( - required=False, description='*Deprecated, will be replaced by supervision_type.*' + required=False, + description='*Deprecated, will be replaced by supervision_type.*', ), 'supervision_type': EnumField(enum=SupervisionType, required=False), 'is_covered': BooleanField(required=False), @@ -172,7 +178,7 @@ 'fee_description': StringField(required=False), 'has_fee': BooleanField(required=False), 'static_data_updated_at': DateTimeField( - description='Last time static fields were updated. Can be set by the client.' + description='Last time static fields were updated. Can be set by the client.', ), 'realtime_data_updated_at': DateTimeField( required=False, @@ -198,8 +204,8 @@ 'restricted_to': ArrayField( items=Reference(obj='ParkingSiteRestriction'), required=False, - description='*Deprecated, use restrictions instead.*
Restrictions which apply. If there are multiple options, they should be understood with an ' - 'logical or.', + description='*Deprecated, use restrictions instead.*
Restrictions which apply. If there are multiple ' + 'options, they should be understood with an logical or.', ), 'restrictions': ArrayField( items=Reference(obj='ParkingSiteRestriction'),