Closed
Description
If a Schema Object enum
contains a list of objects (instead of—more commonly—a list strings) an error is thrown: SyntaxError: '=>' expected.
This error message looks similar to the one in bug #561.
Note that an enum
in a schema object may contain a list of anything. As per https://swagger.io/specification/#schema-object enum
“[is] taken directly from the JSON Schema definition and follow[s] the same specifications”. The JSON Schema definition, https://datatracker.ietf.org/doc/html/draft-wright-json-schema-validation-00#section-5.20, says that “Elements in the array MAY be of any type, including null.”