question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Required flag silently not honored when including a partial schema.

See original GitHub issue

This 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:closed
  • Created 5 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
Grokzencommented, Oct 17, 2018

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.

0reactions
Grokzencommented, Nov 10, 2018

@mschaef-da Issue resolved inside branch feature/rebuild-include Closing this as fixed for now.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found