File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -23,10 +23,8 @@ function StandaloneSerializer (options = { readMode: true }) {
2323 // WRITE MODE: it behalf on the default SerializerSelector, wrapping the API to run the Ajv Standalone code generation
2424 const factory = SerializerSelector ( )
2525 return function wrapper ( externalSchemas , serializerOpts = { } ) {
26- if ( ! serializerOpts . mode || serializerOpts . mode !== 'standalone' ) {
27- // to generate the serialization source code, these options are mandatory
28- serializerOpts . mode = 'standalone'
29- }
26+ // to generate the serialization source code, this option is mandatory
27+ serializerOpts . mode = 'standalone'
3028
3129 const compiler = factory ( externalSchemas , serializerOpts )
3230 return function ( opts ) { // { schema/*, method, url, httpPart */ }
You can’t perform that action at this time.
0 commit comments