GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||
GeezerVison is showing github.com — Entity.createFromDiscriminatorValue incorrectly deserializes #microsoft.graph.user as com.microsoft.graph.beta.models.security.User · Issue #1264 · microsoftgraph/msgraph-beta-sdk-java Open Labels type:bugA broken experienceA broken experience DescriptionDescribe the bugIn current beta version, when trying to deserialize a This is because only one of See msgraph-beta-sdk-java/src/main/java/com/microsoft/graph/beta/generated/models/Entity.java Line 2075 in 3612a3a
msgraph-beta-sdk-java/src/main/java/com/microsoft/graph/beta/generated/models/Entity.java Line 2326 in 3612a3a
There are probably other cases like this one. Expected behavior
How to reproduceThis test //passes assertEquals(com.microsoft.graph.beta.models.User.class, KiotaJsonSerialization.deserialize(""" { "@odata.type": "#microsoft.graph.user" } """, DirectoryObject::createFromDiscriminatorValue).getClass()); //KO assertEquals(com.microsoft.graph.beta.models.User.class, KiotaJsonSerialization.deserialize(""" { "@odata.type": "#microsoft.graph.user" } """, Entity::createFromDiscriminatorValue).getClass()); will fail with SDK Version6.51.0 Latest version known to work for scenario above?No response Known WorkaroundsPass a more precise ParsableFactory, like Debug outputConfigurationNo response Other informationI found an old bug in Kiota that might be related (it was marked as fixed though): microsoft/kiota#1801 ActivityMetadataMetadataAssigneesLabelstype:bugA broken experienceA broken experience TypeProjectsMilestoneRelationshipsDevelopmentIssue actions | ||||
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |