Class: Modspec::NormativeStatementsClass

Inherits:
Lutaml::Model::Serializable
  • Object
show all
Defined in:
lib/modspec/normative_statements_class.rb

Instance Method Summary collapse

Instance Method Details

#validate(suite = nil) ⇒ Object



34
35
36
37
38
39
40
# File 'lib/modspec/normative_statements_class.rb', line 34

def validate(suite = nil)
  errors = super()
  errors.concat(validate_identifier_prefix)
  errors.concat(validate_class_children_mapping)
  errors.concat(normative_statements.flat_map { |n| n.validate(suite) })
  errors
end