Loading
Declare the webhook alert_status field as a String
What does this MR do and why?
This MR fixes the type of the alert_status field on webhook entities, which was declared as a Ruby Symbol instead of a String.
lib/api/entities/hook.rbdeclaredalert_statuswith documentation typeSymbol, but Symbol is not a JSON type and the API always returns this field as a string.- It also updates the three
example: :executablelines indoc/api/openapi/openapi_v3.yamltoexample: executable, so Ruby's safe YAML loader accepts the document and other parsers see a value the API actually returns. - The fix belongs in the declaration, not the generator: a previous attempt at !256708 (closed) stringified Symbols in the rake task that renders the document, but for this field the declaration itself is the source of the Symbol.
The YAML file was hand-edited rather than regenerated; the static-analysis job's gitlab:openapi:v3:check_docs run verifies it matches a fresh render.