File tree 21 files changed +0
-471
lines changed
Examples/JsonApiDotNetCoreExample/GeneratedSwagger
JsonApiDotNetCore.OpenApi/JsonApiObjects/Links
ClientIdGenerationModes/GeneratedSwagger
CamelCase/GeneratedSwagger
KebabCase/GeneratedSwagger
PascalCase/GeneratedSwagger
QueryStrings/GeneratedSwagger
NullableReferenceTypesOff
ModelStateValidationOff/GeneratedSwagger
ModelStateValidationOn/GeneratedSwagger
ModelStateValidationOff/GeneratedSwagger
ModelStateValidationOn/GeneratedSwagger
RestrictedControllers/GeneratedSwagger
21 files changed +0
-471
lines changed Original file line number Diff line number Diff line change 4878
4878
"additionalProperties" : false
4879
4879
},
4880
4880
"linksInErrorDocument" : {
4881
- "required" : [
4882
- " self"
4883
- ],
4884
4881
"type" : " object" ,
4885
4882
"properties" : {
4886
4883
"self" : {
4887
- "minLength" : 1 ,
4888
4884
"type" : " string"
4889
4885
},
4890
4886
"describedby" : {
4894
4890
"additionalProperties" : false
4895
4891
},
4896
4892
"linksInRelationship" : {
4897
- "required" : [
4898
- " related" ,
4899
- " self"
4900
- ],
4901
4893
"type" : " object" ,
4902
4894
"properties" : {
4903
4895
"self" : {
4904
- "minLength" : 1 ,
4905
4896
"type" : " string"
4906
4897
},
4907
4898
"related" : {
4908
- "minLength" : 1 ,
4909
4899
"type" : " string"
4910
4900
}
4911
4901
},
4912
4902
"additionalProperties" : false
4913
4903
},
4914
4904
"linksInResourceCollectionDocument" : {
4915
- "required" : [
4916
- " self"
4917
- ],
4918
4905
"type" : " object" ,
4919
4906
"properties" : {
4920
4907
"self" : {
4921
- "minLength" : 1 ,
4922
4908
"type" : " string"
4923
4909
},
4924
4910
"describedby" : {
4940
4926
"additionalProperties" : false
4941
4927
},
4942
4928
"linksInResourceData" : {
4943
- "required" : [
4944
- " self"
4945
- ],
4946
4929
"type" : " object" ,
4947
4930
"properties" : {
4948
4931
"self" : {
4949
- "minLength" : 1 ,
4950
4932
"type" : " string"
4951
4933
}
4952
4934
},
4953
4935
"additionalProperties" : false
4954
4936
},
4955
4937
"linksInResourceDocument" : {
4956
- "required" : [
4957
- " self"
4958
- ],
4959
4938
"type" : " object" ,
4960
4939
"properties" : {
4961
4940
"self" : {
4962
- "minLength" : 1 ,
4963
4941
"type" : " string"
4964
4942
},
4965
4943
"describedby" : {
4969
4947
"additionalProperties" : false
4970
4948
},
4971
4949
"linksInResourceIdentifierCollectionDocument" : {
4972
- "required" : [
4973
- " related" ,
4974
- " self"
4975
- ],
4976
4950
"type" : " object" ,
4977
4951
"properties" : {
4978
4952
"self" : {
4979
- "minLength" : 1 ,
4980
4953
"type" : " string"
4981
4954
},
4982
4955
"related" : {
4983
- "minLength" : 1 ,
4984
4956
"type" : " string"
4985
4957
},
4986
4958
"describedby" : {
5002
4974
"additionalProperties" : false
5003
4975
},
5004
4976
"linksInResourceIdentifierDocument" : {
5005
- "required" : [
5006
- " related" ,
5007
- " self"
5008
- ],
5009
4977
"type" : " object" ,
5010
4978
"properties" : {
5011
4979
"self" : {
5012
- "minLength" : 1 ,
5013
4980
"type" : " string"
5014
4981
},
5015
4982
"related" : {
5016
- "minLength" : 1 ,
5017
4983
"type" : " string"
5018
4984
},
5019
4985
"describedby" : {
Original file line number Diff line number Diff line change 1
- using System . ComponentModel . DataAnnotations ;
2
1
using System . Text . Json . Serialization ;
3
2
using JetBrains . Annotations ;
4
3
@@ -7,7 +6,6 @@ namespace JsonApiDotNetCore.OpenApi.JsonApiObjects.Links;
7
6
[ UsedImplicitly ( ImplicitUseTargetFlags . Members ) ]
8
7
internal sealed class LinksInErrorDocument
9
8
{
10
- [ Required ]
11
9
[ JsonPropertyName ( "self" ) ]
12
10
public string Self { get ; set ; } = null ! ;
13
11
Original file line number Diff line number Diff line change 1
- using System . ComponentModel . DataAnnotations ;
2
1
using System . Text . Json . Serialization ;
3
2
using JetBrains . Annotations ;
4
3
@@ -7,11 +6,9 @@ namespace JsonApiDotNetCore.OpenApi.JsonApiObjects.Links;
7
6
[ UsedImplicitly ( ImplicitUseTargetFlags . Members ) ]
8
7
internal sealed class LinksInRelationship
9
8
{
10
- [ Required ]
11
9
[ JsonPropertyName ( "self" ) ]
12
10
public string Self { get ; set ; } = null ! ;
13
11
14
- [ Required ]
15
12
[ JsonPropertyName ( "related" ) ]
16
13
public string Related { get ; set ; } = null ! ;
17
14
}
Original file line number Diff line number Diff line change 1
- using System . ComponentModel . DataAnnotations ;
2
1
using System . Text . Json . Serialization ;
3
2
using JetBrains . Annotations ;
4
3
@@ -7,7 +6,6 @@ namespace JsonApiDotNetCore.OpenApi.JsonApiObjects.Links;
7
6
[ UsedImplicitly ( ImplicitUseTargetFlags . Members ) ]
8
7
internal sealed class LinksInResourceCollectionDocument
9
8
{
10
- [ Required ]
11
9
[ JsonPropertyName ( "self" ) ]
12
10
public string Self { get ; set ; } = null ! ;
13
11
Original file line number Diff line number Diff line change 1
- using System . ComponentModel . DataAnnotations ;
2
1
using System . Text . Json . Serialization ;
3
2
using JetBrains . Annotations ;
4
3
@@ -7,7 +6,6 @@ namespace JsonApiDotNetCore.OpenApi.JsonApiObjects.Links;
7
6
[ UsedImplicitly ( ImplicitUseTargetFlags . Members ) ]
8
7
internal sealed class LinksInResourceData
9
8
{
10
- [ Required ]
11
9
[ JsonPropertyName ( "self" ) ]
12
10
public string Self { get ; set ; } = null ! ;
13
11
}
Original file line number Diff line number Diff line change 1
- using System . ComponentModel . DataAnnotations ;
2
1
using System . Text . Json . Serialization ;
3
2
using JetBrains . Annotations ;
4
3
@@ -7,7 +6,6 @@ namespace JsonApiDotNetCore.OpenApi.JsonApiObjects.Links;
7
6
[ UsedImplicitly ( ImplicitUseTargetFlags . Members ) ]
8
7
internal sealed class LinksInResourceDocument
9
8
{
10
- [ Required ]
11
9
[ JsonPropertyName ( "self" ) ]
12
10
public string Self { get ; set ; } = null ! ;
13
11
Original file line number Diff line number Diff line change 1
- using System . ComponentModel . DataAnnotations ;
2
1
using System . Text . Json . Serialization ;
3
2
using JetBrains . Annotations ;
4
3
@@ -7,11 +6,9 @@ namespace JsonApiDotNetCore.OpenApi.JsonApiObjects.Links;
7
6
[ UsedImplicitly ( ImplicitUseTargetFlags . Members ) ]
8
7
internal sealed class LinksInResourceIdentifierCollectionDocument
9
8
{
10
- [ Required ]
11
9
[ JsonPropertyName ( "self" ) ]
12
10
public string Self { get ; set ; } = null ! ;
13
11
14
- [ Required ]
15
12
[ JsonPropertyName ( "related" ) ]
16
13
public string Related { get ; set ; } = null ! ;
17
14
Original file line number Diff line number Diff line change 1
- using System . ComponentModel . DataAnnotations ;
2
1
using System . Text . Json . Serialization ;
3
2
using JetBrains . Annotations ;
4
3
@@ -7,11 +6,9 @@ namespace JsonApiDotNetCore.OpenApi.JsonApiObjects.Links;
7
6
[ UsedImplicitly ( ImplicitUseTargetFlags . Members ) ]
8
7
internal sealed class LinksInResourceIdentifierDocument
9
8
{
10
- [ Required ]
11
9
[ JsonPropertyName ( "self" ) ]
12
10
public string Self { get ; set ; } = null ! ;
13
11
14
- [ Required ]
15
12
[ JsonPropertyName ( "related" ) ]
16
13
public string Related { get ; set ; } = null ! ;
17
14
Original file line number Diff line number Diff line change 635
635
"additionalProperties" : false
636
636
},
637
637
"linksInErrorDocument" : {
638
- "required" : [
639
- " self"
640
- ],
641
638
"type" : " object" ,
642
639
"properties" : {
643
640
"self" : {
644
- "minLength" : 1 ,
645
641
"type" : " string"
646
642
},
647
643
"describedby" : {
651
647
"additionalProperties" : false
652
648
},
653
649
"linksInRelationship" : {
654
- "required" : [
655
- " related" ,
656
- " self"
657
- ],
658
650
"type" : " object" ,
659
651
"properties" : {
660
652
"self" : {
661
- "minLength" : 1 ,
662
653
"type" : " string"
663
654
},
664
655
"related" : {
665
- "minLength" : 1 ,
666
656
"type" : " string"
667
657
}
668
658
},
669
659
"additionalProperties" : false
670
660
},
671
661
"linksInResourceData" : {
672
- "required" : [
673
- " self"
674
- ],
675
662
"type" : " object" ,
676
663
"properties" : {
677
664
"self" : {
678
- "minLength" : 1 ,
679
665
"type" : " string"
680
666
}
681
667
},
682
668
"additionalProperties" : false
683
669
},
684
670
"linksInResourceDocument" : {
685
- "required" : [
686
- " self"
687
- ],
688
671
"type" : " object" ,
689
672
"properties" : {
690
673
"self" : {
691
- "minLength" : 1 ,
692
674
"type" : " string"
693
675
},
694
676
"describedby" : {
Original file line number Diff line number Diff line change 1692
1692
"additionalProperties" : false
1693
1693
},
1694
1694
"linksInErrorDocument" : {
1695
- "required" : [
1696
- " self"
1697
- ],
1698
1695
"type" : " object" ,
1699
1696
"properties" : {
1700
1697
"self" : {
1701
- "minLength" : 1 ,
1702
1698
"type" : " string"
1703
1699
},
1704
1700
"describedby" : {
1708
1704
"additionalProperties" : false
1709
1705
},
1710
1706
"linksInRelationship" : {
1711
- "required" : [
1712
- " related" ,
1713
- " self"
1714
- ],
1715
1707
"type" : " object" ,
1716
1708
"properties" : {
1717
1709
"self" : {
1718
- "minLength" : 1 ,
1719
1710
"type" : " string"
1720
1711
},
1721
1712
"related" : {
1722
- "minLength" : 1 ,
1723
1713
"type" : " string"
1724
1714
}
1725
1715
},
1726
1716
"additionalProperties" : false
1727
1717
},
1728
1718
"linksInResourceCollectionDocument" : {
1729
- "required" : [
1730
- " self"
1731
- ],
1732
1719
"type" : " object" ,
1733
1720
"properties" : {
1734
1721
"self" : {
1735
- "minLength" : 1 ,
1736
1722
"type" : " string"
1737
1723
},
1738
1724
"describedby" : {
1754
1740
"additionalProperties" : false
1755
1741
},
1756
1742
"linksInResourceData" : {
1757
- "required" : [
1758
- " self"
1759
- ],
1760
1743
"type" : " object" ,
1761
1744
"properties" : {
1762
1745
"self" : {
1763
- "minLength" : 1 ,
1764
1746
"type" : " string"
1765
1747
}
1766
1748
},
1767
1749
"additionalProperties" : false
1768
1750
},
1769
1751
"linksInResourceDocument" : {
1770
- "required" : [
1771
- " self"
1772
- ],
1773
1752
"type" : " object" ,
1774
1753
"properties" : {
1775
1754
"self" : {
1776
- "minLength" : 1 ,
1777
1755
"type" : " string"
1778
1756
},
1779
1757
"describedby" : {
1783
1761
"additionalProperties" : false
1784
1762
},
1785
1763
"linksInResourceIdentifierCollectionDocument" : {
1786
- "required" : [
1787
- " related" ,
1788
- " self"
1789
- ],
1790
1764
"type" : " object" ,
1791
1765
"properties" : {
1792
1766
"self" : {
1793
- "minLength" : 1 ,
1794
1767
"type" : " string"
1795
1768
},
1796
1769
"related" : {
1797
- "minLength" : 1 ,
1798
1770
"type" : " string"
1799
1771
},
1800
1772
"describedby" : {
You can’t perform that action at this time.
0 commit comments