ClientLibrary Localization


i have a problem if i add localizable items to a schema.
If i load the data via Postman with X-Languages and X-Flatten Header everything works as expected, but if i load the data via the ClientLibrary i got an exception:

An unhandled exception occurred while processing the request.
JsonSerializationException: Property must have a invariant language property.
Squidex.ClientLibrary.InvariantConverter.ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)

My Code:

public async Task<List<Page>> GetPagesAsync()
            var context = QueryContext.Default.WithLanguages("en").Flatten();
            var pages = await this.pagesClient.GetAsync(context: context);
            return pages.Items;

Thank you,



at the moment the InvariantConverter always requires the following structure for each property:

   "iv": "Foo"

You can just remove the converter from your properties.


it works now, thanks!