Skip to content

Conversation

@WeylonSantana
Copy link
Contributor

@WeylonSantana WeylonSantana commented Dec 24, 2025

resolves #2785
I've been testing the API these past few days in the Naziozeno game, which is updated with the latest version of Intersect and has no changes in the API files. I found inconsistencies in setting variable values, mostly because the variable's DataType is ignored. So I'm strengthening the variable setting routes a bit more by adding a helper to consider the type of the value coming from the body in relation to the datatype of the variable whose value you want to change. This way, you no longer need to send all values ​​as strings to the API.

In this case, the API will now consider the variable's type and return error messages if the value coming from the body is not of the same type or not be converted to the expected type

@WeylonSantana WeylonSantana force-pushed the fix-server-set-api branch 2 times, most recently from 18ed387 to 725a1b0 Compare December 27, 2025 03:23
@Arufonsu Arufonsu merged commit 813481c into main Dec 27, 2025
1 check passed
@WeylonSantana WeylonSantana deleted the fix-server-set-api branch December 27, 2025 14:38
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.

bug: Set Variables API accepts values ​​of incorrect types.

3 participants