Creating a Schema with Generic String Input and Literal Output

Is there a way to make a schema with a generic
string
as input and a Literal as output from Schema.Literal (Schema.Literal as both input and output as union of strings)?
Was this page helpful?