KeelGPT

KeelGPT · Acciones GPT

Api

  • POST /api/json/validatevalidate
Esquema original API
{
  "openapi": "3.1.0",
  "info": {
    "title": "Api",
    "version": "1"
  },
  "paths": {
    "/api/json/validate": {
      "post": {
        "operationId": "validate",
        "requestBody": {
          "description": "Validate a Keel Schema",
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "schema": {
                    "type": "string"
                  }
                },
                "additionalProperties": false,
                "required": [
                  "schema"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "A response to a schema validation request, telling you about errors. If no errors, show the user the schema. If errors, retry with a slightly adjusted schema based on the grammars you've been provided.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false,
                  "required": [
                    "errors"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Server errors, mention the backend is down.",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "data": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "errors": {
                          "type": "array",
                          "properties": {
                            "error": {
                              "type": "string"
                            },
                            "field": {
                              "type": "string"
                            }
                          }
                        }
                      }
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://keel-validator-proxy.vercel.app"
    }
  ]
}