Class: TRMNLP::Lint::Checks::FormFieldsValid

Inherits:
TRMNLP::Lint::Check show all
Defined in:
lib/trmnlp/lint/checks/form_fields_valid.rb

Overview

Validates settings.yml custom_fields against the FormField schema —the same source serve/build use for their startup warnings.

Instance Method Summary collapse

Methods inherited from TRMNLP::Lint::Check

#initialize

Constructor Details

This class inherits a constructor from TRMNLP::Lint::Check

Instance Method Details

#issuesObject



12
13
14
15
16
# File 'lib/trmnlp/lint/checks/form_fields_valid.rb', line 12

def issues
  FormField.validate_all(source.custom_field_definitions).map do |warning|
    { message: "settings.yml custom_fields — #{warning}" }
  end
end