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

feat(core): add new operations modes #1822

Closed

Conversation

AllieJonsson
Copy link
Contributor

Status

WIP

Description

Two new modes for generating one file per operation. Thoughts?

Generated files for petstore.yaml in mode TAGS_OPERATIONS will be:

src/
├── health
│   ├── health-check.ts
│   └── index.ts
├── models
│   └── ...
└── pets
    ├── create-pets.ts
    ├── delete-pet-by-id.ts
    ├── index.ts
    ├── list-pets.ts
    └── show-pet-by-id.ts

Generated files for petstore.yaml in mode TAGS_SPLIT_OPERATIONS will be:

src/
├── health
│   ├── health-check.msw.ts
│   ├── health-check.ts
│   └── index.ts
├── models
│   └── ...
└── pets
    ├── create-pets.msw.ts
    ├── create-pets.ts
    ├── delete-pet-by-id.msw.ts
    ├── delete-pet-by-id.ts
    ├── index.ts
    ├── list-pets.msw.ts
    ├── list-pets.ts
    ├── show-pet-by-id.msw.ts
    └── show-pet-by-id.ts

@soartec-lab
Copy link
Member

That's a good idea.
However, adding more modes would affect many cases, and would also increase the number of elements that would need to be covered for future feature additions.
Taking that into account, I couldn't find a rational reason to add this mode.

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.

2 participants