Marc J. Schmidt
Marc J. Schmidt
You can use `jsonSerializer.for(Foo).deserialize(..., { groupsExclude: [ 'withDetails' ] });`. If you want to include only properties that have no groups assigned, you can [now use `{groups: []}`](https://github.com/deepkit/deepkit-framework/commit/0ed99235c0379256e7d2b952f3d82338b33f6161).
You could add a group to each field then, e.g. a `default`. This is probably the most secure and stable way.
> Why not have an additional groupsInclude which would be the opposite of groupsExclude and it would do exactly what I am describing? Yes, that would make sense 👍
Alternative API ```typescript const item = jsonSerializer.for(Foo).withGroups('foo', 'bar').includeNoGroup().serialize(item); const serializer = jsonSerializer.for(Foo).withGroups('foo', 'bar').includeNoGroup() const item = serializer.serialize(item); ```
Yes, although I think http.throw can be removed entirely
I see multiple ways to do that: 1. Make a function factory ```typescript interface LegacyFormatOptions { radix: number } function convertToNumber(options: LegacyFormatOptions) { return value => value.toString(options.radix); } class Stuff...
It should be an API that does not pull backend code, so that models can still be used in frontend (and elsewhere). Thus, it should be a declarative way.
We should not forget interface entities: ```typescript interface User extends Entity, SoftDeletePlugin { } ```
Signing the agreement gave me "Could not sign the CLA, please [email protected]", when I tried again it says "You already signed the CLA on 2022-11-28"🤷♂️
@CristianPi merged, thanks!