Fix OpenAPI codegen to resolve $ref path parameters
The code generator was ignoring parameters that use $ref references
(e.g., $ref: '#/components/parameters/idOrUUID'). This caused path
template parameters like {id} to not be substituted in the generated
code.
Changes:
- Add param_name_from_ref to extract parameter name from $ref string
- Add resolve_parameter to look up referenced parameters in components
- Update analyze_operation to accept spec and path_item_params
- Merge path_item parameters with operation parameters
- Add explicit type annotation for path_item to fix type inference
The peertube library is regenerated with this fix, so get_video and
similar endpoints now correctly accept their path parameters.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>