Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/Java/Openclaw/vendor/a2ui/specification/0.9/   (KI Agentensystem Version 22©)  Datei vom 26.3.2026 mit Größe 1 kB image not shown  

Quelle  validate.sh

  Sprache: Shell
 

#!/bin/bash

# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

SCHEMA_DIR="/Users/gspencer/code/a2ui/specification/0.9"
SERVER_SCHEMA="${SCHEMA_DIR}/server_to_client.json"
COMMON_TYPES="${SCHEMA_DIR}/common_types.json"
COMPONENT_CATALOG="${SCHEMA_DIR}/component_catalog.json"
EXAMPLE_FILE="${SCHEMA_DIR}/contact_form_example.jsonl"
TEMP_FILE="${SCHEMA_DIR}/temp_message.json"

while read -r line; do
  echo "$line" | jq '.' > "${TEMP_FILE}"
  if [ $? -ne 0 ]; then
    echo "jq failed to parse line: $line"
    continue
  fi
  ajv validate --verbose -s "${SERVER_SCHEMA}" -r "${COMMON_TYPES}" -r "${COMPONENT_CATALOG}" --spec=draft2020 -d "${TEMP_FILE}"
  if [ $? -ne 0 ]; then
    echo "Validation failed for line: $line"
  fi
done < "${EXAMPLE_FILE}"

rm "${TEMP_FILE}"

echo "Validation complete."

Messung V0.5 in Prozent
C=91 H=94 G=92

¤ Dauer der Verarbeitung: 0.13 Sekunden  (vorverarbeitet am  2026-04-27) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.