Method: DocSpring::Template#list_invalid_properties
- Defined in:
- lib/docspring/models/template.rb
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 |
# File 'lib/docspring/models/template.rb', line 569 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 invalid_properties end |