-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
validate model config #7965
validate model config #7965
Conversation
filename: The path to the file which should be read. | ||
|
||
Raises: | ||
YamlValidationException: In case the model configuration doesn't match the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that's a different one than before but in my opinion the correct one. Double checked the code and nothing depends on the exact exception type.
8c85976
to
3bca31f
Compare
content = read_file(filename) | ||
|
||
rasa.shared.utils.validation.validate_yaml_schema(content, schema) | ||
return read_yaml(content) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I changed how it works in my PR (#7968) but it should still be fine.
Proposed changes:
endpoints.yml
,credentials.yml
) using a schema instead of a Python checkrasa.shared
code but aren't inrasa.shared
torasa.shared
language
not a required key after double checking with TyStatus (please check what you already did):
black
(please check Readme for instructions)