We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Found some errors in code:
getData(value: string, type: DadataType = DadataType.address, config: DadataConfig): Observable { const httpOptions = { headers: new HttpHeaders({ Accept: 'application/json', 'Content-Type': 'application/json', Authorization: 'Token ' + this.apiKey, }) }; const body = Object.assign( {}, {query: value}, {count: config?.limit}, {location: config?.locations}, {location_bust: config?.locationsBoost}, {from_bound: config?.bounds?.fromBound}, {to_bound: config?.bounds?.toBound} ); return this.http.post('https://suggestions.dadata.ru/suggestions/api/4_1/rs/suggest/' + type, body, httpOptions); }
should be:
getData(value: string, type: DadataType = DadataType.address, config: DadataConfig): Observable { const httpOptions = { headers: new HttpHeaders({ Accept: 'application/json', 'Content-Type': 'application/json', Authorization: 'Token ' + this.apiKey, }) }; const body = Object.assign( {}, {query: value}, {count: config?.limit}, {locations: config?.locations}, {location_boost: config?.locationsBoost}, {from_bound: config?.bounds?.fromBound}, {to_bound: config?.bounds?.toBound} ); return this.http.post('https://suggestions.dadata.ru/suggestions/api/4_1/rs/suggest/' + type, body, httpOptions); }
The text was updated successfully, but these errors were encountered:
Hi! Thanks! Can you make a PR?
Sorry, something went wrong.
No branches or pull requests
Found some errors in code:
getData(value: string, type: DadataType = DadataType.address, config: DadataConfig): Observable {
const httpOptions = {
headers: new HttpHeaders({
Accept: 'application/json',
'Content-Type': 'application/json',
Authorization: 'Token ' + this.apiKey,
})
};
const body = Object.assign(
{},
{query: value},
{count: config?.limit},
{location: config?.locations},
{location_bust: config?.locationsBoost},
{from_bound: config?.bounds?.fromBound},
{to_bound: config?.bounds?.toBound}
);
return this.http.post('https://suggestions.dadata.ru/suggestions/api/4_1/rs/suggest/' + type, body, httpOptions);
}
should be:
getData(value: string, type: DadataType = DadataType.address, config: DadataConfig): Observable {
const httpOptions = {
headers: new HttpHeaders({
Accept: 'application/json',
'Content-Type': 'application/json',
Authorization: 'Token ' + this.apiKey,
})
};
const body = Object.assign(
{},
{query: value},
{count: config?.limit},
{locations: config?.locations},
{location_boost: config?.locationsBoost},
{from_bound: config?.bounds?.fromBound},
{to_bound: config?.bounds?.toBound}
);
return this.http.post('https://suggestions.dadata.ru/suggestions/api/4_1/rs/suggest/' + type, body, httpOptions);
}
The text was updated successfully, but these errors were encountered: