And added deeper support for Aliases. Also added in local file handling through renamed `FSHandler` configuration property for the index.
Also re-ran `go fmt`
Signed-off-by: Dave Shanley <dave@quobix.com>
Discovered when upgrading vacuum and deeper integration with libopenapi and performing hundreds more tests.
Signed-off-by: Dave Shanley <dave@quobix.com>
@danielgtaylor reported a bug with schema's not picking up primitive values for defaults. This glitch was caused by the `model_builder` only wanting to deal with objects and ignoring primitives (it was checking for a map). This check has been removed, and all defaults should now be picked up (object or not).
Signed-off-by: Dave Shanley <dave@quobix.com>
The case checking seems kinda dumb now looking back at this code. I am not sure why I felt the need to do that, however after being aware of it for some time and not being happy with the extra cycles it puts the code through.
This change removes ConvertCase from the utils package, as it's no longer used or needed right now. If it needs co come back, we can re-add the code, but deleting code always makes me happy.
It also removed a dependency from the project, which reduces the footprint, great!
locating nodes was looking through two levels to locate something. This is not the correct behavior, after making the change - lots of tests needed to be updated to be correct in what they put into as a the root node.
now things are robust, we can move things around a little to prepare for the next set of incoming models. The extraction and builder functions have all been moved to the low packakge, and out of the v3 package.