Right now the generator will see the following and generate a Cowstr that isn't validated to be one of the possible closed values instead of a type safe enum.
"sortBy": {
"type": "string",
"enum": ["newest", "oldest", "top"],
"default": "newest"
}
It would be a major improvement to change this behaviour.