Skip to content

Commit

Permalink
JSON schema files for test input driver and netretropad
Browse files Browse the repository at this point in the history
  • Loading branch information
zoltanvb committed Mar 23, 2024
1 parent fee6ac3 commit e238b1f
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 0 deletions.
25 changes: 25 additions & 0 deletions tests-other/netretropad_input_check_schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://docs.libretro.com/development/input-api/netretropad_input_check_schema.json",
"title": "RetroArch_netretropad_validator",
"description": "Definition for driving RetroArch's Remote RetroPad test part.",
"type": "array",
"items": {
"type": "object",
"properties": {
"expected_button": {
"description": "Button to wait for",
"type": "integer",
"minimum": 0,
"maximum": 4294967295
},
"message": {
"description": "Message to be displayed to the user",
"type": "string",
"maxLength": 512
}
},
"required": [ "expected_button" ]
}
}

37 changes: 37 additions & 0 deletions tests-other/test_input_driver_schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://docs.libretro.com/development/input-api/test_input_driver_schema.json",
"title": "RetroArch_input_driver",
"description": "Definition for driving RetroArch's test input driver.",
"type": "array",
"items": {
"type": "object",
"properties": {
"action": {
"description": "Action to do",
"type": "integer",
"minimum": 0,
"maximum": 4294967295
},
"param_str": {
"description": "String parameter for the action",
"type": "string",
"maxLength": 255
},
"param_num": {
"description": "Numeric parameter for the action",
"type": "integer",
"minimum": 0,
"maximum": 4294967295
},
"frame": {
"description": "Timing for the action using RetroArch's internal frame counter, default 60 fps",
"type": "integer",
"minimum": 0,
"maximum": 4294967295
}
},
"required": [ "action" ]
}
}

0 comments on commit e238b1f

Please sign in to comment.