diff --git a/webapp/openapi-playground/mod/openapi/ResponseView.tsx b/webapp/openapi-playground/mod/openapi/ResponseView.tsx
index 4bcaae4..c9c5c46 100644
--- a/webapp/openapi-playground/mod/openapi/ResponseView.tsx
+++ b/webapp/openapi-playground/mod/openapi/ResponseView.tsx
@@ -39,10 +39,6 @@ export const ResponseView = component$({
{"{"}
{Object.entries(statusErr).map(([key, value]) => {
- if (key === "code") {
- return null;
- }
-
return (
{key}
@@ -89,12 +85,10 @@ export const ResponseView = component$({
});
type StatusErr = {
- key: string,
- msg?: string,
- desc?: string,
+ code: string,
+ message?: string,
}
-
// x,v,"c,d" => x v "c,d"
function splitCsv(str: string) {
return str.split(",").reduce((accum, curr: string) => {
@@ -136,8 +130,8 @@ function parseStatusErr(statusErr: string = ""): StatusErr | null {
[key]: JSON.parse(value)
};
}, {
- key: statusErr.slice(0, i)
- }) as { key: string, msg?: string, desc?: string };
+ code: statusErr.slice(0, i)
+ }) as { code: string, message?: string, [k: string]: any };
}
return null;
}