persona-community-5/.pnpm-store/v3/files/a0/96434af870a402ae503970572741e7f269daacdc0b9afe2e83a54c5c68b29575b49da6a7b77b7c9315476fe148a39bb11554124217d8142d1fc20bdec1ebab
rdev-worker a1d0d1bf1c
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
build: /implement-feature community-ui --requirements 'Build the React commu...
2026-02-24 08:22:30 +00:00

19 lines
580 B
Plaintext

import type ts from "typescript";
import { UNKNOWN } from "../lib/ts.js";
import type { MediaTypeObject, TransformNodeOptions } from "../types.js";
import transformSchemaObject from "./schema-object.js";
/**
* Transform MediaTypeObject nodes (4.8.14)
* @see https://spec.openapis.org/oas/v3.1.0#media-type-object
*/
export default function transformMediaTypeObject(
mediaTypeObject: MediaTypeObject,
options: TransformNodeOptions,
): ts.TypeNode {
if (!mediaTypeObject.schema) {
return UNKNOWN;
}
return transformSchemaObject(mediaTypeObject.schema, options);
}