JSON Schema can be used to validate YAML documents. YAML Ain't Markup Language (YAML) is a powerful data serialization language that aims to be human friendly. Most JSON is syntactically valid YAML, but idiomatic YAML follows very different conventions. While YAML has advanced features that cannot be directly mapped to JSON, most YAML files use features that can be validated by JSON Schema. JSON Schema is the most portable and broadly supported choice for YAML validation.

  1. Yaml File
  2. Online Yaml Validator Link

HTML Validator Online Tools. It plays a vital role for clients who receive information from different resources over the web. HTML validator is used to validate the syntax errors such as missing quotation marks, open tags and unnecessary blank spaces which as a result avoids the risk of web page looking different from which the developer has developed or it may cause issues while running on.

JSON

YAML

Example JSON from the JSON Schema website.

At Browserling we love to make developers' lives easier, so we created this collection of online yaml tools. Unlike many other tools, we made our tools free, without ads, and with the simplest possible user interface. Our online yaml tools are actually powered by our programming tools that we created over the last couple of years. YAML(Yet Another Markup Language) or (YAML Ain’t Markup Language) is a human friendly data serialization standard for all programming languages and is often used to write configuration files. About Validate YAML tool. The Validate YAML online also called as YAML Lint tool was created to help with debugging, find errors and warnings in the. This is a sample server Petstore server. You can find out more about Swagger at or on irc.freenode.net, #swagger.For this sample, you can use the.

Yaml File


Editor Support

EditorValidationError HighlightingCompletion Suggestions
Visual Studio Code

Tools and Libraries

Validator
  • Polyglottal JSON Schema Validator - Written in JavaScript. Released under the MIT license.
    • Polyglottal JSON Schema Validator (pajv) is a command line utility that can be used to validate data in numerous formats against a JSON Schema.

Alternatives

Online Yaml ValidatorBest online yaml validator
  • Kwalify
    • Portability concerns with only Ruby and Python implementations
    • Only Python has recent development activity
    • No tooling support
  • Rx
    • Supports JavaScript, Perl, PHP, Ruby, Python
    • No recent development activity
    • No tooling support
Online
  • yaml-validator
    • JavaScript only
    • Only structural validation
  • simple-yaml-validator
    • JavaScript only
    • Only structural validation
    • Little adoption. npm shows low download count.
  • Yamale
    • Python only
    • Relatively unknown

Check digit expressions

  • Digit:
  • N digits:
  • At least N digits:
  • m-n digits:
  • Zero and non-zero start digits:
  • Nonzero number with up to two decimal places:
  • A positive or negative number with one or two decimal places:
  • Positive, negative, and decimals:
  • A positive real number with two decimal places:
  • A positive real number with 1 to 3 decimal places:
  • A non-zero positive integer:
  • A non-zero negative integer:
  • Non-negative integers:
  • Non-positive integer:
  • Non-negative floating-point numbers:
  • Non-positive floating-point number:
  • Floating point number:
  • Negative Float:
  • Floating point number:

Check character expressions

  • Alpha-Numeric Characters:
  • All characters with a length of 3-20:
  • A string of 26 letters:
  • A string of 26 uppercase English letters:
  • A string of 26 lowercase alphabetic characters:
  • A string of numbers and 26 letters:
  • A string of numbers, 26 letters, or an underscore:
  • input with ^%&',;=?$':
  • It is forbidden to input characters with ~:

Special Needs Expressions

  • Email:
  • URL or Domain name:
  • Date (MM/DD/YYYY)/(MM-DD-YYYY)/(MM.DD.YYYY)/(MM DD YYYY):
  • 12 months of the year(01~09和1~12):
  • 31 days a month(01~09和1~31):
  • Password:
  • US Phone Numbers
  • US Zip code
  • Slug
  • All the special characters need to be escaped
  • xml file:
  • Regular expressions for Chinese characters:
  • Double-byte characters:
  • Blank line:
  • HTML tags:
  • The leading and trailing whitespace character:
  • IP address: