We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 91ee153 commit 2675e84Copy full SHA for 2675e84
src/languageservice/services/yamlCompletion.ts
@@ -1114,8 +1114,8 @@ export class YamlCompletion {
1114
case 'number':
1115
case 'integer':
1116
case 'anyOf': {
1117
- let value = propertySchema.default || propertySchema.const;
1118
- if (value) {
+ let value = propertySchema.default === undefined ? propertySchema.const : propertySchema.default;
+ if (isDefined(value)) {
1119
if (type === 'string' || typeof value === 'string') {
1120
value = convertToStringValue(value);
1121
}
0 commit comments