Open jgardiner68 opened 2 weeks ago
It's also invalid Python. Classic ChatGPT.
I haven't tested this, but I think you're looking for something along the lines of
schema = Schema(Any(
{
'issuetype': Equal("Feature Request"),
'feature_details": ...,
},
{
'issuetype': Equal("Bug"),
'bug_report': ...,
},
))
which imho also looks a lot clearer than what ChatGPT suggested
ChatGPT suggested that this was valid -- it looks wonderful: