Skip to content

Commit

Permalink
feat: [#631] format new sources
Browse files Browse the repository at this point in the history
  • Loading branch information
Norbert Dopjera committed Sep 11, 2024
1 parent 226cf8e commit de85b7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {join, resolve, dirname} from 'path'
import {compile, DEFAULT_OPTIONS, Options} from './index'
import {pathTransform, error, parseFileAsJSONSchema, justName} from './utils'
import {ParserOptions as $RefOptions} from '@apidevtools/json-schema-ref-parser'
import { merge } from 'lodash'
import {merge} from 'lodash'

main(
minimist(process.argv.slice(2), {
Expand Down Expand Up @@ -168,7 +168,7 @@ function parseRefOptions(argv: minimist.ParsedArgs) {
// argv default value already contains predefined $refOptions key
if (argv.refOptions) {
const parsedRefOptions: Partial<$RefOptions> = JSON.parse(argv.refOptions)
merge(argv, { $refOptions: parsedRefOptions })
merge(argv, {$refOptions: parsedRefOptions})
}
} catch (e) {
error("Couldn't parse argument --refOptions, make sure it's a valid JSON string.")
Expand Down

0 comments on commit de85b7f

Please sign in to comment.