File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 11var deepEqual = require ( 'deep-equal' ) ;
2- var converter = require ( './lib/converter ' ) ;
2+ var convert = require ( './lib/convert ' ) ;
33
4- module . exports = convert ;
4+ module . exports = openapiSchemaToJsonSchema ;
55
6- function convert ( schema , options ) {
6+ function openapiSchemaToJsonSchema ( schema , options ) {
77 var notSupported = [
88 'nullable' , 'discriminator' , 'readOnly' ,
99 'writeOnly' , 'xml' , 'externalDocs' ,
@@ -37,7 +37,7 @@ function convert(schema, options) {
3737 schema = JSON . parse ( JSON . stringify ( schema ) ) ;
3838 }
3939
40- schema = converter . schema ( schema , options ) ;
40+ schema = convert . schema ( schema , options ) ;
4141 schema [ '$schema' ] = 'http://json-schema.org/draft-04/schema#' ;
4242
4343 return schema ;
File renamed without changes.
You can’t perform that action at this time.
0 commit comments