-
Notifications
You must be signed in to change notification settings - Fork 72
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
models: do not enforce pydantic models on legacy files #1204
Conversation
cd6abaf
to
5867f7a
Compare
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.
Found a typo, but otherwise I think this makes sense
f24af81
to
b876def
Compare
tests/spread/smoketests/metafiles/unenforced_bad_yaml/task.yaml
Outdated
Show resolved
Hide resolved
yaml.dump( | ||
charmcraft_config.config.dict( | ||
include={"options"}, exclude_none=True, by_alias=True | ||
if charmcraft_config.config: |
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.
not for this PR, but for the next release, we probably want for b876def#diff-393cfb3bc4ec4de9d80e214583c4e8d6a4ca712299b7416d32391263674e3238R26 to inherit from YamlModel, that would clean this up a bit.
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.
these tests are not running, none of the metafiles ones are
tests/spread/smoketests/metafiles/unenforced_bad_yaml/task.yaml
Outdated
Show resolved
Hide resolved
a3fc7e2
to
f725f8a
Compare
Only warning when found invalid file for backward compatible.
f725f8a
to
c1256e1
Compare
Only warning when found invalid file for backward compatible.
Fixes #1208