YAML Validator is an online tool to validate YAML data. It validates you code and find errors and warnings that can be fixed. You can modify the code in the editor until the error/ warning is fixed. You can copy or save the modified/ fixed YAML data.
How to Validate YAML?
- To Validate your YAML data add/ copy and paste the YAML data into the input.
- You can also load the YAML data from the url by clicking the button or load the YAML data from the computer by clicking the button.
- Click the validation button to validate your YAML. You can modify the code and check for validation errors.
- Once validation check and fixes are done you can download the file by clicking the button
- Click button to copy to clipboard.
YAML Validator Validate YAML code using Online YAML Validator and find errors to fix and verify your code.
Yaml.customTags: Array of custom tags that the parser will validate against. It has two ways to be used. It has two ways to be used. Either an item in the array is a custom tag such as '!Ref' and it will automatically map!Ref to scalar or you can specify the type of the object!Ref should be e.g. '!Ref sequence'. Enter YAML in input textarea or choose and upload.yaml file. Choose options like schema to validate, & formattings options like indent size or minify etc. Click on Show Output button to get formatted YAML output. You'll see an alert depending on whether your YAML is valid or invalid with corresponding error message in Output text area. 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 Validator
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.
Check to see examples of JSON and YAML documentsJSON
YAML
Editor Support
Editor | Validation | Error Highlighting | Completion Suggestions |
---|---|---|---|
Visual Studio Code | ✓ | ✓ | ✓ |
Tools and Libraries
- 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 Swagger 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
- yaml-validator
- JavaScript only
- Only structural validation
Yaml File
Editor Support
Editor | Validation | Error Highlighting | Completion Suggestions |
---|---|---|---|
Visual Studio Code | ✓ | ✓ | ✓ |
Tools and Libraries
- 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 Swagger 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
- yaml-validator
- JavaScript only
- Only structural validation
Yaml File
- simple-yaml-validator
- JavaScript only
- Only structural validation
- Little adoption. npm shows low download count.
- Yamale
- Python only
- Relatively unknown