Skip to content

Error in custom converters #173

@andreas-aeschlimann

Description

@andreas-aeschlimann

When I define an own CustomConverter (example: DateConverter), I can define it to throw errors.

The error message is a bit confusing. The expected type is listed as undefined while it should better be the DateConverter instead (or none at all).

Example:

start.page.ts:78 Error: Fatal error in JsonConvert. Failed to map the JSON object to the class "User" because of a type error.	Class property:	created	Expected type:	undefined	JSON property:	createdo	JSON type:	undefined	JSON value:	undefined Unexpected type for DateTime string given. Expected string, received undefined. 

Metadata

Metadata

Labels

invalidThis doesn't seem right

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions