File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Microsoft.OpenApi.Readers
Microsoft.OpenApi/Validations Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ public async Task<ReadResult> ReadAsync(YamlDocument input)
112
112
}
113
113
114
114
// Validate the document
115
- if ( _settings . RuleSet != null && _settings . RuleSet . Rules . Count ( ) > 0 )
115
+ if ( _settings . RuleSet != null && _settings . RuleSet . Rules . Any ( ) )
116
116
{
117
117
var openApiErrors = document . Validate ( _settings . RuleSet ) ;
118
118
foreach ( var item in openApiErrors . OfType < OpenApiValidatorError > ( ) )
Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ public IEnumerable<ValidationRule> Rules
114
114
{
115
115
get
116
116
{
117
- return _rules . Values . SelectMany ( v => v ) . ToList ( ) ;
117
+ return _rules . Values . SelectMany ( v => v ) ;
118
118
}
119
119
}
120
120
You can’t perform that action at this time.
0 commit comments