You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Harden enum-value-formatting check
Fixes#820
## Summary
Harden `meta:enum` handling to be deterministic and safe: use
own-property checks, require `meta:enum` to be a plain object (emit
explicit error when invalid), fix coverage to check key presence (not
truthiness), improve `meta:enum` paths, and de-duplicate enum value
issues. No API/config changes.
## Changes
- Detect `meta:enum` via `Object.prototype.hasOwnProperty.call(parent,
'meta:enum')` (no prototype-chain lookup).
- Validate `meta:enum` is a plain object; emit one ERROR when invalid
type.
- Coverage: use own-key presence (`hasOwnProperty`) on `meta:enum` (no
truthiness false-positives, no inherited keys).
- Report “missing description” at the `meta:enum` path; fix extra-keys
path derivation.
- Iterate over unique enum string values to avoid duplicate issues.
0 commit comments