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

Validation errors on Run #23

Open
goyometeojorito opened this issue Jul 16, 2023 · 2 comments
Open

Validation errors on Run #23

goyometeojorito opened this issue Jul 16, 2023 · 2 comments

Comments

@goyometeojorito
Copy link

Show this errors in console at run

pydantic_core._pydantic_core.ValidationError: 11 validation errors for BackendDevSettings
BACKEND_SERVER_HOST
  Extra inputs are not permitted [type=extra_forbidden, input_value='127.0.0.1', input_type=str]
    For further information visit https://errors.pydantic.dev/2.0.3/v/extra_forbidden
BACKEND_SERVER_PORT
  Extra inputs are not permitted [type=extra_forbidden, input_value='8000', input_type=str]
    For further information visit https://errors.pydantic.dev/2.0.3/v/extra_forbidden
BACKEND_SERVER_WORKERS
  Extra inputs are not permitted [type=extra_forbidden, input_value='4', input_type=str]
    For further information visit https://errors.pydantic.dev/2.0.3/v/extra_forbidden
@xIMRANx
Copy link

xIMRANx commented Jul 29, 2023

I have the same problem, although a week ago when I ran another project based on this template, there was no such problem

@duchuyvp
Copy link
Contributor

duchuyvp commented Nov 9, 2023

Since pydantic.BaseConfig is deprecated, use model_config = ConfigDict(extra='allow') instead of subclass Config

More information: https://docs.pydantic.dev/latest/api/config/#pydantic.config.ConfigDict

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

3 participants