We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b64dd17 commit 8672460Copy full SHA for 8672460
src/languageservice/services/yamlCompletion.ts
@@ -1113,8 +1113,8 @@ export class YamlCompletion {
1113
case 'number':
1114
case 'integer':
1115
case 'anyOf': {
1116
- let value = propertySchema.default || propertySchema.const;
1117
- if (value) {
+ let value = propertySchema.default === undefined ? propertySchema.const : propertySchema.default;
+ if (isDefined(value)) {
1118
if (type === 'string' || typeof value === 'string') {
1119
value = convertToStringValue(value);
1120
}
0 commit comments