Sha256: a4f2a0a0b24a4fbdf48979802f80aa30a158ecb5f546ef7ec0dda3377e255e91
Contents?: true
Size: 382 Bytes
Versions: 2
Compression:
Stored size: 382 Bytes
Contents
require "mytemplates/stack_actions_validation/version" require 'json' require 'json-schema' module Mytemplates module StackActionsValidation @schema = JSON.parse(IO.read(File.join(File.dirname(__FILE__), 'stack_actions_validation', 'resources', 'schema.json'))) def self.validate(stack_action) JSON::Validator.validate!(@schema, stack_action) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mytemplates-stack_actions_validation-0.1.2 | lib/mytemplates/stack_actions_validation.rb |
mytemplates-stack_actions_validation-0.1.1 | lib/mytemplates/stack_actions_validation.rb |