"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DEFAULT_RESPONSE_MEDIA_TYPE = exports.DEFAULT_REQUEST_MEDIA_TYPE = void 0;
exports.getValue = getValue;
exports.DEFAULT_REQUEST_MEDIA_TYPE = 'application/json';
exports.DEFAULT_RESPONSE_MEDIA_TYPE = 'application/json';
function getValue(type, member) {
    if (type == null || member == null) {
        return null;
    }
    switch (type) {
        case 'integer':
        case 'number':
            return Number(member);
        case 'boolean':
            return !!member;
        case 'string':
        default:
            return String(member);
    }
}
//# sourceMappingURL=swaggerUtils.js.map