Skip to content

Commit f3a562f

Browse files
committed
validation issue for numbers #144
1 parent d1e782f commit f3a562f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

projects/dashjoin/json-schema-form/src/lib/json-schema-form.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,7 @@ export class JsonSchemaFormComponent implements OnInit, OnChanges {
660660
if (this.schema.case && this.schema.case.indexOf(this.switch) < 0) {
661661
return null;
662662
}
663-
if (this.value) {
663+
if (this.value || this.value === 0) {
664664
if (this.schema.maxItems) {
665665
if (!(this.value.length <= this.schema.maxItems)) {
666666
return this.e('Only ' + this.schema.maxItems + ' array entries allowed');

0 commit comments

Comments
 (0)