Skip to content

Commit 63b1dd8

Browse files
committed
fix: unescaped default param
1 parent 1c9608c commit 63b1dd8

File tree

133 files changed

+39
-8
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

133 files changed

+39
-8
lines changed

.github/workflows/publish.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Publish to RubyGems
2+
on:
3+
release:
4+
types: [published]
5+
6+
jobs:
7+
publish:
8+
name: Release build and publish
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Check out code
12+
uses: actions/checkout@v4
13+
14+
- name: Set up .NET
15+
uses: actions/setup-dotnet@v4
16+
with:
17+
dotnet-version: '6'
18+
19+
- name: Install dependencies
20+
run: dotnet restore
21+
22+
- name: Build nuget
23+
run: |
24+
dotnet build -c Release
25+
dotnet pack -c Release
26+
27+
- name: Publish nuget
28+
run: |
29+
dotnet nuget push ./Appwrite/bin/Release/*.nupkg \
30+
--api-key ${{ secrets.NUGET_TOKEN }} \
31+
--source https://api.nuget.org/v3/index.json
File renamed without changes.

src/Appwrite/Appwrite.csproj renamed to Appwrite/Appwrite.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
<ItemGroup>
2323
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
2424
<PackageReference Include="System.Net.Http" Version="4.3.4" />
25-
<None Include="..\..\icon.png" Pack="true" PackagePath="$(PackageIcon)"/>
26-
<None Include="..\..\README.md" Pack="true" PackagePath="$(PackageReadmeFile)"/>
25+
<None Include="..\icon.png" Pack="true" PackagePath="$(PackageIcon)"/>
26+
<None Include="..\README.md" Pack="true" PackagePath="$(PackageReadmeFile)"/>
2727
</ItemGroup>
2828

2929
</Project>
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/Appwrite/Models/AttributeDatetime.cs renamed to Appwrite/Models/AttributeDatetime.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public AttributeDatetime(
6262
required: (bool)map["required"],
6363
array: (bool?)map["array"],
6464
format: map["format"].ToString(),
65-
xdefault: map.TryGetValue("default", out var default) ? default.ToString() : null
65+
xdefault: map.TryGetValue("default", out var xdefault) ? xdefault.ToString() : null
6666
);
6767

6868
public Dictionary<string, object?> ToMap() => new Dictionary<string, object?>()

src/Appwrite/Models/AttributeEmail.cs renamed to Appwrite/Models/AttributeEmail.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public AttributeEmail(
6262
required: (bool)map["required"],
6363
array: (bool?)map["array"],
6464
format: map["format"].ToString(),
65-
xdefault: map.TryGetValue("default", out var default) ? default.ToString() : null
65+
xdefault: map.TryGetValue("default", out var xdefault) ? xdefault.ToString() : null
6666
);
6767

6868
public Dictionary<string, object?> ToMap() => new Dictionary<string, object?>()

src/Appwrite/Models/AttributeEnum.cs renamed to Appwrite/Models/AttributeEnum.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public AttributeEnum(
6868
array: (bool?)map["array"],
6969
elements: ((JArray)map["elements"]).ToObject<List<object>>(),
7070
format: map["format"].ToString(),
71-
xdefault: map.TryGetValue("default", out var default) ? default.ToString() : null
71+
xdefault: map.TryGetValue("default", out var xdefault) ? xdefault.ToString() : null
7272
);
7373

7474
public Dictionary<string, object?> ToMap() => new Dictionary<string, object?>()

src/Appwrite/Models/AttributeIp.cs renamed to Appwrite/Models/AttributeIp.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public AttributeIp(
6262
required: (bool)map["required"],
6363
array: (bool?)map["array"],
6464
format: map["format"].ToString(),
65-
xdefault: map.TryGetValue("default", out var default) ? default.ToString() : null
65+
xdefault: map.TryGetValue("default", out var xdefault) ? xdefault.ToString() : null
6666
);
6767

6868
public Dictionary<string, object?> ToMap() => new Dictionary<string, object?>()

src/Appwrite/Models/AttributeString.cs renamed to Appwrite/Models/AttributeString.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public AttributeString(
6262
required: (bool)map["required"],
6363
array: (bool?)map["array"],
6464
size: Convert.ToInt64(map["size"]),
65-
xdefault: map.TryGetValue("default", out var default) ? default.ToString() : null
65+
xdefault: map.TryGetValue("default", out var xdefault) ? xdefault.ToString() : null
6666
);
6767

6868
public Dictionary<string, object?> ToMap() => new Dictionary<string, object?>()

src/Appwrite/Models/AttributeUrl.cs renamed to Appwrite/Models/AttributeUrl.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public AttributeUrl(
6262
required: (bool)map["required"],
6363
array: (bool?)map["array"],
6464
format: map["format"].ToString(),
65-
xdefault: map.TryGetValue("default", out var default) ? default.ToString() : null
65+
xdefault: map.TryGetValue("default", out var xdefault) ? xdefault.ToString() : null
6666
);
6767

6868
public Dictionary<string, object?> ToMap() => new Dictionary<string, object?>()
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)