Skip to content

Schema parser requires message attribute blockLength which should be optional #10

@harenbrs

Description

@harenbrs

When parsing a schema with message tags that don't specify the blockLength attribute, I get this error:

...
...\lib\site-packages\sbe\__init__.py", line 1088, in _parse_schema      
    blockLength=int(attrs['blockLength']),
KeyError: 'blockLength'

It looks like the parser depends on this attribute being there, however SBE specifies that blockLength is optional:

<xs:attribute name="blockLength" type="xs:nonNegativeInteger" use="optional">

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