Zum Inhalt
HALOWERK

Datenvertragswerk

integer range set algebra

Canonicalize two supplied integer-range collections, merge overlap and integer adjacency, and return complete canonical inputs, union, intersection and left difference with finite or infinite cardinality. Inclusive/exclusive endpoints normalize by the next integer; null endpoints explicitly denote unbounded limits and empty descriptors denote no points. Own exact mathematical integer-universe profile with up to16ranges per input, endpoints +/-1million. This is not a native int4/int8 domain,.

POST https://datenvertrag.halowerk.com/v1/integer-range-set-algebra

Eingaben

Felder des veröffentlichten Eingabeschemas
FeldTypPflichtBeschreibung
aarrayJa
barrayJa
Vollständiges Eingabeschema anzeigen
{
  "type": "object",
  "properties": {
    "a": {
      "type": "array",
      "maxItems": 16,
      "items": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "empty": {
                "const": true
              }
            },
            "required": [
              "empty"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "lower": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -1000000,
                    "maximum": 1000000
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "upper": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -1000000,
                    "maximum": 1000000
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "lower_inclusive": {
                "type": "boolean"
              },
              "upper_inclusive": {
                "type": "boolean"
              }
            },
            "required": [
              "lower",
              "upper",
              "lower_inclusive",
              "upper_inclusive"
            ],
            "additionalProperties": false
          }
        ]
      }
    },
    "b": {
      "type": "array",
      "maxItems": 16,
      "items": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "empty": {
                "const": true
              }
            },
            "required": [
              "empty"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "lower": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -1000000,
                    "maximum": 1000000
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "upper": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -1000000,
                    "maximum": 1000000
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "lower_inclusive": {
                "type": "boolean"
              },
              "upper_inclusive": {
                "type": "boolean"
              }
            },
            "required": [
              "lower",
              "upper",
              "lower_inclusive",
              "upper_inclusive"
            ],
            "additionalProperties": false
          }
        ]
      }
    }
  },
  "required": [
    "a",
    "b"
  ],
  "additionalProperties": false
}

Originalschema öffnen

Veröffentlichtes Eingabebeispiel

{
  "a": [
    {
      "lower": -2,
      "upper": 2,
      "lower_inclusive": true,
      "upper_inclusive": false
    }
  ],
  "b": [
    {
      "lower": 0,
      "upper": 0,
      "lower_inclusive": true,
      "upper_inclusive": true
    }
  ]
}

Ergebnis & Dokumentation

Maschinenlesbare Dokumentation dieses Hubs

Quelle dieser Seite: der veröffentlichte HALOWERK-Katalog. Stand: 2026-11-07, 02:42 UTC.

Weitere Endpunkte dieses Hubs

Alle Endpunkte dieses Hubs →