Skip to content

Commit fd6ca38

Browse files
update sample dependencies (#40)
1 parent 1fe99c2 commit fd6ca38

File tree

15 files changed

+23
-49
lines changed

15 files changed

+23
-49
lines changed

.config/dotnet-tools.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
"isRoot": true,
44
"tools": {
55
"xmldoc2markdown": {
6-
"version": "2.1.1",
6+
"version": "3.1.0",
77
"commands": [
88
"xmldoc2md"
99
]
1010
},
1111
"dotnet-reportgenerator-globaltool": {
12-
"version": "5.1.4",
12+
"version": "5.1.24",
1313
"commands": [
1414
"reportgenerator"
1515
]

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2022 Charles de Vandière
3+
Copyright (c) 2023 Charles de Vandière
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ See sample [here](https://github.com/charlesdevandiere/graphql-query-builder-dot
1515

1616
## Install
1717

18-
```console
18+
```shell
1919
dotnet add package GraphQL.Query.Builder
2020
```
2121

docs/api/graphql.query.builder.queryoptions.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@ public Func<IQueryStringBuilder> QueryStringBuilderFactory { get; set; }
4444

4545
### **QueryOptions()**
4646

47-
48-
4947
```csharp
5048
public QueryOptions()
5149
```

generate-documentation.bash

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
3+
dotnet tool restore
4+
dotnet build src/GraphQL.Query.Builder/GraphQL.Query.Builder.csproj -c Release
5+
dotnet tool run xmldoc2md src/GraphQL.Query.Builder/bin/Release/netstandard2.0/GraphQL.Query.Builder.dll docs/api --github-pages --back-button

sample/Models/Attack.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,16 @@
11
using System.Text.Json.Serialization;
2-
using Newtonsoft.Json;
32

43
namespace Shared.Models;
54

65
public class Attack
76
{
87
[JsonPropertyName("name")]
9-
[JsonProperty("name")]
108
public string Name { get; set; }
119

1210
[JsonPropertyName("type")]
13-
[JsonProperty("type")]
1411
public string Type { get; set; }
1512

1613
[JsonPropertyName("damage")]
17-
[JsonProperty("damage")]
1814
public int Damage { get; set; }
1915

2016
public override string ToString()

sample/Models/Models.csproj

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
11-
<PackageReference Include="System.Text.Json" Version="6.0.3" />
10+
<PackageReference Include="System.Text.Json" Version="7.0.3" />
1211
</ItemGroup>
1312

1413
</Project>

sample/Models/Pokemon.cs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,29 @@
11
using System.Text;
22
using System.Text.Json.Serialization;
3-
using Newtonsoft.Json;
43

54
namespace Shared.Models;
65

76
public class Pokemon
87
{
98
[JsonPropertyName("attacks")]
10-
[JsonProperty("attacks")]
119
public PokemonAttack Attacks { get; set; }
1210

1311
[JsonPropertyName("height")]
14-
[JsonProperty("height")]
1512
public PokemonDimension Height { get; set; }
1613

1714
[JsonPropertyName("id")]
18-
[JsonProperty("id")]
1915
public string Id { get; set; }
2016

2117
[JsonPropertyName("name")]
22-
[JsonProperty("name")]
2318
public string Name { get; set; }
2419

2520
[JsonPropertyName("number")]
26-
[JsonProperty("number")]
2721
public string Number { get; set; }
2822

2923
[JsonPropertyName("types")]
30-
[JsonProperty("types")]
3124
public string[] Types { get; set; }
3225

3326
[JsonPropertyName("weight")]
34-
[JsonProperty("weight")]
3527
public PokemonDimension Weight { get; set; }
3628

3729
public override string ToString()

sample/Models/PokemonAttack.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
11
using System.Text;
22
using System.Text.Json.Serialization;
3-
using Newtonsoft.Json;
43

54
namespace Shared.Models;
65

76
public class PokemonAttack
87
{
98
[JsonPropertyName("fast")]
10-
[JsonProperty("fast")]
119
public Attack[] Fast { get; set; }
1210

1311
[JsonPropertyName("special")]
14-
[JsonProperty("special")]
1512
public Attack[] Special { get; set; }
1613

1714
public override string ToString()

sample/Models/PokemonDimension.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
11
using System.Text.Json.Serialization;
2-
using Newtonsoft.Json;
32

43
namespace Shared.Models;
54

65
public class PokemonDimension
76
{
87
[JsonPropertyName("minimum")]
9-
[JsonProperty("minimum")]
108
public string Minimum { get; set; }
119

1210
[JsonPropertyName("maximum")]
13-
[JsonProperty("maximum")]
1411
public string Maximum { get; set; }
1512

1613
public override string ToString()

0 commit comments

Comments
 (0)