> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mangrovesystems.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Lint model YAML

> Format and lint YAML content. Reorders keys to follow standard convention and fixes indentation. Does not require a specific model - operates on raw YAML.



## OpenAPI

````yaml POST /models_yaml_lint
openapi: 3.1.0
info:
  title: Mangrove - API
  version: 1.1.0
servers:
  - url: https://app.gomangrove.com/api/v1
security:
  - sec0: []
paths:
  /models_yaml_lint:
    post:
      summary: Lint model YAML
      description: >-
        Format and lint YAML content. Reorders keys to follow standard
        convention and fixes indentation. Does not require a specific model -
        operates on raw YAML.
      operationId: lint-model-yaml
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - yaml
              properties:
                yaml:
                  type: string
                  description: YAML content to format
            examples:
              Result:
                value:
                  yaml: |
                    nexus:
                      - formula: input_1 - input_2
                        name: Net Carbon Removal
      responses:
        '200':
          description: '200'
          content:
            application/json:
              examples:
                Success:
                  value:
                    formatted_yaml: |
                      nexus:
                        - name: Net Carbon Removal
                          formula: input_1 - input_2
                    changes:
                      - type: reorder
                        message: Reordered keys in node
                        line: 2
                Error:
                  value:
                    formatted_yaml: null
                    changes: []
                    error: Invalid YAML syntax
              schema:
                type: object
                properties:
                  formatted_yaml:
                    type: string
                    nullable: true
                  changes:
                    type: array
                    items:
                      type: object
                      properties:
                        type:
                          type: string
                        message:
                          type: string
                        line:
                          type: integer
                          nullable: true
                  error:
                    type: string
      deprecated: false
components:
  securitySchemes:
    sec0:
      type: apiKey
      in: header
      name: Authorization
      x-bearer-format: ''

````