-
Notifications
You must be signed in to change notification settings - Fork 16
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
Setup monorepo with lerna #53
Comments
I like the overall idea, monorepo fits here very good. But as it's called |
Not sure we need it.
Any suggestions? type Language<A> = (
out: string,
documents: Record<string, A>,
resolveRef: (ref: string) => Either<unknown, unknown>,
) => Either<unknown, FSEntity> |
Then it's just an implementation detail and not worth mentioning in the name (IMO, of course).
That's cool, but does this mean that we can't use our codegen tool for projects without |
It's a convention
|
It's convention among
It's not the point. If the next project will not use io-ts, does this mean it can't use btw, what do you think about the idea of naming entities (and directories as well) as |
If so should we rename
No it does not. All you need to use codegen is to pass a codec/language pair which should not necessarily be an
They are not "generators" but "serializers", they do not generate anything but serialize a spec. |
OK, I got your point. I thought that
Fine, does this mean that if we will decide to write a serializer without
Ok, I'm good with |
That won't make much sense since language templates are tied to schema types and codecs and we already have working codecs for that types.
ok |
Choosing names we should also think about #61 - this makes codegen spec-agnostic meaning that it's not only http/swagger/openapi only. |
Shouldn't it be just |
LGTM |
Maybe |
Actually, I just thought that the |
|
What about |
As the codebase grows, new languages and specs are added, to better control tests and builds we need to turn the project to monorepo and split the code into several subpackages:
languageserializer/typescript-swagger-2languageserializer/typescript-openapi-3Suggestions are welcome.
/cc @sutarmin @scink
The text was updated successfully, but these errors were encountered: