lib/server/models/response.js   A
last analyzed

Complexity

Total Complexity 0
Complexity/F 0

Size

Lines of Code 11
Function Count 0

Duplication

Duplicated Lines 0
Ratio 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 0
c 1
b 0
f 0
nc 1
dl 0
loc 11
ccs 0
cts 2
cp 0
crap 0
rs 10
wmc 0
mnd 0
bc 0
fnc 0
bpm 0
cpm 0
noi 0
1
"use strict";
2
3
const Joi = require('joi');
4
5
module.exports = Joi.object()
6
    .keys({
7
        body: Joi.alternatives().try(Joi.object(), Joi.string()),
8
        statusCode: Joi.number().integer(),
9
        headers: Joi.object()
10
    })
11
;
12