Commit fd0b1c42 authored by Mark Canterbury's avatar Mark Canterbury
Browse files

Copying across to JSON testing

parent 8f15ba67
Loading
Loading
Loading
Loading
Loading
+18 −2
Original line number Diff line number Diff line
@@ -56,6 +56,22 @@ process_json:
  interruptible: true
  script:
    - export PYCHARM_HOSTED=1
    - |
      format_issues=0

      while IFS= read -r -d '' file; do
        if ! forgeschema -c "$file"; then
          echo "❌ failed schema checks for $file"
          format_issues=1
        fi
        echo ""
        echo "..."
        echo ""
      done < <(find ./testing/json -type f -name "*.json" -print0)
      if [ "$format_issues" -eq 1 ]; then
        exit 1
      fi
      echo "✅ XSD validation OK for $file"  
    - forgeschema -s 103120/schema/json/ts_103120_Core.schema.json -u 103120/schema/json -u 103120/dictionaries/ts_103120_Dictionaries.schema.json -u 103280/TS_103_280.schema.json -i 103120/examples/json

lint_xml:
+1 −1
Original line number Diff line number Diff line
@@ -11,7 +11,7 @@
        "Header": {
          "$ref": "#/$defs/MessageHeader"
        },
        "Payload": {
        "Payload": {this will break stuff
          "$ref": "#/$defs/MessagePayload"
        },
        "Signature": {
+11 −0
Original line number Diff line number Diff line
{
    "coreSchema": "103120/schema/json/ts_103120_Core.schema.json",
    "supportingSchemas": [
        "103120/schema/json",
        "103120/dictionaries/ts_103120_Dictionaries.schema.json",
        "103280/TS_103_280.schema.json"
    ],
    "instanceDocs": [
        "103120/examples/json"
    ]
}
 No newline at end of file
+5 −0
Original line number Diff line number Diff line
{
    "coreSchema": "103120/dictionaries/ts_103120_Dictionaries.schema.json",
    "supportingSchemas": [],
    "instanceDocs": []
}
 No newline at end of file
+0 −0

File moved.