Add remaining allowedValues annotations and CI check - #13904
Add remaining allowedValues annotations and CI check#13904dheeraj12347 wants to merge 8 commits into
Conversation
|
Hi @Pearl1594 and @soreana I’ve opened PR #13904 for the remaining allowedValues annotations and the CI lint check. The CI checker now covers the description-pattern check as well as the inner-enum/@parameter cross-reference, and I’ve added unit tests for the checker. Locally, all 13 tests pass, py_compile passes, and the repository-wide check reports no missing allowedValues annotations. The PR is currently waiting for maintainer approval for the GitHub Actions workflow before the checks can run. With PR #13904 covering the Tier 4 annotations + CI part of Phase 4, I’m planning to move on to the remaining Phase 4 deliverable: updating CloudMonkey’s bundled apis.json and adding the developer documentation/annotation guidelines. Please let me know if you’d like anything adjusted in #13904 before I proceed with that. |
Description
This PR completes the remaining
allowedValuesannotation work for the CloudStack API parameters identified during the allowed-values audit and adds a CI check to prevent missing annotations from being introduced.Changes
allowedValuesannotations to the remaining statically-known enum-like API parameters.CheckAndRepairVolumeCmd.repairparameter and its associated inner enum.scripts/check_allowed_values.pyto detect string parameters whose descriptions specify a closed set of valid/possible/allowed values but do not declareallowedValues.@Parameterfields.scripts/test_check_allowed_values.pycovering:and-separated valuesallowedValuesallowedValuesallowedValueTypeValidation
The following checks pass locally: