وثائق بوابة القرار

تقييم بوابة حتمي وقابل لإعادة التشغيل مع قرارات قابلة للتدقيق.

وثائق Asset Core

قائمة_المخططات

قائمة أشكال البيانات المسجلة لمستأجر وفضاء أسماء.

ملاحظات رئيسية

  • يتطلب tenant_id و namespace_id.
  • يدعم الترقيم عبر المؤشر + الحد.

مدخلات

  • المؤشر (اختياري): أحد نوعي المخطط 2.
  • الحد (اختياري): الحد الأقصى لعدد السجلات التي سيتم إرجاعها.
  • namespace_id (مطلوب): معرف مساحة الاسم.
  • tenant_id (مطلوب): معرف المستأجر.

مخطط الإدخال

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "cursor": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "description": "Pagination cursor.",
          "type": "string"
        }
      ]
    },
    "limit": {
      "description": "Maximum number of records to return.",
      "maximum": 1000,
      "minimum": 1,
      "type": "integer"
    },
    "namespace_id": {
      "description": "Namespace identifier.",
      "minimum": 1,
      "type": "integer"
    },
    "tenant_id": {
      "description": "Tenant identifier.",
      "minimum": 1,
      "type": "integer"
    }
  },
  "required": [
    "tenant_id",
    "namespace_id"
  ],
  "type": "object"
}

المخرجات

  • العناصر (مطلوب): النوع: array.
  • next_token (مطلوب): أحد نوعي المخطط 2.

مخطط الإخراج

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "items": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "created_at": {
            "oneOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "kind": {
                    "const": "unix_millis"
                  },
                  "value": {
                    "type": "integer"
                  }
                },
                "required": [
                  "kind",
                  "value"
                ],
                "type": "object"
              },
              {
                "additionalProperties": false,
                "properties": {
                  "kind": {
                    "const": "logical"
                  },
                  "value": {
                    "minimum": 0,
                    "type": "integer"
                  }
                },
                "required": [
                  "kind",
                  "value"
                ],
                "type": "object"
              }
            ]
          },
          "description": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "description": "Optional schema description.",
                "type": "string"
              }
            ]
          },
          "namespace_id": {
            "description": "Namespace identifier.",
            "minimum": 1,
            "type": "integer"
          },
          "schema": {
            "description": "JSON Schema payload.",
            "type": [
              "null",
              "boolean",
              "number",
              "string",
              "array",
              "object"
            ]
          },
          "schema_id": {
            "description": "Data shape identifier.",
            "type": "string"
          },
          "signing": {
            "additionalProperties": false,
            "properties": {
              "algorithm": {
                "default": null,
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "description": "Signature algorithm label.",
                    "type": "string"
                  }
                ]
              },
              "key_id": {
                "description": "Signing key identifier.",
                "type": "string"
              },
              "signature": {
                "description": "Schema signature string.",
                "type": "string"
              }
            },
            "required": [
              "key_id",
              "signature"
            ],
            "type": "object"
          },
          "tenant_id": {
            "description": "Tenant identifier.",
            "minimum": 1,
            "type": "integer"
          },
          "version": {
            "description": "Data shape version identifier.",
            "type": "string"
          }
        },
        "required": [
          "tenant_id",
          "namespace_id",
          "schema_id",
          "version",
          "schema",
          "description",
          "created_at"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "next_token": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "description": "Pagination token for the next page.",
          "type": "string"
        }
      ]
    }
  },
  "required": [
    "items",
    "next_token"
  ],
  "type": "object"
}

أمثلة

قائمة أشكال البيانات لمساحة الأسماء.

مدخل:

{
  "cursor": null,
  "limit": 50,
  "namespace_id": 1,
  "tenant_id": 1
}

Output:

{
  "items": [
    {
      "created_at": {
        "kind": "unix_millis",
        "value": 1710000000000
      },
      "description": "Asserted payload schema.",
      "namespace_id": 1,
      "schema": {
        "additionalProperties": false,
        "properties": {
          "deploy_env": {
            "type": "string"
          }
        },
        "required": [
          "deploy_env"
        ],
        "type": "object"
      },
      "schema_id": "asserted_payload",
      "tenant_id": 1,
      "version": "v1"
    }
  ],
  "next_token": null
}