-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
bugSomething isn't workingSomething isn't workinghelp wantedContributions especially welcomeContributions especially welcomepreviewRelated to preview mode featuresRelated to preview mode featuresruleImplementing or modifying a lint ruleImplementing or modifying a lint rule
Description
Aliases for query parameters are not considered by FAST003, which leads to an incorrect error message.
The following valid code
from typing import Annotated
from fastapi import FastAPI, Path
app = FastAPI()
@app.get("/documents/{documentId}")
def get_document(document_id: Annotated[str, Path(alias="documentId")]) -> str:
return "Lorem Ipsum"outputs:
FAST003 Parameter
documentIdappears in route path, but not inget_documentsignature
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinghelp wantedContributions especially welcomeContributions especially welcomepreviewRelated to preview mode featuresRelated to preview mode featuresruleImplementing or modifying a lint ruleImplementing or modifying a lint rule