Validate your YAML configuration online and get detailed error messages
Mockoon is a powerful API mocking tool that makes it easy to create and manage mock APIs for prototyping and testing. With an intuitive interface, you can quickly set up mock servers, customize responses, and simulate scenarios in real-time, enhancing team collaboration and speeding up development.
YAML (YAML Ain't Markup Language) is a human-readable data serialization language used for configuration files and data storage or exchange. It uses a minimal syntax that relies on indentation to define the structure of the data.
The official recommended extension for YAML files is .yaml
.
-
followed by a space for each item.:
, with each pair on a new line and the key and value separated by whitespace.#
.&
and aliases *
. An anchor is defined using the & symbol, and an alias refers back to that anchor using the * symbol.|
character, which preserves newlines, or the greater than >
character, which folds newlines into spaces.Here is a list of common errors you might encounter when writing YAML: