mirror of
https://github.com/postmanlabs/openapi-to-postman.git
synced 2022-11-29 22:05:00 +03:00
Update schemaUtils.js
validate also null possibility
This commit is contained in:
@@ -406,7 +406,7 @@ module.exports = {
|
||||
let example = _.get(parameter, 'example'),
|
||||
examples = _.values(_.get(parameter, 'examples'));
|
||||
|
||||
if (example !== undefined) {
|
||||
if (example !== undefined && example !== null) {
|
||||
_.set(parameter, 'schema.example', example);
|
||||
}
|
||||
else if (examples) {
|
||||
|
||||
Reference in New Issue
Block a user