diplodoc-platform / diplodoc-platform/cli

Prevent empty values in toc.yaml fields

Open
#1,399 1 comment 0 reactions 0 assignees View on GitHub
good first issue
Dominant language
TypeScript
Stars
123
Forks
51
Avg merge
10h 50m
Merged PRs (30d)
38

Description

**Description:**
`toc.yaml` should not allow fields with empty values.

**Current behavior:**
`toc.yaml` accepts fields with empty values (e.g., `name: ""`) without validation errors.

**Expected behavior:**
Validation should fail if any field in `toc.yaml` has an empty value.

**Steps to reproduce:**
1. Add a field with an empty value in `toc.yaml` (e.g., `name: ""`)
2. Run linting or validation

**Acceptance criteria:**
- Linting fails if any field in `toc.yaml` has an empty value
- Error message clearly indicates which field and its location are invalid

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.