feat: cli flags

This commit is contained in:
evilebottnawi 2020-03-10 16:23:51 +03:00 committed by Tobias Koppers
parent af375f827e
commit 8421268b16
1 changed files with 0 additions and 1 deletions

View File

@ -35,7 +35,6 @@ function getSchemaPart(path) {
function addFlag(schemaPath, schemaPart, multiple) {
const name = decamelize(schemaPath.replace(/\./g, "-"));
// TODO move it under property
const types = schemaPart.enum
? [...new Set(schemaPart.enum.map(item => typeof item))]
: Array.isArray(schemaPart.type)