Class: Oscal::V1_2_1::Control

Inherits:
Base
  • Object
show all
Defined in:
lib/oscal/v1_2_1/all_models.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

lutaml_default_register

Class Method Details

.metaschema_constraintsObject



9829
9830
9831
# File 'lib/oscal/v1_2_1/all_models.rb', line 9829

def self.metaschema_constraints
  @metaschema_constraints
end

Instance Method Details

#validate_constraintsObject



9833
9834
9835
9836
# File 'lib/oscal/v1_2_1/all_models.rb', line 9833

def validate_constraints
  validator = Metaschema::ConstraintValidator.new
  validator.validate(self, self.class.metaschema_constraints)
end