Skip to content

AurelienDuval6/SmallYAML

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

logo

Simplified YAML library with limited syntax support and built-in config validation

Overview

SmallYAML is a simplified YAML library designed with limited syntax support and built-in config validation. It provides a streamlined approach to YAML processing while maintaining essential functionality for most use cases.

Usage

Take a YAML file :

---
data:
- id: 1
  name: Franc
  roles:
    - admin
    - hr
- id: 2
  name: John
  roles:
    - admin
    - finance

And play with it :

/**
 * You parse it
 */
var object = YamlParser.parse(inputStream);

/**
 * You use it
 */
var value = object.findValue(YamlPath.of("data", "0", "id"));

/**
 * Value is Optional.of("1")
 */

Limitations

Sky is the limit

Compatibility

  • Uses Java 21
  • Compiled with Gradle

Contributors

About

YAML parser

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages