Merge branch 'master' into fix-any-telemetry

This commit is contained in:
Shefali Joshi 2020-04-01 09:55:03 -07:00 committed by GitHub
commit 3034ec016a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -201,6 +201,8 @@ export default {
if (foundMetadata.enumerations !== undefined) {
this.operationFormat = 'enum';
this.enumerations = foundMetadata.enumerations;
} else if (foundMetadata.format === 'string' || foundMetadata.format === 'number') {
this.operationFormat = foundMetadata.format;
} else if (foundMetadata.hints.hasOwnProperty('range')) {
this.operationFormat = 'number';
} else if (foundMetadata.hints.hasOwnProperty('domain')) {
@ -208,7 +210,7 @@ export default {
} else if (foundMetadata.key === 'name') {
this.operationFormat = 'string';
} else {
this.operationFormat = 'string';
this.operationFormat = 'number';
}
}
this.updateInputVisibilityAndValues();