superfaceai / service-client

Library provides client for superface backend apis.
MIT License
5 stars 1 forks source link

fix: SDKConfigResponse can contain null #84

Closed kysely closed 2 years ago

kysely commented 2 years ago

Description

The SDKConfigResponse interface correctly defines possible nullable values.

Motivation and Context

Starting with OneSDK v2, the SDKInit event is not being sent to Brain when using with configuration in code.

As a result, the request for SDKConfig resource in Brain is calculated from Metrics events which don't include profile version, provider version and priority.

This breaks expectations of clients (e.g. Air), resulting in unexpected behaviors. See Slack for an example bug

Types of changes

Checklist: