Skip to content
Snippets Groups Projects
  • Malte Bauch's avatar
    39c5e73a
    Correctly init the goStruct within the plugins ValidateChange method · 39c5e73a
    Malte Bauch authored
    The nodes along a path of the copied model (which is a copy of the
    underlying goStruct of the plugin) within the ValidateChange method of a
    plugin were not properly initialized.
    
    This means if a JSON string was provided that contained a node that was
    not initialized an error was thrown. But since the
    `ytypes.IgnoreExtraFields` option was set, the node was just ignored and
    no error was thrown.
    
    This change correctly initializes the node at the given path and removes
    the `ytypes.IgnoreExtraFields` option.
    39c5e73a
    History
    Correctly init the goStruct within the plugins ValidateChange method
    Malte Bauch authored
    The nodes along a path of the copied model (which is a copy of the
    underlying goStruct of the plugin) within the ValidateChange method of a
    plugin were not properly initialized.
    
    This means if a JSON string was provided that contained a node that was
    not initialized an error was thrown. But since the
    `ytypes.IgnoreExtraFields` option was set, the node was just ignored and
    no error was thrown.
    
    This change correctly initializes the node at the given path and removes
    the `ytypes.IgnoreExtraFields` option.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.