mirror of
https://github.com/Redocly/redoc.git
synced 2025-07-06 12:03:04 +03:00
fix lint
This commit is contained in:
parent
7fee427ba2
commit
ad7b236ef7
|
@ -137,16 +137,16 @@ const injectors = {
|
||||||
check: (propertySchema) => (propertySchema.type === 'integer' || propertySchema.type === 'number'),
|
check: (propertySchema) => (propertySchema.type === 'integer' || propertySchema.type === 'number'),
|
||||||
inject: (injectTo, propertySchema = injectTo) => {
|
inject: (injectTo, propertySchema = injectTo) => {
|
||||||
var range = '';
|
var range = '';
|
||||||
if (propertySchema.minimum != null && propertySchema.maximum != null) {
|
if (propertySchema.minimum != undefined && propertySchema.maximum != undefined) {
|
||||||
range += propertySchema.exclusiveMinimum ? '( ' : '[ ';
|
range += propertySchema.exclusiveMinimum ? '( ' : '[ ';
|
||||||
range += propertySchema.minimum;
|
range += propertySchema.minimum;
|
||||||
range += ' .. ';
|
range += ' .. ';
|
||||||
range += propertySchema.maximum;
|
range += propertySchema.maximum;
|
||||||
range += propertySchema.exclusiveMaximum ? ' )' : ' ]';
|
range += propertySchema.exclusiveMaximum ? ' )' : ' ]';
|
||||||
} else if (propertySchema.maximum != null) {
|
} else if (propertySchema.maximum != undefined) {
|
||||||
range += propertySchema.exclusiveMaximum? '< ' : '<= ';
|
range += propertySchema.exclusiveMaximum? '< ' : '<= ';
|
||||||
range += propertySchema.maximum;
|
range += propertySchema.maximum;
|
||||||
} else if (propertySchema.minimum != null) {
|
} else if (propertySchema.minimum != undefined) {
|
||||||
range += propertySchema.exclusiveMinimum ? '> ' : '>= ';
|
range += propertySchema.exclusiveMinimum ? '> ' : '>= ';
|
||||||
range += propertySchema.minimum;
|
range += propertySchema.minimum;
|
||||||
}
|
}
|
||||||
|
@ -160,11 +160,11 @@ const injectors = {
|
||||||
check: propertySchema => (propertySchema.type === 'string'),
|
check: propertySchema => (propertySchema.type === 'string'),
|
||||||
inject: (injectTo, propertySchema = injectTo) => {
|
inject: (injectTo, propertySchema = injectTo) => {
|
||||||
var range;
|
var range;
|
||||||
if (propertySchema.minLength != null && propertySchema.maxLength != null) {
|
if (propertySchema.minLength != undefined && propertySchema.maxLength != undefined) {
|
||||||
range = `[ ${propertySchema.minLength} .. ${propertySchema.maxLength} ]`;
|
range = `[ ${propertySchema.minLength} .. ${propertySchema.maxLength} ]`;
|
||||||
} else if (propertySchema.maxLength != null) {
|
} else if (propertySchema.maxLength != undefined) {
|
||||||
range = '<= ' + propertySchema.maxLength;
|
range = '<= ' + propertySchema.maxLength;
|
||||||
} else if (propertySchema.minLength != null) {
|
} else if (propertySchema.minLength != undefined) {
|
||||||
range = '>= ' + propertySchema.minLength;
|
range = '>= ' + propertySchema.minLength;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -60,7 +60,7 @@
|
||||||
"awesome-typescript-loader": "^2.2.1",
|
"awesome-typescript-loader": "^2.2.1",
|
||||||
"branch-release": "^1.0.3",
|
"branch-release": "^1.0.3",
|
||||||
"chalk": "^1.1.3",
|
"chalk": "^1.1.3",
|
||||||
"codelyzer": "^1.0.0-beta.0",
|
"codelyzer": "^1.0.0-beta.2",
|
||||||
"copy-webpack-plugin": "^3.0.1",
|
"copy-webpack-plugin": "^3.0.1",
|
||||||
"core-js": "^2.4.1",
|
"core-js": "^2.4.1",
|
||||||
"coveralls": "^2.11.9",
|
"coveralls": "^2.11.9",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user