Add the ability for the service to parse TOML files
vukani-dev opened this issue · 2 comments
vukani-dev commented
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)
arshad-k7 commented
Please look into my PR https://github.com/vukani-dev/improvement-roll-service/pulls
vukani-dev commented
Looks great! Thank you!