@@ -38,6 +38,10 @@ class Document
3838 # The value of the info field on the OpenAPI document
3939 # @see Node::Openapi#info
4040 # @return [Node::Info]
41+ # @!method jsonSchemaDialect
42+ # The value of the jsonSchemaDialect field on the OpenAPI document
43+ # @see Node::Openapi#json_schema_dialect
44+ # @return [String, nil]
4145 # @!method servers
4246 # The value of the servers field on the OpenAPI document
4347 # @see Node::Openapi#servers
@@ -75,9 +79,9 @@ class Document
7579 # Iterate through the attributes of the root object
7680 # @!method keys
7781 # Access keys of the root object
78- def_delegators :root , :openapi , :info , :servers , :paths , :components ,
79- :security , :tags , :external_docs , :extension , :[] , :each ,
80- :keys
82+ def_delegators :root , :openapi , :info , :json_schema_dialect , :servers ,
83+ :paths , :components , :security , :tags , :external_docs ,
84+ :extension , :[] , :each , : keys
8185
8286 # @param [SourceInput] source_input
8387 # @param [Boolean] emit_warnings Whether to call Kernel.warn when
@@ -175,7 +179,7 @@ def look_up_pointer(pointer, relative_pointer, subject)
175179 end
176180
177181 def add_warning ( text )
178- warn ( "Warning: #{ text } " ) if emit_warnings
182+ warn ( "Warning: #{ text } - disable these by opening a document with emit_warnings: false " ) if emit_warnings
179183 @warnings << text
180184 end
181185
0 commit comments