Skip to content
Discussion options

You must be logged in to vote

@aru88 You cannot use default options in Path. A Path is needed.

fastapi.params.py > 14 from source

class Path(Param):
    in_ = ParamTypes.path

    def __init__(
        self,
        default: Any = ...,
        *,
        alias: Optional[str] = None,
        title: Optional[str] = None,
        description: Optional[str] = None,
        gt: Optional[float] = None,
        ge: Optional[float] = None,
        lt: Optional[float] = None,
        le: Optional[float] = None,
        min_length: Optional[int] = None,
        max_length: Optional[int] = None,
        regex: Optional[str] = None,
        example: Any = Undefined,
        examples: Optional[Dict[str, Any]] = None,
        depre…

Replies: 4 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@aru88
Comment options

@chrisK824
Comment options

@aru88
Comment options

This comment was marked as off-topic.

Comment options

You must be logged in to vote
0 replies
Answer selected by aru88
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Question or problem
5 participants