# kheops.plugin.strategy package

Strategy plugins

## Submodules

## kheops.plugin.strategy.last module

Last strategy Plugin

class kheops.plugin.strategy.last.Plugin(namespace)

  Bases: `kheops.plugin.common.StrategyPlugin`

  Last strategy plugin

  merge_results(candidates: list, rule: dict, query) -> (<class 'list'>, <class 'dict'>)

    Return results

  selector = 'last'

## kheops.plugin.strategy.merge_deep module

Merge Deep strategy Plugin

class kheops.plugin.strategy.merge_deep.Plugin(namespace)

  Bases: `kheops.plugin.common.StrategyPlugin`

  Last strategy plugin

  merge_results(candidates: list, rule: dict, query) -> (<class 'list'>, <class 'dict'>)

    Return results

  selector = 'matched'

## kheops.plugin.strategy.merge_schema module

Merge Deep strategy Plugin

class kheops.plugin.strategy.merge_schema.Plugin(namespace)

  Bases: `kheops.plugin.common.StrategyPlugin`

  Last strategy plugin

  default_merge_schema = {'$schema': 'http://json-schema.org/draft-07/schema#', 'oneOf': [{'type': 'array', 'mergeStrategy': 'append'}, {'type': 'object', 'mergeStrategy': 'objectMerge'}, {'type': 'boolean', 'mergeStrategy': 'overwrite'}, {'type': 'string', 'mergeStrategy': 'overwrite'}, {'type': 'integer', 'mergeStrategy': 'overwrite'}, {'type': 'number', 'mergeStrategy': 'overwrite'}, {'type': 'null', 'mergeStrategy': 'overwrite'}]}
  merge_results(candidates: list, rule: dict, query) -> (<class 'list'>, <class 'dict'>)

    Return results

  plugin_name = 'merge_schema'
  selector = 'matched'