public UnitTest1(ITestOutputHelper testOutputHelper)
        {
            output    = testOutputHelper;
            ruleSet   = new OpenApiValidationRuleSet();
            inspector = new OpenApiInspector(ruleSet);
            walker    = new OpenApiWalker(inspector);
            OpenApiDiagnostic diagnostic;

            document = new OpenApiStreamReader().Read(File.OpenRead(".\\petstore.yaml"), out diagnostic);
        }
Exemple #2
0
 public OpenApiInspector(OpenApiValidationRuleSet ruleSet = null)
 {
     _ruleSet = ruleSet;
 }