Skip to content
Open
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ repos:
- --ignore-init-module-imports
- --in-place
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 25.12.0
rev: 26.1.0
hooks:
- id: black
args: # arguments to configure black
Expand All @@ -42,7 +42,7 @@ repos:
build|
dist"""
- repo: https://github.com/python-poetry/poetry
rev: 2.2.1
rev: 2.3.1
hooks:
- id: poetry-check
# Please activate this hook in local development environment. In Pre-Commit CI, it would occur error like below:
Expand Down
16 changes: 8 additions & 8 deletions fake_api_server/model/rest_api_doc_config/_model_adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,28 +62,28 @@ def _configure_customize(customize: str, value_format: ValueFormat) -> Tuple[str
_digit = Digit(integer=100, decimal=50)
elif formatter is ValueFormat.Date:
_strategy = FormatStrategy.CUSTOMIZE
(_customize, _variables) = _configure_customize("date_value", ValueFormat.Date)
_customize, _variables = _configure_customize("date_value", ValueFormat.Date)
elif formatter is ValueFormat.DateTime:
_strategy = FormatStrategy.CUSTOMIZE
(_customize, _variables) = _configure_customize("datetime_value", ValueFormat.DateTime)
_customize, _variables = _configure_customize("datetime_value", ValueFormat.DateTime)
elif formatter is ValueFormat.EMail:
_strategy = FormatStrategy.CUSTOMIZE
(_customize, _variables) = _configure_customize("email_value", ValueFormat.EMail)
_customize, _variables = _configure_customize("email_value", ValueFormat.EMail)
elif formatter is ValueFormat.UUID:
_strategy = FormatStrategy.CUSTOMIZE
(_customize, _variables) = _configure_customize("uuid_value", ValueFormat.UUID)
_customize, _variables = _configure_customize("uuid_value", ValueFormat.UUID)
elif formatter is ValueFormat.URI:
_strategy = FormatStrategy.CUSTOMIZE
(_customize, _variables) = _configure_customize("uri_value", ValueFormat.URI)
_customize, _variables = _configure_customize("uri_value", ValueFormat.URI)
elif formatter is ValueFormat.URL:
_strategy = FormatStrategy.CUSTOMIZE
(_customize, _variables) = _configure_customize("url_value", ValueFormat.URL)
_customize, _variables = _configure_customize("url_value", ValueFormat.URL)
elif formatter is ValueFormat.IPv4:
_strategy = FormatStrategy.CUSTOMIZE
(_customize, _variables) = _configure_customize("ipv4_value", ValueFormat.IPv4)
_customize, _variables = _configure_customize("ipv4_value", ValueFormat.IPv4)
elif formatter is ValueFormat.IPv6:
_strategy = FormatStrategy.CUSTOMIZE
(_customize, _variables) = _configure_customize("ipv6_value", ValueFormat.IPv6)
_customize, _variables = _configure_customize("ipv6_value", ValueFormat.IPv6)
else:
raise NotImplementedError

Expand Down
Loading