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

Exception thrown when deserializing interfaces #5008

Open
Kokujou opened this issue Oct 24, 2024 · 0 comments
Open

Exception thrown when deserializing interfaces #5008

Kokujou opened this issue Oct 24, 2024 · 0 comments

Comments

@Kokujou
Copy link

Kokujou commented Oct 24, 2024

I'm trying to use models from Graph as DTOs, which almost works well until you have a look at some of the base properties...

I don't even need those properties, but now i get generated code like

    static fromJS(data: any, _mappings?: any): IBackingStore | null {
        data = typeof data === 'object' ? data : {};
        throw new Error("The abstract class 'IBackingStore' cannot be instantiated.");
    }

I get the problem partially, but it's blocking me so much, that i'd need to change the whole structure of my project so i want to either:

  1. make them go away and just serialize to any or so,
  2. delete all properties with interface types also from serialization/deserialization

if there'd be any generic solution that'd be nice.

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

1 participant