@tsed/schema
Version:
JsonSchema module for Ts.ED Framework
13 lines (12 loc) • 315 B
JavaScript
import { JsonFormatTypes } from "../domain/JsonFormatTypes.js";
import { string } from "./string.js";
/**
* Declare a new string model with `format: url`.
*
* See @@JsonSchema@@ to discover available methods.
*
* @schemaFunctional
*/
export function url() {
return string().format(JsonFormatTypes.URL);
}