{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/upwork/refs/heads/main/json-schema/graphql-graph-ql-request-schema.json",
  "title": "GraphQLRequest",
  "description": "A GraphQL request body containing the operation to execute",
  "type": "object",
  "properties": {
    "query": {
      "type": "string",
      "description": "The GraphQL query or mutation string",
      "example": "query { marketplaceJobPostingsSearch(searchExpression: \"python\") { total } }"
    },
    "variables": {
      "type": "object",
      "description": "Variables for the GraphQL operation",
      "additionalProperties": true
    },
    "operationName": {
      "type": "string",
      "description": "Name of the operation to execute (for documents with multiple operations)",
      "example": "SearchJobs"
    }
  },
  "required": [
    "query"
  ]
}