Skip to main content

YAML Description Period Manager

One script. Five modes. All problems solved.

Quick Start

Examples

Modes Explained

Typical Workflow

What It Does

fix mode adds periods to:

clean mode removes incorrect periods from:

restore mode fixes list items:

blanks mode removes extra lines:

Safety Features

  • ✅ Built-in verification prevents corrupting files
  • check mode shows what will change (without changing)
  • ✅ Only modifies description fields (never $ref, example, type, etc.)
  • ✅ Handles single-line and multi-line descriptions
  • ✅ Works with quoted and unquoted text
  • ✅ Preserves code formatting (backticks)

Batch Processing

Why This Script?

This script was created to solve a common problem:
  1. Many YAML description fields are missing periods
  2. Bulk find/replace accidentally modifies non-description fields
  3. YAML breaks with periods in $ref, example, type, etc.
  4. Manual fixes are time-consuming and error-prone
This script solves all of these issues safely and automatically.

Requirements

  • Python 3.6+
  • No external dependencies

Output Example