docs: add prepare script to generate sidebar (#11894)
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user