Advertisement
LoofahJoeBiden

bb schema

Jan 29th, 2025
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 1.46 KB | None | 0 0
  1. {
  2.   "$schema": "http://json-schema.org/draft-07/schema#",
  3.   "type": "object",
  4.   "properties": {
  5.     "initial_state": {
  6.       "type": "string"
  7.     },
  8.     "halt_state": {
  9.       "type": "string"
  10.     },
  11.     "states": {
  12.       "type": "object",
  13.       "patternProperties": {
  14.         "^[A-Z]$": {
  15.           "type": "object",
  16.           "properties": {
  17.             "0": {
  18.               "type": "object",
  19.               "properties": {
  20.                 "write": {
  21.                   "type": "integer"
  22.                 },
  23.                 "move_dir": {
  24.                   "type": "string",
  25.                   "enum": ["L", "R"]
  26.                 },
  27.                 "next_state": {
  28.                   "type": "string"
  29.                 }
  30.               },
  31.               "required": ["write", "move_dir", "next_state"]
  32.             },
  33.             "1": {
  34.               "type": "object",
  35.               "properties": {
  36.                 "write": {
  37.                   "type": "integer"
  38.                 },
  39.                 "move_dir": {
  40.                   "type": "string",
  41.                   "enum": ["L", "R"]
  42.                 },
  43.                 "next_state": {
  44.                   "type": "string"
  45.                 }
  46.               },
  47.               "required": ["write", "move_dir", "next_state"]
  48.             }
  49.           },
  50.           "required": ["0", "1"]
  51.         }
  52.       },
  53.       "additionalProperties": false
  54.     }
  55.   },
  56.   "required": ["initial_state", "halt_state", "states"]
  57. }
  58.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement