apigee-127 / swagger-node-runner

The heart of Swagger-Node
MIT License
102 stars 123 forks source link

json_error_handler: cfg.includeErrStack #69

Closed osher closed 7 years ago

osher commented 7 years ago

Support flag for development and integration environments: includeErrStack

    openapi-error: 
      name:                 json_error_handler
      handle500Errors:      true
      includeErrStack:      true

When truthful, the automatic response-body includes the stack as well as any other enumerable attribute on the error Change is backward compatible (missing config is understood as the default - false)

coveralls commented 7 years ago

Coverage Status

Coverage increased (+0.01%) to 96.452% when pulling 215de08c5a605378f7fee0b7e8f2a62ad7b5721e on osher:patch-3 into 833c3b1cb4fe7fdf130552c084b724f70edfc4ea on theganyo:master.