Skip to content

Commit c5280ec

Browse files
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 801848f commit c5280ec

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

service/routes/marvel.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
import json
66
import re
7-
from typing import Annotated, Optional
7+
from typing import Annotated, Literal, Optional
88

99
from fastapi import APIRouter, Query
1010
from fastapi.responses import JSONResponse, PlainTextResponse, Response
@@ -169,7 +169,7 @@ def marvel_get_base(
169169
h: Annotated[Optional[str], Query(description="Headers to display as a string value (e.g. a single header or a comma-separated list).")] = None,
170170
help: Annotated[Optional[str], Query(description=f"List available options. {_TF_TEXT}")] = None,
171171
limit: Annotated[Optional[str], Query(description="Limit result set. '0' for no limit")] = None,
172-
nulls: Annotated[Optional[str], Query(description=f"Sort null values first or last in order. {_TF_TEXT}")] = None,
172+
nulls: Annotated[Optional[Literal["first", "last"]], Query(description="Sort null values either 'first' or 'last' in the sort order.")] = None,
173173
pretty: Annotated[Optional[str], Query(description=f"Pretty print the result set. {_TF_TEXT}")] = None,
174174
prune: Annotated[Optional[str], Query(description=f"Remove keys with null values. {_TF_TEXT}")] = None,
175175
random: Annotated[Optional[str], Query(description=f"Returns array of random superheros based on limit. {_TF_TEXT}")] = None,

0 commit comments

Comments
 (0)