Skip to main content
POST
/
models_yaml_lint
Lint model YAML
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"
}
'
{
  "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
    }
  ]
}

Authorizations

Authorization
string
header
required

Body

application/json
yaml
string
required

YAML content to format

Response

200 - application/json

200

formatted_yaml
string | null
changes
object[]
error
string