code: def _get_validated_json_for_build_or_update(json_spec, args):
      
      validated = copy.deepcopy(json_spec)
  
      dxpy.executable_builder.inline_documentation_files(validated, args.src_dir)
  
      if 'title' not in json_spec:
          logger.warn("dxworkflow.json is missing a title, please add one in the 'title' field")
  
      if 'summary' not in json_spec:
          logger.warn("dxworkflow.json is missing a summary, please add one in the 'summary' field")
      else:
          if json_spec['summary'].endswith('.'):
              logger.warn("summary {} should be a short phrase not ending in a period".format(json_spec['summary'],))
  
      return validated
docs: Validates those fields that can be used when either building
      a new version (of a local, project-based workflow) or updating
      an existing version (of a global workflow).