Method: DocSpring::Template#list_invalid_properties

Defined in:
lib/docspring/models/template.rb

#list_invalid_propertiesObject

Show invalid properties with the reasons. Usually used together with valid?

Returns:

  • Array for valid properties with the reasons



647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
# File 'lib/docspring/models/template.rb', line 647

def list_invalid_properties
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
  invalid_properties = Array.new
  if @add_data_request_submission_id_footers.nil?
    invalid_properties.push('invalid value for "add_data_request_submission_id_footers", add_data_request_submission_id_footers cannot be nil.')
  end

  if @allow_additional_properties.nil?
    invalid_properties.push('invalid value for "allow_additional_properties", allow_additional_properties cannot be nil.')
  end

  if @document_parse_error.nil?
    invalid_properties.push('invalid value for "document_parse_error", document_parse_error cannot be nil.')
  end

  if @document_processed.nil?
    invalid_properties.push('invalid value for "document_processed", document_processed cannot be nil.')
  end

  if @document_state.nil?
    invalid_properties.push('invalid value for "document_state", document_state cannot be nil.')
  end

  if @editable_submissions.nil?
    invalid_properties.push('invalid value for "editable_submissions", editable_submissions cannot be nil.')
  end

  if @encrypt_pdfs.nil?
    invalid_properties.push('invalid value for "encrypt_pdfs", encrypt_pdfs cannot be nil.')
  end

  if @expiration_interval.nil?
    invalid_properties.push('invalid value for "expiration_interval", expiration_interval cannot be nil.')
  end

  if @expire_after.nil?
    invalid_properties.push('invalid value for "expire_after", expire_after cannot be nil.')
  end

  if @expire_submissions.nil?
    invalid_properties.push('invalid value for "expire_submissions", expire_submissions cannot be nil.')
  end

  if @first_template.nil?
    invalid_properties.push('invalid value for "first_template", first_template cannot be nil.')
  end

  if @locked.nil?
    invalid_properties.push('invalid value for "locked", locked cannot be nil.')
  end

  if @merge_audit_trail_pdf.nil?
    invalid_properties.push('invalid value for "merge_audit_trail_pdf", merge_audit_trail_pdf cannot be nil.')
  end

  if @page_count.nil?
    invalid_properties.push('invalid value for "page_count", page_count cannot be nil.')
  end

  if @public_submissions.nil?
    invalid_properties.push('invalid value for "public_submissions", public_submissions cannot be nil.')
  end

  if @public_web_form.nil?
    invalid_properties.push('invalid value for "public_web_form", public_web_form cannot be nil.')
  end

  if @template_type.nil?
    invalid_properties.push('invalid value for "template_type", template_type cannot be nil.')
  end

  if @demo.nil?
    invalid_properties.push('invalid value for "demo", demo cannot be nil.')
  end

  if @defaults.nil?
    invalid_properties.push('invalid value for "defaults", defaults cannot be nil.')
  end

  if @field_order.nil?
    invalid_properties.push('invalid value for "field_order", field_order cannot be nil.')
  end

  if @fields.nil?
    invalid_properties.push('invalid value for "fields", fields cannot be nil.')
  end

  if @html_engine_options.nil?
    invalid_properties.push('invalid value for "html_engine_options", html_engine_options cannot be nil.')
  end

  if @predefined_fields.nil?
    invalid_properties.push('invalid value for "predefined_fields", predefined_fields cannot be nil.')
  end

  if @shared_field_data.nil?
    invalid_properties.push('invalid value for "shared_field_data", shared_field_data cannot be nil.')
  end

  if @versions.nil?
    invalid_properties.push('invalid value for "versions", versions cannot be nil.')
  end

  invalid_properties
end