zorkind / Hellion-Rescue-Project

54 stars 7 forks source link

Validation in ServerData json file #278

Closed zorkind closed 3 years ago

zorkind commented 3 years ago

Is your feature request related to a problem? Please describe. None.

Describe the solution you'd like Simple validation of the server data in the Json file, also a sanitization of its contents.

Servers will be removed in the following circumstances:

Servers IDs will be auto assigned and the order the server is present in the file will determine its ID, which only affects the Favorite's list, which will also be updated in case the server in the Favorite list has changed position.

The Lock field is no longer in the json file, it is and has always been an information downloaded from the server, so there's no reason to store it.

The Name of the server will be updated with the Name of the server downloaded from the server itself. (this was already happening)

You can share a server giving only the specific fields that are filled with data, don't need to share the ID, it is a local information.

Describe alternatives you've considered None.

Additional context None.