use Pydantic to validate CLI for project setup #2121
Answered
by
YuriiMotov
zevaverbach
asked this question in
Questions
|
I gather this isn't currently happening? I mistakenly entered a Sentry key instead of a URL but this wasn't enforced until |
Answered by
YuriiMotov
Sep 2, 2025
Replies: 2 comments
|
So, as far as I understand, the idea is to add validation to project setup script. Currently project uses Copier. |
0 replies
Answer selected by
tiangolo
|
Also from the simple validation logic, this wouldn't be done easily with pydantic core features. A key and a url is just a string and it would be necessary to write dedicated @validator logic. Is it worth to spend time on this? |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
So, as far as I understand, the idea is to add validation to project setup script.
Currently project uses Copier.
I investigated a little and didn't find simple way to implement this with Copier