cobalt.rs icon indicating copy to clipboard operation
cobalt.rs copied to clipboard

What should the case for string values be?

Open epage opened this issue 6 years ago • 3 comments
trafficstars

We have

  • Asc / Desc
  • Year, Month, Day
  • Tags, Categories, Dates

Should this be changed to lowercase?

epage avatar Sep 02 '19 15:09 epage

FYI @Geobert

epage avatar Sep 02 '19 15:09 epage

At the beginning, I've put lowercase strings for these and using serde rename but you weren't sure about it. I'm all for lowercase string for the values, or maybe case insensitive so it will not break?

EDIT: can't find anything obvious on making serde accepting lower and upper case

Geobert avatar Sep 02 '19 15:09 Geobert

Just found this https://docs.rs/serde-aux/0.6.1/serde_aux/container_attributes/index.html

Geobert avatar Sep 06 '19 19:09 Geobert