You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think it will be easier to understand what's what. The structure of the types directory should resemble the structure of the OpenAPI spec. And "routes" is a clearer indicator of what the directory contains.
I don't like to catch people off guard with disruptive changes like this. If we're going to do it, it should be before 1.0.
The text was updated successfully, but these errors were encountered:
Maybe there can be a grace period with backwards compatibility. If a paths directory is detected, Counterfact will continue to use the old structure but print a warning with migration instructions. (It's a matter of renaming a couple of directories and then doing a search and replace.)
I do think the renaming is better. Not so worried about the breaking change, pre-1.0 but rather than supporting both, what about a migration script that just moves everything to the new places?
A fairly simple change:
path-types
->types/paths
components
->types/components
paths
->routes
I think it will be easier to understand what's what. The structure of the types directory should resemble the structure of the OpenAPI spec. And "routes" is a clearer indicator of what the directory contains.
I don't like to catch people off guard with disruptive changes like this. If we're going to do it, it should be before 1.0.
The text was updated successfully, but these errors were encountered: