Open
Description
The DataSource
model requires DataSourceCredentials
, but the latter model is not returned from data source APIs. Since it's required, we cannot send back null (at least, the .NET generator does not support this since it's not "x-nullable": true
and is, again, authored as required) and if we send an empty value (connectionString
is not required), it would either err on the server or, worse, wipe out the existing credentials stored for the data source.
Instead, I'm told, the connectionString
should be set to either "<unchanged>" or "<redacted>" to avoid wiping out the credentials. These should be documented in swagger so that callers know what to pass to update a data source.