File tree 11 files changed +48
-24
lines changed
src/JsonApiDotNetCore.OpenApi/SwaggerComponents
NullableReferenceTypesOff
OpenApiEndToEndTests/QueryStrings
OpenApiTests/LegacyOpenApiIntegration
11 files changed +48
-24
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,8 @@ public OpenApiSchema Get(Type resourceClrType)
41
41
Enum = new List < IOpenApiAny >
42
42
{
43
43
new OpenApiString ( resourceType . PublicName )
44
- }
44
+ } ,
45
+ AdditionalPropertiesAllowed = false
45
46
} ;
46
47
47
48
string schemaId = GetSchemaId ( resourceType ) ;
Original file line number Diff line number Diff line change 3470
3470
"enum" : [
3471
3471
" airplanes"
3472
3472
],
3473
- "type" : " string"
3473
+ "type" : " string" ,
3474
+ "additionalProperties" : false
3474
3475
},
3475
3476
"cabin-area" : {
3476
3477
"enum" : [
3929
3930
"enum" : [
3930
3931
" flight-attendants"
3931
3932
],
3932
- "type" : " string"
3933
+ "type" : " string" ,
3934
+ "additionalProperties" : false
3933
3935
},
3934
3936
"flight-attendant-secondary-response-document" : {
3935
3937
"required" : [
4411
4413
"enum" : [
4412
4414
" flights"
4413
4415
],
4414
- "type" : " string"
4416
+ "type" : " string" ,
4417
+ "additionalProperties" : false
4415
4418
},
4416
4419
"jsonapi-object" : {
4417
4420
"type" : " object" ,
4855
4858
"enum" : [
4856
4859
" passengers"
4857
4860
],
4858
- "type" : " string"
4861
+ "type" : " string" ,
4862
+ "additionalProperties" : false
4859
4863
},
4860
4864
"to-many-flight-attendant-in-request" : {
4861
4865
"required" : [
Original file line number Diff line number Diff line change 1603
1603
"enum" : [
1604
1604
" staffMembers"
1605
1605
],
1606
- "type" : " string"
1606
+ "type" : " string" ,
1607
+ "additionalProperties" : false
1607
1608
},
1608
1609
"staffMemberSecondaryResponseDocument" : {
1609
1610
"required" : [
2004
2005
"enum" : [
2005
2006
" supermarkets"
2006
2007
],
2007
- "type" : " string"
2008
+ "type" : " string" ,
2009
+ "additionalProperties" : false
2008
2010
},
2009
2011
"supermarketType" : {
2010
2012
"enum" : [
Original file line number Diff line number Diff line change 1603
1603
"enum" : [
1604
1604
" staff-members"
1605
1605
],
1606
- "type" : " string"
1606
+ "type" : " string" ,
1607
+ "additionalProperties" : false
1607
1608
},
1608
1609
"staff-member-secondary-response-document" : {
1609
1610
"required" : [
2004
2005
"enum" : [
2005
2006
" supermarkets"
2006
2007
],
2007
- "type" : " string"
2008
+ "type" : " string" ,
2009
+ "additionalProperties" : false
2008
2010
},
2009
2011
"supermarket-type" : {
2010
2012
"enum" : [
Original file line number Diff line number Diff line change 1603
1603
"enum" : [
1604
1604
" StaffMembers"
1605
1605
],
1606
- "type" : " string"
1606
+ "type" : " string" ,
1607
+ "additionalProperties" : false
1607
1608
},
1608
1609
"StaffMemberSecondaryResponseDocument" : {
1609
1610
"required" : [
2004
2005
"enum" : [
2005
2006
" Supermarkets"
2006
2007
],
2007
- "type" : " string"
2008
+ "type" : " string" ,
2009
+ "additionalProperties" : false
2008
2010
},
2009
2011
"SupermarketType" : {
2010
2012
"enum" : [
Original file line number Diff line number Diff line change 1574
1574
"enum" : [
1575
1575
" empties"
1576
1576
],
1577
- "type" : " string"
1577
+ "type" : " string" ,
1578
+ "additionalProperties" : false
1578
1579
},
1579
1580
"linksInRelationshipObject" : {
1580
1581
"required" : [
2239
2240
"enum" : [
2240
2241
" resources"
2241
2242
],
2242
- "type" : " string"
2243
+ "type" : " string" ,
2244
+ "additionalProperties" : false
2243
2245
},
2244
2246
"toManyEmptyInRequest" : {
2245
2247
"required" : [
Original file line number Diff line number Diff line change 1605
1605
"enum" : [
1606
1606
" empties"
1607
1607
],
1608
- "type" : " string"
1608
+ "type" : " string" ,
1609
+ "additionalProperties" : false
1609
1610
},
1610
1611
"emptySecondaryResponseDocument" : {
1611
1612
"required" : [
2293
2294
"enum" : [
2294
2295
" resources"
2295
2296
],
2296
- "type" : " string"
2297
+ "type" : " string" ,
2298
+ "additionalProperties" : false
2297
2299
},
2298
2300
"toManyEmptyInRequest" : {
2299
2301
"required" : [
Original file line number Diff line number Diff line change 2073
2073
"enum" : [
2074
2074
" empties"
2075
2075
],
2076
- "type" : " string"
2076
+ "type" : " string" ,
2077
+ "additionalProperties" : false
2077
2078
},
2078
2079
"emptySecondaryResponseDocument" : {
2079
2080
"required" : [
2834
2835
"enum" : [
2835
2836
" resources"
2836
2837
],
2837
- "type" : " string"
2838
+ "type" : " string" ,
2839
+ "additionalProperties" : false
2838
2840
},
2839
2841
"toManyEmptyInRequest" : {
2840
2842
"required" : [
Original file line number Diff line number Diff line change 2073
2073
"enum" : [
2074
2074
" empties"
2075
2075
],
2076
- "type" : " string"
2076
+ "type" : " string" ,
2077
+ "additionalProperties" : false
2077
2078
},
2078
2079
"emptySecondaryResponseDocument" : {
2079
2080
"required" : [
2828
2829
"enum" : [
2829
2830
" resources"
2830
2831
],
2831
- "type" : " string"
2832
+ "type" : " string" ,
2833
+ "additionalProperties" : false
2832
2834
},
2833
2835
"toManyEmptyInRequest" : {
2834
2836
"required" : [
Original file line number Diff line number Diff line change 1387
1387
"enum" : [
1388
1388
" nodes"
1389
1389
],
1390
- "type" : " string"
1390
+ "type" : " string" ,
1391
+ "additionalProperties" : false
1391
1392
},
1392
1393
"nullableNodeIdentifierResponseDocument" : {
1393
1394
"required" : [
Original file line number Diff line number Diff line change 3470
3470
"enum" : [
3471
3471
" airplanes"
3472
3472
],
3473
- "type" : " string"
3473
+ "type" : " string" ,
3474
+ "additionalProperties" : false
3474
3475
},
3475
3476
"cabin-area" : {
3476
3477
"enum" : [
3929
3930
"enum" : [
3930
3931
" flight-attendants"
3931
3932
],
3932
- "type" : " string"
3933
+ "type" : " string" ,
3934
+ "additionalProperties" : false
3933
3935
},
3934
3936
"flight-attendant-secondary-response-document" : {
3935
3937
"required" : [
4411
4413
"enum" : [
4412
4414
" flights"
4413
4415
],
4414
- "type" : " string"
4416
+ "type" : " string" ,
4417
+ "additionalProperties" : false
4415
4418
},
4416
4419
"jsonapi-object" : {
4417
4420
"type" : " object" ,
4855
4858
"enum" : [
4856
4859
" passengers"
4857
4860
],
4858
- "type" : " string"
4861
+ "type" : " string" ,
4862
+ "additionalProperties" : false
4859
4863
},
4860
4864
"to-many-flight-attendant-in-request" : {
4861
4865
"required" : [
You can’t perform that action at this time.
0 commit comments