fix(json-schema-2020-12): use consistent comparison operators for displaying min/max constraints (#10159)

This commit is contained in:
Helen Kosova
2025-04-04 15:05:48 +03:00
committed by GitHub
parent b9ed7e95da
commit d9c778e2ec

View File

@@ -295,10 +295,10 @@ const stringifyConstraintRange = (label, min, max) => {
} }
} }
if (hasMin) { if (hasMin) {
return `>= ${min} ${label}` return ` ${min} ${label}`
} }
if (hasMax) { if (hasMax) {
return `<= ${max} ${label}` return ` ${max} ${label}`
} }
return null return null