docs: add prepare script to generate sidebar (#11894)

This commit is contained in:
Shahed Nasser
2025-03-18 17:37:51 +02:00
committed by GitHub
parent eb2aa8da3c
commit 9ead47c51e
72 changed files with 1709 additions and 295 deletions
@@ -1,5 +1,8 @@
import type { SchemaObject } from "@/types/openapi"
import type { OpenAPI } from "types"
export default function checkRequired(schema: SchemaObject, property?: string) {
export default function checkRequired(
schema: OpenAPI.SchemaObject,
property?: string
) {
return property !== undefined && schema.required?.includes(property)
}