Sha256: f2991d163717a018a912516b95c36a0a86e0dbfec5fd75858137dbc2eda06d14

Contents?: true

Size: 422 Bytes

Versions: 1

Compression:

Stored size: 422 Bytes

Contents

# frozen_string_literal: true

require "openapi3_parser/node_factory/map"

module Openapi3Parser
  module NodeFactory
    class Callback < NodeFactory::Map
      def initialize(context)
        super(context,
              allow_extensions: true,
              value_factory: NodeFactory::PathItem)
      end

      private

      def build_node(data)
        Node::Callback.new(data, context)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
openapi3_parser-0.5.2 lib/openapi3_parser/node_factory/callback.rb