@@ -25,46 +25,46 @@ public async Task Produces_expected_nullable_properties_in_schema_for_resource()
25
25
JsonElement document = await _testContext . GetSwaggerDocumentAsync ( ) ;
26
26
27
27
// Assert
28
- document . ShouldContainPath ( "components.schemas.cowAttributesInResponse.properties" ) . With ( propertiesElement =>
28
+ document . ShouldContainPath ( "components.schemas.cowAttributesInResponse.properties" ) . With ( schemaProperties =>
29
29
{
30
- propertiesElement . ShouldContainPath ( "name" ) . With ( propertyElement =>
30
+ schemaProperties . ShouldContainPath ( "name" ) . With ( schemaProperty =>
31
31
{
32
- propertyElement . ShouldNotContainPath ( "nullable" ) ;
32
+ schemaProperty . ShouldNotContainPath ( "nullable" ) ;
33
33
} ) ;
34
34
35
- propertiesElement . ShouldContainPath ( "nameOfCurrentFarm" ) . With ( propertyElement =>
35
+ schemaProperties . ShouldContainPath ( "nameOfCurrentFarm" ) . With ( schemaProperty =>
36
36
{
37
- propertyElement . ShouldNotContainPath ( "nullable" ) ;
37
+ schemaProperty . ShouldNotContainPath ( "nullable" ) ;
38
38
} ) ;
39
39
40
- propertiesElement . ShouldContainPath ( "nameOfPreviousFarm" ) . With ( propertyElement =>
40
+ schemaProperties . ShouldContainPath ( "nameOfPreviousFarm" ) . With ( schemaProperty =>
41
41
{
42
- propertyElement . ShouldContainPath ( "nullable" ) . With ( element => element . ValueKind . Should ( ) . Be ( JsonValueKind . True ) ) ;
42
+ schemaProperty . ShouldContainPath ( "nullable" ) . With ( element => element . ValueKind . Should ( ) . Be ( JsonValueKind . True ) ) ;
43
43
} ) ;
44
44
45
- propertiesElement . ShouldContainPath ( "nickname" ) . With ( propertyElement =>
45
+ schemaProperties . ShouldContainPath ( "nickname" ) . With ( schemaProperty =>
46
46
{
47
- propertyElement . ShouldNotContainPath ( "nullable" ) ;
47
+ schemaProperty . ShouldNotContainPath ( "nullable" ) ;
48
48
} ) ;
49
49
50
- propertiesElement . ShouldContainPath ( "age" ) . With ( propertyElement =>
50
+ schemaProperties . ShouldContainPath ( "age" ) . With ( schemaProperty =>
51
51
{
52
- propertyElement . ShouldNotContainPath ( "nullable" ) ;
52
+ schemaProperty . ShouldNotContainPath ( "nullable" ) ;
53
53
} ) ;
54
54
55
- propertiesElement . ShouldContainPath ( "weight" ) . With ( propertyElement =>
55
+ schemaProperties . ShouldContainPath ( "weight" ) . With ( schemaProperty =>
56
56
{
57
- propertyElement . ShouldNotContainPath ( "nullable" ) ;
57
+ schemaProperty . ShouldNotContainPath ( "nullable" ) ;
58
58
} ) ;
59
59
60
- propertiesElement . ShouldContainPath ( "timeAtCurrentFarmInDays" ) . With ( propertyElement =>
60
+ schemaProperties . ShouldContainPath ( "timeAtCurrentFarmInDays" ) . With ( schemaProperty =>
61
61
{
62
- propertyElement . ShouldContainPath ( "nullable" ) . With ( element => element . ValueKind . Should ( ) . Be ( JsonValueKind . True ) ) ;
62
+ schemaProperty . ShouldContainPath ( "nullable" ) . With ( element => element . ValueKind . Should ( ) . Be ( JsonValueKind . True ) ) ;
63
63
} ) ;
64
64
65
- propertiesElement . ShouldContainPath ( "hasProducedMilk" ) . With ( propertyElement =>
65
+ schemaProperties . ShouldContainPath ( "hasProducedMilk" ) . With ( schemaProperty =>
66
66
{
67
- propertyElement . ShouldNotContainPath ( "nullable" ) ;
67
+ schemaProperty . ShouldNotContainPath ( "nullable" ) ;
68
68
} ) ;
69
69
} ) ;
70
70
}
0 commit comments