Skip to content

additionalItems can blow up when rendering a message for a non-homogeneous array #1157

Closed
@michaelmior

Description

The extras_msg function sometimes throws an exception when everything in extras is not the same type because sorting fails.

Assuming the specific sort order is not terribly important, changing from

        return ", ".join(repr(extra) for extra in sorted(extras)), verb

to

        return ", ".join(extra for extra in sorted(map(repr, extras))), verb

should solve the problem.

Metadata

Assignees

No one assigned

    Labels

    BugSomething doesn't work the way it should.Error ReportingIssues related to clearer or more robust validation error reporting

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions