API Reference
Format and lint YAML content. Reorders keys to follow standard convention and fixes indentation. Does not require a specific model - operates on raw YAML.
cURL
curl --request POST \ --url https://app.gomangrove.com/api/v1/models_yaml_lint \ --header 'Authorization: <api-key>' \ --header 'Content-Type: application/json' \ --data ' { "yaml": "nexus:\n - formula: input_1 - input_2\n name: Net Carbon Removal\n" } '
200
Success
{ "formatted_yaml": "nexus:\n - name: Net Carbon Removal\n formula: input_1 - input_2\n", "changes": [ { "type": "reorder", "message": "Reordered keys in node", "line": 2 } ] }
YAML content to format
Show child attributes