2
0

📝 Migrate from Docusaurus to Mintlify (#1115)

Closes #868
This commit is contained in:
Baptiste Arnaud
2023-12-22 09:13:53 +01:00
committed by GitHub
parent 512bb09282
commit 1e5fa5a575
450 changed files with 49522 additions and 104787 deletions

View File

@@ -1,4 +1,4 @@
import { z } from 'zod'
import { z } from '../../../../zod'
import { optionBaseSchema, blockBaseSchema } from '../../shared'
import { InputBlockType } from '../constants'
import { textInputOptionsBaseSchema } from '../text'
@@ -11,11 +11,16 @@ export const urlInputOptionsSchema = optionBaseSchema
})
)
export const urlInputSchema = blockBaseSchema.merge(
z.object({
type: z.enum([InputBlockType.URL]),
options: urlInputOptionsSchema.optional(),
export const urlInputSchema = blockBaseSchema
.merge(
z.object({
type: z.enum([InputBlockType.URL]),
options: urlInputOptionsSchema.optional(),
})
)
.openapi({
title: 'URL',
ref: 'url',
})
)
export type UrlInputBlock = z.infer<typeof urlInputSchema>