code: def find_nested_models(self, model, definitions):
          '''
          Prepare dictionary with reference to another definitions, create one dictionary
          that contains full information about model, with all nested reference
          :param model: --dictionary that contains information about model
          :type model: dict
          :param definitions: --dictionary that contains copy of all definitions
          :type definitions: dict
          :return: dictionary with all nested reference
          :rtype: dict
          '''
          for key, value in model.items():
              if isinstance(value, dict):
                  model[key] = self.find_nested_models(value, definitions)
              elif key == '$ref':
                  def_name = value.split('/')[-1]
                  def_property = definitions[def_name]['properties']
                  return self.find_nested_models(def_property, definitions)
          return modef find_nested_models(self, model, definitions):
          '''
          Prepare dictionary with reference to another definitions, create one dictionary
          that contains full information about model, with all nested reference
          :param model: --dictionary that contains information about model
          :type model: dict
          :param definitions: --dictionary that contains copy of all definitions
          :type definitions: dict
          :return: dictionary with all nested reference
          :rtype: dict
          '''
          for key, value in model.items():
              if isinstance(value, dict):
                  model[key] = self.find_nested_models(value, definitions)
              elif key == '$ref':
                  def_name = value.split('/')[-1]
                  def_property = definitions[def_name]['properties']
                  return self.find_nested_models(def_property, definitions)
          return model
docs: Prepare dictionary with reference to another definitions, create one dictionary
          that contains full information about model, with all nested reference
          :param model: --dictionary that contains information about model
          :type model: dict
          :param definitions: --dictionary that contains copy of all definitions
          :type definitions: dict
          :return: dictionary with all nested reference
          :rtype: dict