mirror of
https://github.com/Redocly/redoc.git
synced 2025-08-07 21:54:53 +03:00
fix maximum value
This commit is contained in:
parent
26575e4ae0
commit
8af06952a4
|
@ -428,7 +428,7 @@ export function humanizeNumberRange(schema: OpenAPISchema): string | undefined {
|
|||
: schema.minimum;
|
||||
const maximum =
|
||||
typeof schema.exclusiveMaximum === 'number'
|
||||
? Math.max(schema.exclusiveMaximum, schema.maximum ?? Infinity)
|
||||
? Math.max(schema.exclusiveMaximum, schema.maximum ?? 0)
|
||||
: schema.maximum;
|
||||
const exclusiveMinimum =
|
||||
typeof schema.exclusiveMinimum === 'number' ? true : schema.exclusiveMinimum;
|
||||
|
|
Loading…
Reference in New Issue
Block a user