mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-07 12:37:48 +00:00
Continued pattern building, added info changes
tried to make some more generic patterns, but I think it's about as thin as it can be now, some boilerplate will be required. Signed-off-by: Dave Shanley <dave@quobix.com>
This commit is contained in:
@@ -11,7 +11,7 @@ import (
|
||||
// CreateChange is a generic function that will create a Change of type T, populate all properties if set, and then
|
||||
// add a pointer to Change[T] in the slice of Change pointers provided
|
||||
func CreateChange[T any](changes *[]*Change[T], changeType int, property string, leftValueNode, rightValueNode *yaml.Node,
|
||||
breaking bool, originalObject, newObject T) *[]*Change[T] {
|
||||
breaking bool, originalObject, newObject any) *[]*Change[T] {
|
||||
|
||||
// create a new context for the left and right nodes.
|
||||
ctx := CreateContext(leftValueNode, rightValueNode)
|
||||
|
||||
Reference in New Issue
Block a user