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

Generate ToString for types #52

Closed
vasily-kirichenko opened this issue Sep 1, 2016 · 2 comments
Closed

Generate ToString for types #52

vasily-kirichenko opened this issue Sep 1, 2016 · 2 comments

Comments

@vasily-kirichenko
Copy link

Currently FSI shows results like this:

val it : Service.xGetResponse [] =
  [|SwaggerProvider.Service+xGetResponse
      {Infos = [|SwaggerProvider.Service+xGetFileInfo;
                     SwaggerProvider.Service+xGetFileInfo;
                     SwaggerProvider.Service+xGetFileInfo;
                     SwaggerProvider.Service+xGetFileInfo;
                     SwaggerProvider.Service+xGetFileInfo;
                     SwaggerProvider.Service+xGetFileInfo;
                     SwaggerProvider.Service+xGetFileInfo|];
       File = SwaggerProvider.Service+xGetFileFile;}|]

which makes using the TP in FSI meaningless.

Suggestion: generate ToString overrides, similar to what we have for records, for all generated types.

@sergey-tihon
Copy link
Member

sergey-tihon commented Sep 1, 2016

What ToString should return in this case?
Pretty-print of all type properties?
Do you know TP that already do it?

@sergey-tihon
Copy link
Member

Released in v0.6.1

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

No branches or pull requests

2 participants