Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support field type on Schema default argument. #49

Closed
koxudaxi opened this issue Aug 23, 2019 · 0 comments
Closed

Support field type on Schema default argument. #49

koxudaxi opened this issue Aug 23, 2019 · 0 comments

Comments

@koxudaxi
Copy link
Owner

koxudaxi commented Aug 23, 2019

Detail

The feature supports field type on Schema default argument when the field does not have annotation.

eg

from pydantic import BaseModel, Schema

class A(BaseModel):
   a = Schema(123)

A(a=456)  # correct. the type is int
A(a='abc') # wrong

PR

#47

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant