Skip to content

Conversation

@astandrik
Copy link

Description

  • Enforce non-empty values in toc.yaml by extending TOC validation to treat empty strings in scalar fields (name, href, title, label, navigation) as errors.
  • Preserve existing error format for TOC structure issues while adding a specific message for empty values (e.g. empty value is not allowed) including the precise field path (e.g. items[2].items[0].name).
  • Add regression coverage via a new e2e fixture and test that verify builds fail with code 1 and report the expected error messages when toc.yaml contains empty values.

Related issue: fixes #1399

@astandrik astandrik changed the title Astandrik.1399 fix: Prevent empty values in toc.yaml fields Nov 15, 2025
@astandrik
Copy link
Author

@martyanovandrey would appreciate your review here

@3y3 3y3 requested a review from a team as a code owner December 23, 2025 15:29
@3y3 3y3 requested review from main-kun and removed request for a team December 23, 2025 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Prevent empty values in toc.yaml fields

1 participant