Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 12 additions & 6 deletions webapp/shared/parking_site/parking_sites_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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.*<br> 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),
Expand All @@ -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,
Expand All @@ -198,8 +204,8 @@
'restricted_to': ArrayField(
items=Reference(obj='ParkingSiteRestriction'),
required=False,
description='*Deprecated, use restrictions instead.*<br>Restrictions which apply. If there are multiple options, they should be understood with an '
'logical or.',
description='*Deprecated, use restrictions instead.*<br>Restrictions which apply. If there are multiple '
'options, they should be understood with an logical or.',
),
'restrictions': ArrayField(
items=Reference(obj='ParkingSiteRestriction'),
Expand Down