Skip to content

Modification not backward compatible in XsdRestriction (xsdParser 1.2.5+) #57

@mttfranci

Description

@mttfranci

First of all, I would like to thank you for providing this very usuful xsd parser.

Describe the bug
Upgrading xsdParser version from 1.2.4 to 1.2.6, the return type of method getPattern() has been changed. (from single value to list).
Here is the commit introducing the breaking change :
859d897
This broke my software's build.

Expected behavior
Creating new method for new return type, flag the old one as deprecated and wait some time before removal.
Maybe using some sort of convention for breaking changes, for instance as in
semantic versioning
(Changing the major version when a new release is not backward compatible)

Library Version
Upgrading from 1.2.4 to 1.2.6

Additional context
Here is a sample of the code that broke :
AutodocAttribute line 95

Thanks again!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions