From e238b1f5d52a92190acb418fc48debad35fc08fe Mon Sep 17 00:00:00 2001 From: zoltanvb Date: Sat, 23 Mar 2024 06:57:02 +0100 Subject: [PATCH] JSON schema files for test input driver and netretropad --- .../netretropad_input_check_schema.json | 25 +++++++++++++ tests-other/test_input_driver_schema.json | 37 +++++++++++++++++++ 2 files changed, 62 insertions(+) create mode 100644 tests-other/netretropad_input_check_schema.json create mode 100644 tests-other/test_input_driver_schema.json diff --git a/tests-other/netretropad_input_check_schema.json b/tests-other/netretropad_input_check_schema.json new file mode 100644 index 00000000000..23ea7ef6287 --- /dev/null +++ b/tests-other/netretropad_input_check_schema.json @@ -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" ] + } +} + diff --git a/tests-other/test_input_driver_schema.json b/tests-other/test_input_driver_schema.json new file mode 100644 index 00000000000..6cba8427b05 --- /dev/null +++ b/tests-other/test_input_driver_schema.json @@ -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" ] + } +} +