Skip to content
This repository has been archived by the owner on Nov 22, 2023. It is now read-only.

Commit

Permalink
(PC-8434) change typing of route /subcategories to use enums
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinewg committed Sep 24, 2021
1 parent 9e07b8b commit b7e34e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pcapi/routes/native/v1/serialization/offers.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ class Config:


class SearchGroupResponseModel(BaseModel):
name: str
name: subcategories.SearchGroupNameEnum
value: Optional[str]

class Config:
Expand All @@ -308,7 +308,7 @@ class Config:


class HomepageLabelResponseModel(BaseModel):
name: str
name: HomepageLabelNameEnum
value: Optional[str]

class Config:
Expand Down

0 comments on commit b7e34e0

Please sign in to comment.