[State CosmosDB] Preserve property order #3373
Labels
help wanted
Extra attention is needed
kind/enhancement
New feature or request
size/XS
2 days of work
Milestone
When reading an entry from a CosmosDB backed state store, properties are returned in seemingly random order, often shuffled differently on each fetch.
This breaks
System.Text.Json
polymorphism, as the$type
(or other delimiter) must be the first property read in an object.Expected Behavior
The JSON should not be modified or altered, when read from the state store.
When the value:
Is stored in the state store, get state should return:
Actual Behavior
When the value:
Is stored in the state store, get state will randomly return either:
or
Steps to Reproduce the Problem
state.azure.cosmosdb
state storeRelease Note
RELEASE NOTE: FIX CosmosDB state returns shuffled JSON
The text was updated successfully, but these errors were encountered: