Skip to content

Commit 708606c

Browse files
committed
rename main function and converter to convert
1 parent c2cf7f8 commit 708606c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
var 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.

0 commit comments

Comments
 (0)