Skip to content

Required flag silently not honored when including a partial schema. #141

@mschaef-da

Description

@mschaef-da

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 #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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions