Class: Lutaml::Xsd::Commands::VerifyCommand

Inherits:
BaseCommand
  • Object
show all
Defined in:
lib/lutaml/xsd/commands/verify_command.rb

Overview

Command for verifying XSD specification compliance Validates schemas against W3C XSD specification requirements

Instance Attribute Summary

Attributes inherited from BaseCommand

#options

Instance Method Summary collapse

Constructor Details

#initialize(package_path, options) ⇒ VerifyCommand

Returns a new instance of VerifyCommand.



11
12
13
14
15
16
17
# File 'lib/lutaml/xsd/commands/verify_command.rb', line 11

def initialize(package_path, options)
  super(options)
  @package_path = package_path
  @xsd_version = options[:xsd_version] || "1.0"
  @strict = options[:strict] || false
  @format = options[:format] || "text"
end

Instance Method Details

#runObject



19
20
21
22
# File 'lib/lutaml/xsd/commands/verify_command.rb', line 19

def run
  validate_package_exists
  perform_spec_verification
end