Skip to content
Novus Examples
yaml242 B

Sample YAML

A YAML configuration file with nested mappings, sequences, inline lists, and comments — for testing YAML parsers.

Preview — first 17 linesyaml
# Sample YAML configuration
server:
  host: localhost
  port: 8080
  tls:
    enabled: true
    minVersion: "1.2"
features:
  - search
  - editor
  - preview
users:
  - name: Ada
    roles: [admin, editor]
  - name: Grace
    roles: [editor]

Specifications

Structure
mappings, sequences, inline lists, comments
Valid
true

What is a .yaml file?

YAML (YAML Ain't Markup Language) is a human-readable data-serialization format using indentation, key-value pairs, and lists, and is a superset of JSON. It supports comments, anchors, and multiple documents per file, favoring readability for configuration. Its indentation sensitivity makes it error-prone to hand-edit.

How to use this file

Use an example YAML file to test config parsers, indentation and anchor handling, multi-document streams, and safe-loading to avoid arbitrary object construction.

Generated by generation/data_structured.py. Free for any use, no attribution required — license.