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

Fix signature of LanguageGenerator base class #3850

Merged
merged 2 commits into from
May 4, 2020
Merged

Conversation

tomlm
Copy link
Contributor

@tomlm tomlm commented May 1, 2020

fixes #3558

LG returns an object when binding to herocards/activity.
object was being serialized to JSON, then run through code to detect if it's JSON and convert it to an object.
This was all because LanguageGenerator.Generate() had signature of string for the return type.
Changes

  • Changed Generate() to return an object
  • Removed goofy code with double-deserialization
  • Updated unit tests to not do goofy double-deserialization
  • also made LGExtensions class name match other classes in system.

Tom Laird-McConnell added 2 commits May 1, 2020 15:12
* removed unneeded serialize/unserialize
with this change LG can return an object or a string.
@tomlm tomlm linked an issue May 1, 2020 that may be closed by this pull request
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.

[Adaptive] Clean up global statics
3 participants