Skip to content

StringSchema.hashCode inconsistent across executions #505

@elrodro83

Description

@elrodro83

This seems to happen because formatValidator is a lambda (https://github.com/everit-org/json-schema/blob/master/core/src/main/java/org/everit/json/schema/FormatValidator.java#L2), and lambdas d not have a fixed hashCode.

This is causing different runs to sort subschemas of a CombinedSchema differently, after this change: 81f0b2f#diff-66627cee53cd6d5d44872a44ab6dac6906bdf991afa3433ada63cbdea1466f63R177

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