Skip to content

Process subtrees of the schema that do not specify type #9

Description

@danijar

Already works with the default key but write tests to check if other types work as well. Solution might be to change the conditional from

def _parse(self, name, schema, definition):
    has_type = schema and 'type' in schema
    if definition is not None and not has_type:
        return definition
    # ...

to

def _parse(self, name, schema, definition):
    if definition is not None and not schema:
        return definition
    # ...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions