Required flag silently not honored when including a partial schema.
See original GitHub issueThis YAML:
x: 3
Gives this result:
~$ pykwalify -d subschema-required-data.yaml -s subschema-required-schema.yaml
INFO - validation.valid
When validated against this schema:
schema;coordinate_value:
type: number
mapping:
point:
mapping:
x:
required: true
include: coordinate_value
y:
required: true
include: coordinate_value
It looks like https://github.com/Grokzen/pykwalify/pull/85 was work on a similar scenario, but it seems like either the required flag at the include site should be ignored, or a warning/error should be issued signaling that this is not a valid schema definition.
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
Part 4, add a model to an ASP.NET Core MVC app
With this attribute: The user isn't required to enter time information in the date field. Only the date is displayed, not time information....
Read more >Kubectl Reference Docs - Kubernetes
This flag can't be used together with -f or -R. ... "false" or "ignore" will not perform any schema validation, silently dropping any...
Read more >MySQL bugs fixed by Aurora MySQL database engine updates
Fixed an issue where after a RENAME TABLE operation that moved a table to a different schema, InnoDB failed to update INNODB_SYS_DATAFILES data...
Read more >Configuring runners - GitLab Docs
Not specified, git fetch flags default to --prune --quiet along with the default flags. Given the value none , git fetch is executed...
Read more >How can I pass parameters to a partial view in mvc 4
As with the model, Razor will implicitly pass your partial the view's ViewData by default, so if you had ViewBag.Id in your view,...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Ye, i start to think that i need to rewrite the rule engine to sort this out, the lazy loading way that i am currently doing is causing more issues then what it is worth. I guess i have to fix the issues with infinite recursion problem some other way and then most of these kinds of issues would be sorted out itself.
@mschaef-da Issue resolved inside branch feature/rebuild-include Closing this as fixed for now.