Skip to content

Commit a833ca5

Browse files
committed
Add explicit require for node_factory
This resolves an error that is caused by the removal of `#sort` from Dir.glob. Dir.glob produces a slightly different file ordering without sort and thus causes the below missing constant error. ``` Failure/Error: def allow_extensions(regex: EXTENSION_REGEX, &block) @extension_regex = regex @allowed_extensions = block || true end NameError: uninitialized constant Openapi3Parser::NodeFactory::ObjectFactory::Dsl::EXTENSION_REGEX def allow_extensions(regex: EXTENSION_REGEX, &block) ```
1 parent 94c8fd4 commit a833ca5

File tree

1 file changed

+1
-0
lines changed
  • lib/openapi3_parser/node_factory/object_factory

1 file changed

+1
-0
lines changed

lib/openapi3_parser/node_factory/object_factory/dsl.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# frozen_string_literal: true
22

3+
require "openapi3_parser/node_factory"
34
require "openapi3_parser/node_factory/object_factory/field_config"
45

56
module Openapi3Parser

0 commit comments

Comments
 (0)