QID 570049

QID 570049: Enum Value Not Matching Type

Keyword enum is used to specify possible values in an array. The keyword enum is part of schema along with data type of values. Analyzing the swagger file resulted in detecting that the enum value does not match type specified.

Values not matching type specified in schema results in a warning.

Solution
Review the swagger file and ensure all the values in enum match the data type specified in schema. For example, if the type specified is string, all values in enum array should be of the same string type.

/users: parameters: - in: query name: "user1" schema: type: "string" enum: ["temporary", "permanent"] ...

Vendor References

CVEs related to QID 570049

Software Advisories
Advisory ID Software Component Link

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report