#1865·visdom

OpenAPI schema duplicates both hparams paths and fails strict YAML validation

Author: YashAnand69Created Sep 27, 2026Updated Sep 27, 2026

Bug Description

On dev at 5c7285e, openapi.yaml defines both /experiments/hparams and /experiments/hparams/update twice. The second pair of path definitions is byte-for-byte identical to the first.

Steps to reproduce

Run pre-commit run check-yaml --files openapi.yaml. The existing hook fails with duplicate key /experiments/hparams at line 962. Permissive YAML parsers silently overwrite the first declarations; strict parsers reject the API document.

Expected

One definition per path. Removing the repeated 156-line block makes the existing strict check pass while preserving exactly the same parsed API contract. No endpoint or schema behavior needs to change.

Found while validating #1864; preparing this as an independent fix against dev. Searched open issues and PRs for matching OpenAPI/hparams duplication work and found none. AI assistance: OpenAI Codex.