Also allow strings in accepted formats
Adds spec for swagger generation
Adds spec for swagger generation