-
Notifications
You must be signed in to change notification settings - Fork 239
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
Schema file not working anymore with Cerberus 1.3 #489
Comments
it seems this has been fixed in #453. it would be helpful if you could verify it by testing the current |
I tested with the current |
I had the same issue with version 1.3 and current master works fine again. Thanks for the quick solution! Maybe a new bugfix release is possible so this fix reaches more affected parties? |
@nicolaiarocci what about publishing 1.3.1 around the end of the week, given there are no further bug reports, would that fit your schedule? in the |
yep, I plan on releasing by the end of this week. Not sure on the feedback ticket: people will inevitably keep opening new tickets. Might be a good idea for a RC, not-so-good for actual releases methinks. |
+1, looks like I was obliquely hit by this (although I think my problem was partly dependent on having a |
howdy everyone, v1.3.1 has been released a few minutes ago. |
@WeatherGod just to be sure, the |
Uhm, trying to make sure we have terminology correct. I think in this situation, my |
i'm even more confused now. simply asked: does your schema include |
yes, it does have keyschema and valueschema. No, I did not have to change my schema with master as of yesterday (I haven't tried the new release yet, though). Here is the relevant part of my schema and an example that satisfies it: bundles:
type: dict
required: true
valueschema:
type: dict
schema:
sources:
type: list
schema:
type: string
empty: false
coerce: to_list
empty: false
required: true
meta:
type: dict
keyschema:
type: string
empty: false
required: false
keyschema:
type: string
empty: false Example: bundles:
- foo:
sources: some/path/*.txt
meta:
arbitrary: data The config schema would fail using cerberus v1.3.0 with a SchemaError. If I comment out the "meta" section of the schema (and take out the "meta" section in the example), then everything worked in v1.3.0. Interestingly enough, other areas of my larger schema file also had "meta" fields in a |
okay, now all makes sense. 42. |
so, you are satisfied that this is the same bug? If you are, then I am too. |
yes, thanks for your feedback. |
Used Cerberus version / latest commit: Cerberus 1.3 / Python 3.5.2
I have the capacity to improve the docs when my problem is solved.
I have the capacity to submit a patch when a bug is identified.
My question does not concern a practical use-case that I can't figure out
to solve.
Use-case abstract
Since Cerberus 1.3, keyschema and valueschema are deprecated and should still work, but I get an error when using them.
The error is gone when using the new keys keysrules and valuesrules.
Here is my schema :
My Python code :
And the Python error :
Bug report / Feature request
The text was updated successfully, but these errors were encountered: