mirror of
https://github.com/Redocly/redoc.git
synced 2025-08-08 06:04:56 +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;
|
: schema.minimum;
|
||||||
const maximum =
|
const maximum =
|
||||||
typeof schema.exclusiveMaximum === 'number'
|
typeof schema.exclusiveMaximum === 'number'
|
||||||
? Math.max(schema.exclusiveMaximum, schema.maximum ?? Infinity)
|
? Math.max(schema.exclusiveMaximum, schema.maximum ?? 0)
|
||||||
: schema.maximum;
|
: schema.maximum;
|
||||||
const exclusiveMinimum =
|
const exclusiveMinimum =
|
||||||
typeof schema.exclusiveMinimum === 'number' ? true : schema.exclusiveMinimum;
|
typeof schema.exclusiveMinimum === 'number' ? true : schema.exclusiveMinimum;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user