diff --git a/jsonschema/_validators.py b/jsonschema/_validators.py index 0f7b6fb1c..256a4f488 100644 --- a/jsonschema/_validators.py +++ b/jsonschema/_validators.py @@ -63,7 +63,7 @@ def additionalProperties(validator, aP, instance, schema): yield ValidationError(error) else: error = "Additional properties are not allowed (%s %s unexpected)" - yield ValidationError(error % extras_msg(extras)) + yield ValidationError(error % extras_msg(sorted(extras))) def items(validator, items, instance, schema):