xambey / dadata.apiclient Goto Github PK
View Code? Open in Web Editor NEWC#-клиент для API DaData.ru
License: MIT License
C#-клиент для API DaData.ru
License: MIT License
Судя по тестам, поле не должно принимать значение null
вообще:
DaData.ApiClient/Dadata.Test/AdditionalApi.cs
Lines 155 to 160 in 3a7f55a
Как правильно обработать ответ при !UserBalanceResponse.Balance.HasValue
?
Как предполагается использовать CompositeRequest
, а именно чем заполнять значения Structure
и Data
? Просто плоским JSON в виде строки или есть какие-то обёртки?
Я не вижу, или его библиотека не поддерживает?
У организаций может быть состояние BANKRUPT
При запросе вида:
var response = await _client.AdditionalQueryOrganizationByInnOrOgrn(new OrganizationRequest
{
Query = "5632001664"
})
.ConfigureAwait(false);
Приложение падает с исключением:
Newtonsoft.Json.JsonSerializationException: Error converting value "BANKRUPT" to type 'DaData.Models.Enums.OrganizationState'. Path 'suggestions[0].data.state.status', line 1, position 511.
---> System.ArgumentException: Requested value 'BANKRUPT' was not found.
The model contains following properties
List<DataAuthority> Authorities
List<DataDocument> Documents
According to DaData documentation those types should be IDictionary<string, DataAuthority>, IDictionary<string, DataDocument> or plain objects like
public class DataAuthorities
{
public DataAuthority FtsRegistration { get; set; }
public DataAuthority FtsReport { get; set; }
public DataAuthority Pf { get; set; }
public DataAuthority Sif { get; set; }
}
public class DataDocuments
{
public DataDocument FtsRegistration { get; set; }
public DataDocument PfRegistration { get; set; }
public DataDocument SifRegistration { get; set; }
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.