Sha256: 21c851db919951638e94d6f6c5d020cab35cf033936c523b4bc4fbf723c901f9
Contents?: true
Size: 987 Bytes
Versions: 3
Compression:
Stored size: 987 Bytes
Contents
module Chronicle module Schema module Validation # FIXME: # - refactor all of this # - handle different serialization flavours # - move to model of memoizing individual contracts and generating them on demand @contracts = {} @graph = nil class << self attr_accessor :graph, :contracts end def self.unload_contracts @contracts = {} end def self.set_contract(name, contract) @contracts[name] = contract end def self.get_contract(name) # FIXME: # Chronicle::Schema::Validation::Generation.generate_contracts @contracts[name] end def self.contracts_generated? !@contracts_generated.nil? end end end end require_relative 'validation/generation' require_relative 'validation/validator' require_relative 'validation/edge_validator' require_relative 'validation/base_contract' require_relative 'validation/contract_factory'
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
chronicle-core-0.3.2 | lib/chronicle/schema/validation.rb |
chronicle-core-0.3.1 | lib/chronicle/schema/validation.rb |
chronicle-core-0.3.0 | lib/chronicle/schema/validation.rb |