Sha256: 0e4dd7f3f029d6c8b33a7cde479c3359e176f539f1527289646e7496fe351760

Contents?: true

Size: 1011 Bytes

Versions: 2

Compression:

Stored size: 1011 Bytes

Contents

# frozen_string_literal: true

module JSI
  module Schema::Application::ChildApplication::Draft06
    include Schema::Application::ChildApplication
    include Schema::Application::ChildApplication::Items
    include Schema::Application::ChildApplication::Contains
    include Schema::Application::ChildApplication::Properties

    # @private
    def internal_child_applicate_keywords(token, instance, &block)
      if instance.respond_to?(:to_ary)
        # json-schema-validation 6.9.  items
        # json-schema-validation 6.10.  additionalItems
        internal_applicate_items(token, &block)

        # json-schema-validation 6.14.  contains
        internal_applicate_contains(token, instance, &block)
      end

      if instance.respond_to?(:to_hash)
        # json-schema-validation 6.18.  properties
        # json-schema-validation 6.19.  patternProperties
        # json-schema-validation 6.20.  additionalProperties
        internal_applicate_properties(token, &block)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
jsi-0.7.0 lib/jsi/schema/application/child_application/draft06.rb
jsi-0.6.0 lib/jsi/schema/application/child_application/draft06.rb