Skip to content

Commit

Permalink
Update ApiDoctor.Validation/Config/DocumentOutlineFile.cs
Browse files Browse the repository at this point in the history
Co-authored-by: Vincent Biret <[email protected]>
  • Loading branch information
millicentachieng and baywet authored Mar 13, 2024
1 parent dcfdfd1 commit 5865160
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ApiDoctor.Validation/Config/DocumentOutlineFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public override object ReadJson(JsonReader reader, Type objectType, object exist
var conditionalHeader = item.ToObject<ConditionalDocumentHeader>(serializer);
allowedHeaders.Add(conditionalHeader);
}
else if (item["title"] != null)
else if (item.ContainsKey("title"))

Check failure on line 149 in ApiDoctor.Validation/Config/DocumentOutlineFile.cs

View workflow job for this annotation

GitHub Actions / build

'JToken' does not contain a definition for 'ContainsKey' and no accessible extension method 'ContainsKey' accepting a first argument of type 'JToken' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 149 in ApiDoctor.Validation/Config/DocumentOutlineFile.cs

View workflow job for this annotation

GitHub Actions / build

'JToken' does not contain a definition for 'ContainsKey' and no accessible extension method 'ContainsKey' accepting a first argument of type 'JToken' could be found (are you missing a using directive or an assembly reference?)
{
var expectedHeader = item.ToObject<ExpectedDocumentHeader>(serializer);
allowedHeaders.Add(expectedHeader);
Expand Down

0 comments on commit 5865160

Please sign in to comment.