File tree Expand file tree Collapse file tree 7 files changed +65
-11
lines changed 
src/Examples/GettingStarted Expand file tree Collapse file tree 7 files changed +65
-11
lines changed Original file line number Diff line number Diff line change 33  "isRoot" : true ,
44  "tools" : {
55    "jetbrains.resharper.globaltools" : {
6-       "version" : " 2025.2.0 "  ,
6+       "version" : " 2025.2.3 "  ,
77      "commands" : [
88        " jb" 
99      ],
Original file line number Diff line number Diff line change 7979            # Get the version suffix from the auto-incrementing build number. For example: '123' => 'master-00123' 
8080            $revision = "{0:D5}" -f [convert]::ToInt32($env:GITHUB_RUN_NUMBER, 10) 
8181            $branchName = ![string]::IsNullOrEmpty($env:GITHUB_HEAD_REF) ? $env:GITHUB_HEAD_REF : $env:GITHUB_REF_NAME 
82-             $safeName  = $branchName. Replace('/ ', '-').Replace('_', '-')  
83-             $versionSuffix = "$safeName -$revision" 
82+             $safeBranchName  = $($ branchName - Replace '[^a-zA-Z0-9-] ', '-')[0..40] -Join ""  
83+             $versionSuffix = "$safeBranchName -$revision" 
8484        } 
8585        Write-Output "Using version suffix: $versionSuffix" 
8686        Write-Output "PACKAGE_VERSION_SUFFIX=$versionSuffix" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append 
@@ -197,7 +197,7 @@ jobs:
197197        Write-Output "Running code cleanup on commit range $baseCommitHash..$headCommitHash in pull request." 
198198        dotnet regitlint -s JsonApiDotNetCore.MongoDb.sln --print-command --skip-tool-check --max-runs=5 --jb --dotnetcoresdk=$(dotnet --version) --jb-profile="JADNC Full Cleanup" --jb --properties:Configuration=Release --jb --properties:RunAnalyzers=false --jb --verbosity=WARN -f commits -a $headCommitHash -b $baseCommitHash --fail-on-diff --print-diff 
199199     - name : CleanupCode (on branch) 
200-       if : ${{ github.event_name == 'push' || github.event_name == 'release' }} 
200+       if : ${{ github.event_name == 'push' || github.event_name == 'release' || github.event_name == 'workflow_dispatch'  }} 
201201      shell : pwsh 
202202      run : | 
203203        Write-Output 'Running code cleanup on all files.' 
Original file line number Diff line number Diff line change 99    <AnalysisMode >Recommended</AnalysisMode >
1010    <CodeAnalysisRuleSet >$(MSBuildThisFileDirectory)CodingGuidelines.ruleset</CodeAnalysisRuleSet >
1111    <RunSettingsFilePath >$(MSBuildThisFileDirectory)tests.runsettings</RunSettingsFilePath >
12-     <VersionPrefix >5.7.2 </VersionPrefix >
12+     <VersionPrefix >5.9.0 </VersionPrefix >
1313    <VersionSuffix >pre</VersionSuffix >
1414    <NuGetAuditMode >direct</NuGetAuditMode >
1515  </PropertyGroup >
Original file line number Diff line number Diff line change 11<Project >
22  <PropertyGroup >
33    <!--  Published dependencies (only update on major version change) --> 
4-     <JsonApiDotNetCoreFrozenVersion >5.7.1 </JsonApiDotNetCoreFrozenVersion >
4+     <JsonApiDotNetCoreFrozenVersion >5.9.0 </JsonApiDotNetCoreFrozenVersion >
55    <MongoDBDriverFrozenVersion >3.3.0</MongoDBDriverFrozenVersion >
66
77    <!--  Non-published dependencies (these are safe to update, won't cause a breaking change) --> 
1111    <FluentAssertionsVersion >7.2.*</FluentAssertionsVersion >
1212    <GitHubActionsTestLoggerVersion >2.4.*</GitHubActionsTestLoggerVersion >
1313    <InheritDocVersion >2.0.*</InheritDocVersion >
14-     <MongoDBDriverVersion >3.3 .*</MongoDBDriverVersion >
15-     <TestSdkVersion >17.14 .*</TestSdkVersion >
14+     <MongoDBDriverVersion >3.5 .*</MongoDBDriverVersion >
15+     <TestSdkVersion >18.0 .*</TestSdkVersion >
1616    <XunitVersion >2.9.*</XunitVersion >
1717    <XunitVisualStudioVersion >3.1.*</XunitVisualStudioVersion >
1818  </PropertyGroup >
Original file line number Diff line number Diff line change 1+ @hostAddress = http://localhost:24141 
2+ 
3+ ### Get all books. 
4+ 
5+ GET  {{hostAddress }}/api/books 
6+ 
7+ ### Get the first two books. 
8+ 
9+ GET  {{hostAddress }}/api/books?page[size]=2 
10+ 
11+ ### Filter books whose title contains whitespace, sort descending by publication year. 
12+ 
13+ GET  {{hostAddress }}/api/books?filter=contains(title,'%20')&sort=-publishYear 
14+ 
15+ ### Get only the titles of all books. 
16+ 
17+ GET  {{hostAddress }}/api/books?fields[books]=title 
18+ 
19+ ### Create a new book. 
20+ 
21+ POST  {{hostAddress }}/api/books 
22+ Content-Type:  application/vnd.api+json
23+ 
24+ {
25+   "data" : {
26+     "type" : " books"  ,
27+     "attributes" : {
28+       "title" : " Getting started with JSON:API"  ,
29+       "author" : " John Doe"  ,
30+       "publishYear" : 2000 
31+     }
32+   }
33+ }
34+ 
35+ ### Change the publication year and author of the book with ID 68f86594c8555269227c26d2. 
36+ 
37+ PATCH  {{hostAddress }}/api/books/68f86594c8555269227c26d2 
38+ Content-Type:  application/vnd.api+json
39+ 
40+ {
41+   "data" : {
42+     "type" : " books"  ,
43+     "id" : " 68f86594c8555269227c26d2"  ,
44+     "attributes" : {
45+       "publishYear" : 1820 ,
46+       "author" : " Jane Doe" 
47+     }
48+   }
49+ }
50+ 
51+ ### Delete the book with ID 68f86594c8555269227c26d2. 
52+ 
53+ DELETE  {{hostAddress }}/api/books/68f86594c8555269227c26d2 
Original file line number Diff line number Diff line change @@ -32,9 +32,10 @@ public static StrongReferenceTypeAssertions<T> RefShould<T>([SysNotNull] this T?
3232        return  new  StrongReferenceTypeAssertions < T > ( actualValue ) ; 
3333    } 
3434
35-     public  static   void  With < T > ( this  T  subject ,  [ InstantHandle ]  Action < T >  continuation ) 
35+     public  static   T  With < T > ( this  T  subject ,  [ InstantHandle ]  Action < T >  continuation ) 
3636    { 
3737        continuation ( subject ) ; 
38+         return  subject ; 
3839    } 
3940
4041    public  sealed  class  StrongReferenceTypeAssertions < TReference > ( TReference  subject ) 
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ public IntegrationTestContext()
5656        _lazyFactory  =  new  Lazy < WebApplicationFactory < TStartup > > ( CreateFactory ) ; 
5757    } 
5858
59-     private  IMongoRunner  StartMongoDb ( ) 
59+     private  static   IMongoRunner  StartMongoDb ( ) 
6060    { 
6161        return  MongoRunnerProvider . Instance . Get ( ) ; 
6262    } 
@@ -118,7 +118,7 @@ private WebApplicationFactory<TStartup> CreateFactory()
118118        return  factory ; 
119119    } 
120120
121-     private  void  ConfigureJsonApiOptions ( JsonApiOptions  options ) 
121+     private  static   void  ConfigureJsonApiOptions ( JsonApiOptions  options ) 
122122    { 
123123        options . IncludeExceptionStackTraceInErrors  =  true ; 
124124        options . IncludeRequestBodyInErrors  =  true ; 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments