Skip to content

Commit 2c7095b

Browse files
committed
fix: inference error for apiHeaders
1 parent e274190 commit 2c7095b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

example.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function getSSLPage($url) {
4242
$platform = 'console';
4343
// $platform = 'server';
4444

45-
$spec = getSSLPage("https://raw.githubusercontent.com/appwrite/appwrite/1.7.x/app/config/specs/swagger2-latest-{$platform}.json");
45+
$spec = getSSLPage("https://raw.githubusercontent.com/appwrite/appwrite/fix-headers/app/config/specs/swagger2-latest-{$platform}.json");
4646

4747
if(empty($spec)) {
4848
throw new Exception('Failed to fetch spec from Appwrite server');

templates/android/library/src/main/java/io/package/services/Service.kt.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ class {{ service.name | caseUcfirst }}(client: Client) : Service(client) {
127127
responseType = {{ method | returnType(spec, sdk.namespace | caseDot) | raw }}::class.java
128128
)
129129
{%~ else %}
130-
val apiHeaders = mutableMapOf(
130+
val apiHeaders = mutableMapOf<String, String>(
131131
{%~ for key, header in method.headers %}
132132
"{{ key }}" to "{{ header }}",
133133
{%~ endfor %}

0 commit comments

Comments
 (0)