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

Features/two-phase generation #19

Closed
wants to merge 3 commits into from

Conversation

beorosz
Copy link
Contributor

@beorosz beorosz commented Sep 18, 2019

Make possible to serialize/deserialize SigSpecDocument

@beorosz beorosz mentioned this pull request Sep 20, 2019
using System;
using System.Collections.Generic;

namespace SigSpec.Core
{
[JsonConverter(typeof(JsonReferenceConverter))]
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you remove this? I think it's needed for correct $ref handling

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wasn't able to properly serialize and then deserialize SigSpecDocument. Deserialization always threw StackOverflowException. It looked has an infinite loop while trying to deserialize the document (commit aeeaf90 depicts the problem) . Removing the attribute solved the problem and I was able to deserialize and generate the TS client.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you think my solution does not work, please indicate and I revoke my PR.

@beorosz beorosz closed this Oct 12, 2019
@beorosz
Copy link
Contributor Author

beorosz commented Oct 12, 2019

Closing the PR as it is not accepted.

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