Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  validate.sh  Sprache: unbekannt

 
#!/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=94 H=93 G=93

[Dauer der Verarbeitung: 0.12 Sekunden, vorverarbeitet 2026-10-11]

                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1127926
#Domains=1947682