{
  "slug": "graphql-formatter",
  "name": "gizza-ai/graphql-formatter",
  "version": "0.1.0",
  "title": "GraphQL Formatter — gizza.ai",
  "description": "Format, minify, and validate GraphQL queries, mutations, fragments, and SDL schemas in your browser.",
  "tags": [
    "graphql",
    "formatter",
    "developer"
  ],
  "category": "developer",
  "urls": {
    "page": "https://gizza.ai/tools/graphql-formatter/",
    "markdown": "https://gizza.ai/tools/graphql-formatter/index.md",
    "descriptor": "https://gizza.ai/tools/graphql-formatter/tool.json",
    "deep_link_example": "https://gizza.ai/tools/graphql-formatter/?input=query%20Hero%28%24episode%3A%20Episode%20%3D%20JEDI%29%20%7B%20hero%28episode%3A%20%24episode%29%20%7B%20name%20friends%20%7B%20name%20%7D%20%7D%20%7D&indent=2&mode=format&sort_fields=true&remove_comments=true"
  },
  "cli": "gizza tool graphql-formatter 'query Hero($episode: Episode = JEDI) { hero(episode: $episode) { name friends { name } } }'",
  "tool": {
    "description": "Format, minify, and validate GraphQL queries, mutations, fragments, and SDL schemas locally. Choose 2/4/8-space or tab indentation, format or minify mode, optionally sort fields for stable diffs, and optionally remove # comments. Syntax errors include line and column information.",
    "parameters": {
      "additionalProperties": false,
      "properties": {
        "indent": {
          "default": "2",
          "description": "Indentation unit for formatted output: 2, 4, or 8 spaces, or tab.",
          "enum": [
            "2",
            "4",
            "8",
            "tab"
          ],
          "type": "string"
        },
        "input": {
          "description": "GraphQL query, mutation, subscription, fragment, or SDL schema text to validate and reformat.",
          "type": "string"
        },
        "mode": {
          "default": "format",
          "description": "Format for readable output, or minify to remove unnecessary whitespace and comments.",
          "enum": [
            "format",
            "minify"
          ],
          "type": "string"
        },
        "remove_comments": {
          "default": false,
          "description": "Drop GraphQL # comments when formatting. Minify mode always removes comments.",
          "type": "boolean"
        },
        "sort_fields": {
          "default": false,
          "description": "Sort selection fields and SDL object/input fields alphabetically for stable diffs.",
          "type": "boolean"
        }
      },
      "required": [
        "input"
      ],
      "type": "object"
    }
  }
}