-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
native_minecraft_version
and supported_minecraft_versions
return null.
#53
Comments
They're Working on documentation. |
Ohhhh, okey! Thanks for the clarification. |
This could be improved to be made more consistent, I will look into it. |
@simpleauthority you may want to always return empty string and empty array (or null) if they're not set and add a property "set_before_versions" of some kind or sth. |
I feel like that returning an empty String is.... bad. The This inconsistent behaviour with null and non-null values is only confusing and causes us to have extra work. |
Sorry it took so long. When #50 is merged, this will be fixed. |
Hey! While experimenting more with the API (and using it in something I'm developing) I realised that some resources return null on
native_minecraft_version
andsupported_minecraft_versions
while others return an empty string onnative_minecraft_version
and an empty array onsupported_minecraft_versions
(expected behaviour).Of course, this only happens on resources that don't have this information.
Such as these 2 resources:
Error: https://www.spigotmc.org/resources/269/ (https://api.spigotmc.org/simple/0.2/index.php?action=getResource&id=269)
Expected behaviour: https://www.spigotmc.org/resources/313/ (https://api.spigotmc.org/simple/0.2/index.php?action=getResource&id=313)
I'm not sure what is the cause.
The text was updated successfully, but these errors were encountered: