fix(sravni): update entities to match current sravni.ru API #6
Reference in New Issue
Block a user
No description provided.
Delete Branch "fix/sravni-api-entity-changes"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
sravni.ru changed their
__NEXT_DATA__payload, breaking JSON deserialization in the sravni client.Changes in
entities.go:ReduxConfig.DataSources:map[string]ReduxDataSource→map[string]string(API now sends simple string values, not objects with type/source)ReduxConfig.Dictionaries: removed entirely (no longer present in the API response)ReduxConfigSorting: addedNameandDirectionfields (API now returnsname,property,direction)DataSourceType,ReduxDataSource,ReduxConfigDictionaryRangeUnit,ReduxConfigDictionaryBaseUnitVerified:
sravnicli main state— parses page state, loads dictionaries ✓sravnicli api education list_products— returns courses from live API ✓PR #6 Merged — Resolution Summary
fix(sravni): update entities to match current sravni.ru API
Root Cause
sravni.ru changed their
__NEXT_DATA__payload structure, breaking JSON deserialization in the sravni client. TheReduxConfigstruct expected object-typed data sources and aDictionariesblock that no longer exist in the API response.Key Changes
ReduxConfig.DataSources: changed frommap[string]ReduxDataSource(objects with type/source fields) tomap[string]string(simple key-value pairs) — matches the new API shapeReduxConfig.Dictionaries: removed entirely — the block is no longer present in the API responseReduxConfigSorting: addedNameandDirectionfields to match the API now returningname,property, anddirectionDataSourceType,ReduxDataSource,ReduxConfigDictionaryRangeUnit(no longer referenced)Verification
sravnicli main state— parses page state, loads dictionaries ✓sravnicli api education list_products— returns courses from live API ✓228b30cc