Skip to content

JSON schema files for test input driver and netretropad#16381

Open
zoltanvb wants to merge 1 commit intolibretro:masterfrom
zoltanvb:input_test_schema
Open

JSON schema files for test input driver and netretropad#16381
zoltanvb wants to merge 1 commit intolibretro:masterfrom
zoltanvb:input_test_schema

Conversation

@zoltanvb
Copy link
Contributor

Description

JSON schema files for input test driver and the Remote Retropad check side.

I did not find any straightforward method to indicate numeric constants here in the schema, such as:

#define JOYPAD_TEST_COMMAND_ADD_CONTROLLER 1
for actions, or:
#define RETRO_DEVICE_ID_JOYPAD_B 0
for expected_button, without having to change the processing side, which I would not like to do, so writing test inputs will still be a bit inconvenient.

Schemas can be applied without error:

jsonschema test_input_driver_schema.json  -i test_input_joypad.ratst
jsonschema netretropad_input_check_schema.json -i netretropad_all_inputs.ratst

Related Pull Requests

#16370 (comment)

Reviewers

@JesseTG

@JesseTG
Copy link
Contributor

JesseTG commented Apr 24, 2024

Whoops, I didn't notice this until just now. Sorry about that.

At any rate, looks good to me. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants