Add support for integer and boolean in OpenAPI to Bruno converter (#4734)

This commit is contained in:
Phil Jones
2025-06-20 07:46:41 +01:00
committed by GitHub
parent a93b05fd6e
commit 3fe3eec465

View File

@@ -27,6 +27,10 @@ const buildEmptyJsonBody = (bodySchema, visited = new Map()) => {
} else {
_jsonBody[name] = [];
}
} else if (prop.type === 'integer') {
_jsonBody[name] = 0;
} else if (prop.type === 'boolean') {
_jsonBody[name] = false;
} else {
_jsonBody[name] = '';
}