इस टूल में कोई समस्या है?

«YAML फ़ॉर्मेटर ऑनलाइन» के बारे में

यह टूल YAML दस्तावेज़ों को फ़ॉर्मेट, मान्य और रीफ़्लो करता है। एक YAML कॉन्फ़िगरेशन पेस्ट करें — Kubernetes मेनिफ़ेस्ट, Docker Compose फ़ाइल, CI पाइपलाइन — और टूल इंडेंटेशन को सामान्य करता है।

YAML का इंडेंटेशन-आधारित सिंटैक्स एक गलत स्पेस से टूटने के लिए कुख्यात है। फॉर्मेटर संरचनात्मक त्रुटियों को पकड़ता है।

वर्शन कंट्रोल में कमिट करने से पहले YAML को साफ करने के लिए इसका उपयोग करें।

इस टूल का उपयोग कैसे करें

How to format and lint a YAML document

  1. Paste your YAML

    Drop the YAML document into the "YAML" field. Any document the `yaml` library can parse — including anchors, multi-document streams (with `---`), and complex keys — is accepted.

  2. What 'format' means here

    The tool parses YAML to a JS value with `YAML.parse`, then re-stringifies via `YAML.stringify` with lineWidth 100. Comments and original ordering of mapping keys are NOT preserved — this is a re-emit, not a pretty-printer.

  3. Press Run

    Output is a single `formattedYaml` field with a normalised document — consistent indentation, quoting, and line wrapping at column 100.

  4. Watch for parse errors

    Invalid YAML throws an error pointing at the line. Common culprits: tabs as indentation, unbalanced quotes, or a stray `:` inside an unquoted string. Fix and re-run.