Skip to content
This repository was archived by the owner on Apr 11, 2023. It is now read-only.
This repository was archived by the owner on Apr 11, 2023. It is now read-only.

jaydata maps an empty string to null #276

Open
@bizlina

Description

@bizlina

Hi,

I've used JaySvcUtil to generate the entity model out of my oData service. The description is correct generated. I have multiple string keys for one Entity. A oData call for that Entity gives me, for example, the following result (the yellow marked properties are the key columns):

image

One of the key columns (THEME) contains an empty string. After mapping with jaydata the empty string is transformed to "null". This gives me an valildation error because the key filed is required and seems to be null. See the following screenshot.
image

How can I resolve this issue? Is there any possibility to tell jaydata that an empty string is okay for the a field that is defined as "Edm.String"?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions