Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(msw): Incorrect Import Generated for Enum in Mock Files #1639

Merged
merged 2 commits into from
Sep 23, 2024

Conversation

AlmarAubel
Copy link
Contributor

@AlmarAubel AlmarAubel commented Sep 23, 2024

Status

fix #1620

WIP

Description

Fixes the issue mention in #1620. It now imports like this import { DomainStatusEnum } from '.././model'; instead of import { Domain.Status.Enum } from '.././model';

Todos

It is realy difficult to check if I didn't broken anything after the change. When i ran generate api on vue-query sample it looked good and only added the new correct import statments. Thats why i marked it as WIP. If you have tips to test it better please let me know.

This was already done in the core package but was not done during the generation of the MSW defintions.
Added a new enumeration `Domain.Status.Enum` to represent the status of pets with values. This enum I used to test if the MSW definitions where generated correct.
@melloware melloware added this to the 7.2.0 milestone Sep 23, 2024
@melloware
Copy link
Collaborator

cc @dteske25

@melloware melloware merged commit b37b2b3 into orval-labs:master Sep 23, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MSW: Incorrect Import Generated for Enum in Mock Files
3 participants