File tree Expand file tree Collapse file tree
src/main/groovy/com/github/hauner/openapi/spring/parser/openapi4j Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ dependencies {
6060 implementation ' org.codehaus.groovy:groovy:2.5.4'
6161 implementation ' org.jetbrains.kotlin:kotlin-stdlib'
6262 implementation ' io.swagger.parser.v3:swagger-parser:2.0.17'
63- implementation ' org.openapi4j:openapi-parser:0.7 '
63+ implementation ' org.openapi4j:openapi-parser:0.8-SNAPSHOT '
6464 implementation ' com.google.googlejavaformat:google-java-format:1.7'
6565 compileOnly " com.github.hauner.openapi:openapi-processor-api:$processorApiVersion "
6666
Original file line number Diff line number Diff line change @@ -32,11 +32,11 @@ class Parser {
3232 ParserOpenApi parse (String apiPath ) {
3333
3434 OpenApi3 api = new OpenApi3Parser ()
35- .parse (new File (apiPath), false )
35+ .parse (new File (apiPath), true )
3636
37- ValidationResults results = null // OpenApi3Validator
38- // .instance ()
39- // .validate (api)
37+ ValidationResults results = OpenApi3Validator
38+ .instance ()
39+ .validate (api)
4040
4141 new OpenApi (api, results)
4242 }
You can’t perform that action at this time.
0 commit comments