Zum Inhalt
HALOWERK

Technische Prüfungen & Formate

api / api graphql input coercion

An agent that checks a GraphQL integration handover needs its claimed variable coercion checked across singleton-to-list conversion, non-null wrappers, input object defaults, enum membership and ID conversion.

POST https://detect.halowerk.com/v1/api/api-graphql-input-coercion

Eingaben

Felder des veröffentlichten Eingabeschemas
FeldTypPflichtBeschreibung
artifactobjectJa
Vollständiges Eingabeschema anzeigen
{
  "type": "object",
  "properties": {
    "artifact": {
      "type": "object",
      "properties": {
        "types": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "enum": [
                  "int",
                  "boolean",
                  "string",
                  "id",
                  "enum",
                  "object"
                ],
                "minLength": 1,
                "maxLength": 64
              },
              "enum_values": {
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 0,
                  "maxLength": 128
                },
                "minItems": 0,
                "maxItems": 64
              },
              "fields": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64
                    },
                    "base": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 31
                    },
                    "wrappers": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "enum": [
                          "list",
                          "non_null"
                        ],
                        "minLength": 1,
                        "maxLength": 64
                      },
                      "minItems": 0,
                      "maxItems": 8
                    },
                    "has_default": {
                      "type": "boolean"
                    },
                    "default": {}
                  },
                  "required": [
                    "name",
                    "base",
                    "wrappers",
                    "has_default",
                    "default"
                  ],
                  "additionalProperties": false
                },
                "minItems": 0,
                "maxItems": 32
              }
            },
            "required": [
              "kind",
              "enum_values",
              "fields"
            ],
            "additionalProperties": false
          },
          "minItems": 1,
          "maxItems": 32
        },
        "variable": {
          "type": "object",
          "properties": {
            "base": {
              "type": "integer",
              "minimum": 0,
              "maximum": 31
            },
            "wrappers": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "list",
                  "non_null"
                ],
                "minLength": 1,
                "maxLength": 64
              },
              "minItems": 0,
              "maxItems": 8
            },
            "has_default": {
              "type": "boolean"
            },
            "default": {}
          },
          "required": [
            "base",
            "wrappers",
            "has_default",
            "default"
          ],
          "additionalProperties": false
        },
        "supplied": {
          "type": "boolean"
        },
        "input": {},
        "claimed_valid": {
          "type": "boolean"
        },
        "claimed_value": {}
      },
      "required": [
        "types",
        "variable",
        "supplied",
        "input",
        "claimed_valid",
        "claimed_value"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "artifact"
  ],
  "additionalProperties": false
}

Originalschema öffnen

Veröffentlichtes Eingabebeispiel

{
  "artifact": {
    "types": [
      {
        "kind": "int",
        "enum_values": [],
        "fields": []
      },
      {
        "kind": "id",
        "enum_values": [],
        "fields": []
      },
      {
        "kind": "boolean",
        "enum_values": [],
        "fields": []
      },
      {
        "kind": "enum",
        "enum_values": [
          "a",
          "b"
        ],
        "fields": []
      },
      {
        "kind": "object",
        "enum_values": [],
        "fields": [
          {
            "name": "count",
            "base": 0,
            "wrappers": [
              "non_null"
            ],
            "has_default": true,
            "default": 4
          },
          {
            "name": "ids",
            "base": 1,
            "wrappers": [
              "list",
              "non_null"
            ],
            "has_default": false,
            "default": null
          },
          {
            "name": "enabled",
            "base": 2,
            "wrappers": [],
            "has_default": true,
            "default": true
          }
        ]
      }
    ],
    "variable": {
      "base": 4,
      "wrappers": [],
      "has_default": false,
      "default": null
    },
    "supplied": true,
    "input": {
      "ids": 7
    },
    "claimed_valid": true,
    "claimed_value": {
      "count": 4,
      "ids": [
        "7"
      ],
      "enabled": true
    }
  }
}

Ergebnis & Dokumentation

Maschinenlesbare Dokumentation dieses Hubs

Quelle dieser Seite: der veröffentlichte HALOWERK-Katalog. Stand: 2026-11-01, 15:19 UTC.

Weitere Endpunkte dieses Hubs

Alle Endpunkte dieses Hubs →