File tree Expand file tree Collapse file tree 5 files changed +9
-5
lines changed
Microsoft.OpenApi.Workbench
Microsoft.OpenApi/Services
test/Microsoft.OpenApi.Tests/Validations Expand file tree Collapse file tree 5 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -163,7 +163,7 @@ protected void OnPropertyChanged(string propertyName)
163163 /// The core method of the class.
164164 /// Runs the parsing and serializing.
165165 /// </summary>
166- internal void Validate ( )
166+ internal void ParseDocument ( )
167167 {
168168 try
169169 {
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ public MainWindow()
2020
2121 private void Button_Click ( object sender , RoutedEventArgs e )
2222 {
23- _mainModel . Validate ( ) ;
23+ _mainModel . ParseDocument ( ) ;
2424 }
2525 }
2626}
Original file line number Diff line number Diff line change 1- using System ;
1+ // Copyright (c) Microsoft Corporation. All rights reserved.
2+ // Licensed under the MIT license.
3+
4+ using System ;
25using System . Collections . Generic ;
36using System . Linq ;
47using System . Text ;
Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ public void Walk(OpenApiDocument doc)
3838 {
3939 return ;
4040 }
41+
4142 _schemaLoop . Clear ( ) ;
4243 _pathItemLoop . Clear ( ) ;
4344 _inComponents = false ;
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ public void ReferencedSchemaShouldOnlyBeValidatedOnce()
7575 }
7676
7777 [ Fact ]
78- public void UnResolvedReferencedSchemaShouldNotBeValidated ( )
78+ public void UnresolvedReferenceSchemaShouldNotBeValidated ( )
7979 {
8080 // Arrange
8181 var sharedSchema = new OpenApiSchema
@@ -105,7 +105,7 @@ public void UnResolvedReferencedSchemaShouldNotBeValidated()
105105 }
106106
107107 [ Fact ]
108- public void UnResolvedSchemaReferencedShouldNotBeValidated ( )
108+ public void UnresolvedSchemaReferencedShouldNotBeValidated ( )
109109 {
110110 // Arrange
111111
You can’t perform that action at this time.
0 commit comments