diff --git a/website/src/routes/api/index.tsx b/website/src/routes/api/index.tsx index 264f8cd61..f521499ad 100644 --- a/website/src/routes/api/index.tsx +++ b/website/src/routes/api/index.tsx @@ -2,7 +2,7 @@ import { component$ } from '@builder.io/qwik'; import { routeLoader$ } from '@builder.io/qwik-city'; export const useRedirect = routeLoader$(({ redirect }) => { - throw redirect(302, '/api/any'); + throw redirect(302, '/api/any/'); }); export default component$(() => { diff --git a/website/src/routes/api/menu.md b/website/src/routes/api/menu.md index e682fcc6e..c2e3ca057 100644 --- a/website/src/routes/api/menu.md +++ b/website/src/routes/api/menu.md @@ -2,205 +2,205 @@ ## Schemas -- [any](/api/any) -- [array](/api/array) -- [bigint](/api/bigint) -- [blob](/api/blob) -- [boolean](/api/boolean) -- [date](/api/date) -- [enum_](/api/enum_) -- [instance](/api/instance) -- [intersect](/api/intersect) -- [literal](/api/literal) -- [map](/api/map) -- [nan](/api/nan) -- [never](/api/never) -- [nonNullable](/api/nonNullable) -- [nonNullish](/api/nonNullish) -- [nonOptional](/api/nonOptional) -- [null_](/api/null_) -- [nullable](/api/nullable) -- [nullish](/api/nullish) -- [number](/api/number) -- [object](/api/object) -- [optional](/api/optional) -- [picklist](/api/picklist) -- [record](/api/record) -- [recursive](/api/recursive) -- [set](/api/set) -- [special](/api/special) -- [string](/api/string) -- [symbol](/api/symbol) -- [tuple](/api/tuple) -- [undefined_](/api/undefined_) -- [union](/api/union) -- [unknown](/api/unknown) -- [variant](/api/variant) -- [void_](/api/void_) +- [any](/api/any/) +- [array](/api/array/) +- [bigint](/api/bigint/) +- [blob](/api/blob/) +- [boolean](/api/boolean/) +- [date](/api/date/) +- [enum_](/api/enum_/) +- [instance](/api/instance/) +- [intersect](/api/intersect/) +- [literal](/api/literal/) +- [map](/api/map/) +- [nan](/api/nan/) +- [never](/api/never/) +- [nonNullable](/api/nonNullable/) +- [nonNullish](/api/nonNullish/) +- [nonOptional](/api/nonOptional/) +- [null_](/api/null_/) +- [nullable](/api/nullable/) +- [nullish](/api/nullish/) +- [number](/api/number/) +- [object](/api/object/) +- [optional](/api/optional/) +- [picklist](/api/picklist/) +- [record](/api/record/) +- [recursive](/api/recursive/) +- [set](/api/set/) +- [special](/api/special/) +- [string](/api/string/) +- [symbol](/api/symbol/) +- [tuple](/api/tuple/) +- [undefined_](/api/undefined_/) +- [union](/api/union/) +- [unknown](/api/unknown/) +- [variant](/api/variant/) +- [void_](/api/void_/) ## Methods -- [brand](/api/brand) -- [coerce](/api/coerce) -- [fallback](/api/fallback) -- [forward](/api/forward) -- [getDefault](/api/getDefault) -- [getDefaults](/api/getDefaults) -- [is](/api/is) -- [keyof](/api/keyof) -- [merge](/api/merge) -- [omit](/api/omit) -- [parse](/api/parse) -- [partial](/api/partial) -- [pick](/api/pick) -- [required](/api/required) -- [safeParse](/api/safeParse) -- [transform](/api/transform) -- [unwrap](/api/unwrap) +- [brand](/api/brand/) +- [coerce](/api/coerce/) +- [fallback](/api/fallback/) +- [forward](/api/forward/) +- [getDefault](/api/getDefault/) +- [getDefaults](/api/getDefaults/) +- [is](/api/is/) +- [keyof](/api/keyof/) +- [merge](/api/merge/) +- [omit](/api/omit/) +- [parse](/api/parse/) +- [partial](/api/partial/) +- [pick](/api/pick/) +- [required](/api/required/) +- [safeParse](/api/safeParse/) +- [transform](/api/transform/) +- [unwrap](/api/unwrap/) ## Validations -- [bic](/api/bic) -- [bytes](/api/bytes) -- [cuid2](/api/cuid2) -- [custom](/api/custom) -- [email](/api/email) -- [emoji](/api/emoji) -- [endsWith](/api/endsWith) -- [excludes](/api/excludes) -- [finite](/api/finite) -- [imei](/api/imei) -- [includes](/api/includes) -- [integer](/api/integer) -- [ip](/api/ip) -- [ipv4](/api/ipv4) -- [ipv6](/api/ipv6) -- [isoDate](/api/isoDate) -- [isoDateTime](/api/isoDateTime) -- [isoTime](/api/isoTime) -- [isoTimeSecond](/api/isoTimeSecond) -- [isoTimestamp](/api/isoTimestamp) -- [isoWeek](/api/isoWeek) -- [length](/api/length) -- [mac](/api/mac) -- [mac48](/api/mac48) -- [mac64](/api/mac64) -- [maxBytes](/api/maxBytes) -- [maxLength](/api/maxLength) -- [maxSize](/api/maxSize) -- [maxValue](/api/maxValue) -- [mimeType](/api/mimeType) -- [minBytes](/api/minBytes) -- [minLength](/api/minLength) -- [minSize](/api/minSize) -- [minValue](/api/minValue) -- [multipleOf](/api/multipleOf) -- [notBytes](/api/notBytes) -- [notLength](/api/notLength) -- [notSize](/api/notSize) -- [notValue](/api/notValue) -- [regex](/api/regex) -- [safeInteger](/api/safeInteger) -- [size](/api/size) -- [startsWith](/api/startsWith) -- [ulid](/api/ulid) -- [url](/api/url) -- [uuid](/api/uuid) -- [value](/api/value) +- [bic](/api/bic/) +- [bytes](/api/bytes/) +- [cuid2](/api/cuid2/) +- [custom](/api/custom/) +- [email](/api/email/) +- [emoji](/api/emoji/) +- [endsWith](/api/endsWith/) +- [excludes](/api/excludes/) +- [finite](/api/finite/) +- [imei](/api/imei/) +- [includes](/api/includes/) +- [integer](/api/integer/) +- [ip](/api/ip/) +- [ipv4](/api/ipv4/) +- [ipv6](/api/ipv6/) +- [isoDate](/api/isoDate/) +- [isoDateTime](/api/isoDateTime/) +- [isoTime](/api/isoTime/) +- [isoTimeSecond](/api/isoTimeSecond/) +- [isoTimestamp](/api/isoTimestamp/) +- [isoWeek](/api/isoWeek/) +- [length](/api/length/) +- [mac](/api/mac/) +- [mac48](/api/mac48/) +- [mac64](/api/mac64/) +- [maxBytes](/api/maxBytes/) +- [maxLength](/api/maxLength/) +- [maxSize](/api/maxSize/) +- [maxValue](/api/maxValue/) +- [mimeType](/api/mimeType/) +- [minBytes](/api/minBytes/) +- [minLength](/api/minLength/) +- [minSize](/api/minSize/) +- [minValue](/api/minValue/) +- [multipleOf](/api/multipleOf/) +- [notBytes](/api/notBytes/) +- [notLength](/api/notLength/) +- [notSize](/api/notSize/) +- [notValue](/api/notValue/) +- [regex](/api/regex/) +- [safeInteger](/api/safeInteger/) +- [size](/api/size/) +- [startsWith](/api/startsWith/) +- [ulid](/api/ulid/) +- [url](/api/url/) +- [uuid](/api/uuid/) +- [value](/api/value/) ## Transformations -- [toCustom](/api/toCustom) -- [toLowerCase](/api/toLowerCase) -- [toMaxValue](/api/toMaxValue) -- [toMinValue](/api/toMinValue) -- [toTrimmed](/api/toTrimmed) -- [toTrimmedEnd](/api/toTrimmedEnd) -- [toTrimmedStart](/api/toTrimmedStart) -- [toUpperCase](/api/toUpperCase) +- [toCustom](/api/toCustom/) +- [toLowerCase](/api/toLowerCase/) +- [toMaxValue](/api/toMaxValue/) +- [toMinValue](/api/toMinValue/) +- [toTrimmed](/api/toTrimmed/) +- [toTrimmedEnd](/api/toTrimmedEnd/) +- [toTrimmedStart](/api/toTrimmedStart/) +- [toUpperCase](/api/toUpperCase/) ## Error -- [flatten](/api/flatten) -- [ValiError](/api/ValiError) +- [flatten](/api/flatten/) +- [ValiError](/api/ValiError/) ## Async -- [anyAsync](/api/anyAsync) -- [arrayAsync](/api/arrayAsync) -- [bigintAsync](/api/bigintAsync) -- [blobAsync](/api/blobAsync) -- [booleanAsync](/api/booleanAsync) -- [coerceAsync](/api/coerceAsync) -- [customAsync](/api/customAsync) -- [dateAsync](/api/dateAsync) -- [enumAsync](/api/enumAsync) -- [fallbackAsync](/api/fallbackAsync) -- [forwardAsync](/api/forwardAsync) -- [getDefaultAsync](/api/getDefaultAsync) -- [getDefaultsAsync](/api/getDefaultsAsync) -- [instanceAsync](/api/instanceAsync) -- [intersectAsync](/api/intersectAsync) -- [literalAsync](/api/literalAsync) -- [mapAsync](/api/mapAsync) -- [mergeAsync](/api/mergeAsync) -- [nanAsync](/api/nanAsync) -- [neverAsync](/api/neverAsync) -- [nonNullableAsync](/api/nonNullableAsync) -- [nonNullishAsync](/api/nonNullishAsync) -- [nonOptionalAsync](/api/nonOptionalAsync) -- [nullableAsync](/api/nullableAsync) -- [nullishAsync](/api/nullishAsync) -- [nullAsync](/api/nullAsync) -- [numberAsync](/api/numberAsync) -- [objectAsync](/api/objectAsync) -- [omitAsync](/api/omitAsync) -- [optionalAsync](/api/optionalAsync) -- [parseAsync](/api/parseAsync) -- [partialAsync](/api/partialAsync) -- [pickAsync](/api/pickAsync) -- [picklistAsync](/api/picklistAsync) -- [recordAsync](/api/recordAsync) -- [recursiveAsync](/api/recursiveAsync) -- [requiredAsync](/api/requiredAsync) -- [safeParseAsync](/api/safeParseAsync) -- [setAsync](/api/setAsync) -- [specialAsync](/api/specialAsync) -- [stringAsync](/api/stringAsync) -- [symbolAsync](/api/symbolAsync) -- [toCustomAsync](/api/toCustomAsync) -- [transformAsync](/api/transformAsync) -- [tupleAsync](/api/tupleAsync) -- [undefinedAsync](/api/undefinedAsync) -- [unionAsync](/api/unionAsync) -- [unknownAsync](/api/unknownAsync) -- [variantAsync](/api/variantAsync) -- [voidTypeAsync](/api/voidTypeAsync) +- [anyAsync](/api/anyAsync/) +- [arrayAsync](/api/arrayAsync/) +- [bigintAsync](/api/bigintAsync/) +- [blobAsync](/api/blobAsync/) +- [booleanAsync](/api/booleanAsync/) +- [coerceAsync](/api/coerceAsync/) +- [customAsync](/api/customAsync/) +- [dateAsync](/api/dateAsync/) +- [enumAsync](/api/enumAsync/) +- [fallbackAsync](/api/fallbackAsync/) +- [forwardAsync](/api/forwardAsync/) +- [getDefaultAsync](/api/getDefaultAsync/) +- [getDefaultsAsync](/api/getDefaultsAsync/) +- [instanceAsync](/api/instanceAsync/) +- [intersectAsync](/api/intersectAsync/) +- [literalAsync](/api/literalAsync/) +- [mapAsync](/api/mapAsync/) +- [mergeAsync](/api/mergeAsync/) +- [nanAsync](/api/nanAsync/) +- [neverAsync](/api/neverAsync/) +- [nonNullableAsync](/api/nonNullableAsync/) +- [nonNullishAsync](/api/nonNullishAsync/) +- [nonOptionalAsync](/api/nonOptionalAsync/) +- [nullableAsync](/api/nullableAsync/) +- [nullishAsync](/api/nullishAsync/) +- [nullAsync](/api/nullAsync/) +- [numberAsync](/api/numberAsync/) +- [objectAsync](/api/objectAsync/) +- [omitAsync](/api/omitAsync/) +- [optionalAsync](/api/optionalAsync/) +- [parseAsync](/api/parseAsync/) +- [partialAsync](/api/partialAsync/) +- [pickAsync](/api/pickAsync/) +- [picklistAsync](/api/picklistAsync/) +- [recordAsync](/api/recordAsync/) +- [recursiveAsync](/api/recursiveAsync/) +- [requiredAsync](/api/requiredAsync/) +- [safeParseAsync](/api/safeParseAsync/) +- [setAsync](/api/setAsync/) +- [specialAsync](/api/specialAsync/) +- [stringAsync](/api/stringAsync/) +- [symbolAsync](/api/symbolAsync/) +- [toCustomAsync](/api/toCustomAsync/) +- [transformAsync](/api/transformAsync/) +- [tupleAsync](/api/tupleAsync/) +- [undefinedAsync](/api/undefinedAsync/) +- [unionAsync](/api/unionAsync/) +- [unknownAsync](/api/unknownAsync/) +- [variantAsync](/api/variantAsync/) +- [voidTypeAsync](/api/voidTypeAsync/) ## Types -- [ArrayPathItem](/api/ArrayPathItem) -- [BaseSchema](/api/BaseSchema) -- [BaseTransformation](/api/BaseTransformation) -- [BaseValidation](/api/BaseValidation) -- [ErrorMessage](/api/ErrorMessage) -- [InvalidActionResult](/api/InvalidActionResult) -- [Issue](/api/Issue) -- [IssueOrigin](/api/IssueOrigin) -- [IssueReason](/api/IssueReason) -- [Issues](/api/Issues) -- [MapPathItem](/api/MapPathItem) -- [ObjectPathItem](/api/ObjectPathItem) -- [ParseInfo](/api/ParseInfo) -- [PathItem](/api/PathItem) -- [Pipe](/api/Pipe) -- [PipeActionResult](/api/PipeActionResult) -- [RecordPathItem](/api/RecordPathItem) -- [SchemaResult](/api/SchemaResult) -- [SetPathItem](/api/SetPathItem) -- [StringSchema](/api/StringSchema) -- [TuplePathItem](/api/TuplePathItem) -- [TypedSchemaResult](/api/TypedSchemaResult) -- [UnknownPathItem](/api/UnknownPathItem) -- [UntypedSchemaResult](/api/UntypedSchemaResult) -- [ValidActionResult](/api/ValidActionResult) +- [ArrayPathItem](/api/ArrayPathItem/) +- [BaseSchema](/api/BaseSchema/) +- [BaseTransformation](/api/BaseTransformation/) +- [BaseValidation](/api/BaseValidation/) +- [ErrorMessage](/api/ErrorMessage/) +- [InvalidActionResult](/api/InvalidActionResult/) +- [Issue](/api/Issue/) +- [IssueOrigin](/api/IssueOrigin/) +- [IssueReason](/api/IssueReason/) +- [Issues](/api/Issues/) +- [MapPathItem](/api/MapPathItem/) +- [ObjectPathItem](/api/ObjectPathItem/) +- [ParseInfo](/api/ParseInfo/) +- [PathItem](/api/PathItem/) +- [Pipe](/api/Pipe/) +- [PipeActionResult](/api/PipeActionResult/) +- [RecordPathItem](/api/RecordPathItem/) +- [SchemaResult](/api/SchemaResult/) +- [SetPathItem](/api/SetPathItem/) +- [StringSchema](/api/StringSchema/) +- [TuplePathItem](/api/TuplePathItem/) +- [TypedSchemaResult](/api/TypedSchemaResult/) +- [UnknownPathItem](/api/UnknownPathItem/) +- [UntypedSchemaResult](/api/UntypedSchemaResult/) +- [ValidActionResult](/api/ValidActionResult/) diff --git a/website/src/routes/guides/(get-started)/introduction/index.mdx b/website/src/routes/guides/(get-started)/introduction/index.mdx index 3ce046552..149461773 100644 --- a/website/src/routes/guides/(get-started)/introduction/index.mdx +++ b/website/src/routes/guides/(get-started)/introduction/index.mdx @@ -51,7 +51,7 @@ parse(LoginSchema, { email: '', password: '' }); parse(LoginSchema, { email: 'jane@example.com', password: '12345678' }); ``` -Apart from `parse` I also offer a non-exception-based API with `safeParse` and a type guard function with `is`. You can read more about it here. +Apart from `parse` I also offer a non-exception-based API with `safeParse` and a type guard function with `is`. You can read more about it here. ## Comparison diff --git a/website/src/routes/guides/(main-concepts)/methods/index.mdx b/website/src/routes/guides/(main-concepts)/methods/index.mdx index de0e0defb..b23afa4f1 100644 --- a/website/src/routes/guides/(main-concepts)/methods/index.mdx +++ b/website/src/routes/guides/(main-concepts)/methods/index.mdx @@ -40,7 +40,7 @@ My schema methods either add additional functionality, simplify the handling or ]} /> -> For more on methods for validation, see the parse data guide. +> For more on methods for validation, see the parse data guide. ### Coerce diff --git a/website/src/routes/guides/index.tsx b/website/src/routes/guides/index.tsx index 7018d3fc6..8045573e8 100644 --- a/website/src/routes/guides/index.tsx +++ b/website/src/routes/guides/index.tsx @@ -2,7 +2,7 @@ import { component$ } from '@builder.io/qwik'; import { routeLoader$ } from '@builder.io/qwik-city'; export const useRedirect = routeLoader$(({ redirect }) => { - throw redirect(302, '/guides/introduction'); + throw redirect(302, '/guides/introduction/'); }); export default component$(() => { diff --git a/website/src/routes/guides/menu.md b/website/src/routes/guides/menu.md index 0cfc66e6a..340f27039 100644 --- a/website/src/routes/guides/menu.md +++ b/website/src/routes/guides/menu.md @@ -2,24 +2,24 @@ ## Get started -- [Introduction](/guides/introduction) -- [Installation](/guides/installation) -- [Use cases](/guides/use-cases) -- [Comparison](/guides/comparison) -- [Ecosystem](/guides/ecosystem) +- [Introduction](/guides/introduction/) +- [Installation](/guides/installation/) +- [Use cases](/guides/use-cases/) +- [Comparison](/guides/comparison/) +- [Ecosystem](/guides/ecosystem/) ## Main concepts -- [Schemas](/guides/schemas) -- [Pipelines](/guides/pipelines) -- [Parse data](/guides/parse-data) -- [Infer types](/guides/infer-types) -- [Methods](/guides/methods) -- [Errors](/guides/errors) +- [Schemas](/guides/schemas/) +- [Pipelines](/guides/pipelines/) +- [Parse data](/guides/parse-data/) +- [Infer types](/guides/infer-types/) +- [Methods](/guides/methods/) +- [Errors](/guides/errors/) ## Migration -- [From Zod](/guides/migrate-from-zod) -- [From Ajv](/guides/migrate-from-ajv) -- [From Joi](/guides/migrate-from-joi) -- [From Yup](/guides/migrate-from-yup) +- [From Zod](/guides/migrate-from-zod/) +- [From Ajv](/guides/migrate-from-ajv/) +- [From Joi](/guides/migrate-from-joi/) +- [From Yup](/guides/migrate-from-yup/)