Merge pull request #550 from FriedRiceNoodles/chore/comments

chore(validator): comment out a log-line
This commit is contained in:
tanbowensg 2022-07-28 16:44:35 +08:00 committed by GitHub
commit 30d335040e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -74,7 +74,6 @@ export function generateDefaultValueFromSpec(
spec: JSONSchema7,
returnPlaceholderForAny = false
): JSONSchema7Type {
console.log(spec);
if (!spec.type) {
if ((spec.anyOf && spec.anyOf!.length > 0) || (spec.oneOf && spec.oneOf.length > 0)) {
const subSpec = (spec.anyOf! || spec.oneOf)[0];