Because YAML is a superset of JSON's data model, a YAML sample can describe the shape of a document just as well. The tool infers a JSON Schema 2020-12 with types, nested objects, array items and required keys. name: Ada / age: 36 gives "name": {"type": "string"} and "age": {"type": "integer"}, both in required.