vukani-dev/improvement-roll-service

Add the ability for the service to parse TOML files

vukani-dev opened this issue · 2 comments

Right now the service parses JSON files in the categories directory into a SharedCategory struct.
Add the ability to do the same with TOML files.

This can be updated in the parseCategory function on line 219.
Simply check if it is a TOML file and if so read the file and parse it into the appropriate struct to return.

The struct to parse it to has the following:

  • Tags : array of strings
  • Author : string
  • Date : string of datetime in RFC-3339 format
  • Category ( here is an example of a valid toml Category)

Looks great! Thank you!