mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
13 lines
400 B
TypeScript
13 lines
400 B
TypeScript
import * as yup from 'yup';
|
|
import { replaceQuotes } from 'configs/app/utils';
|
|
import type { ApiDocsTabId } from 'types/views/apiDocs';
|
|
import { API_DOCS_TABS } from 'types/views/apiDocs';
|
|
|
|
export const apiDocsSchema = yup
|
|
.object()
|
|
.shape({
|
|
NEXT_PUBLIC_API_DOCS_TABS: yup.array()
|
|
.transform(replaceQuotes)
|
|
.json()
|
|
.of(yup.string<ApiDocsTabId>().oneOf(API_DOCS_TABS)),
|
|
}); |