Added resolver, models and model utils.

This commit is contained in:
Dave Shanley
2022-07-18 09:42:46 -04:00
parent df710cb49d
commit 925220e8da
7 changed files with 90699 additions and 3 deletions

View File

@@ -35,7 +35,7 @@ func ExtractSpecInfo(spec []byte) (*SpecInfo, error) {
var parsedSpec yaml.Node
specVersion := &SpecInfo{}
specVersion.jsonParsingChannel = make(chan bool)
specVersion.JsonParsingChannel = make(chan bool)
// set original bytes
specVersion.SpecBytes = &spec
@@ -85,8 +85,8 @@ func ExtractSpecInfo(spec []byte) (*SpecInfo, error) {
spec.SpecJSONBytes = &bytes
spec.SpecJSON = &jsonSpec
}
spec.jsonParsingChannel <- true
close(spec.jsonParsingChannel)
spec.JsonParsingChannel <- true
close(spec.JsonParsingChannel)
}
// check for specific keys
if openAPI3 != nil {