Skip to content

fix: normalize workspaceoutputWorkspace in options normalization #3458

@coderabbitai

Description

@coderabbitai

Summary

In packages/orval/src/utils/options.ts (around the normalizeOptions function), the workspace field is not being normalized to outputWorkspace — the pre-existing call shape passes workspace directly instead of the normalized outputWorkspace form expected downstream.

This was noticed during the review of PR #3444 (feat(effect): add @orval/effect schema generator), but it predates that change and is a standalone issue that deserves its own focused fix.

Steps to reproduce

Configure an orval output with a workspace key and observe that it is not normalized to outputWorkspace in the resulting options object.

Suggested fix

Add a workspace → outputWorkspace normalization step in normalizeOptions (or wherever the other output fields are normalized), matching the pattern used by other normalized output fields.

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No fields configured for Task.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions