/* ============================================================================ * Copyright (c) Palo Alto Networks * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * ========================================================================== */ import { MediaTypeObject } from "../openapi/types"; import { createRequestSchema } from "./createRequestSchema"; interface Props { title: string; body: { content?: { [key: string]: MediaTypeObject; }; description?: string; required?: boolean; }; } export function createRequestBodyDetails({ title, body }: Props): any { return createRequestSchema({ title, body }); }