Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import { requestValidator$, t } from '@marblejs/middleware-io';
import { ArticleLanguage } from '../model/article-language';
interface PositiveBrand {
readonly Positive: unique symbol;
}
const Positive = t.brand(
t.number,
(n): n is t.Branded => n >= 0,
'Positive'
);
type Positive = t.TypeOf;
export const articleSchema = t.type({
title: t.string,
markdown: t.string,
html: t.string,
tags: t.array(t.string),
slug: t.string,
published: t.boolean,
publishedAt: t.union([t.string, t.null]),
posterUrl: t.union([t.string, t.null]),
metaTitle: t.union([t.string, t.null]),