valibot icon indicating copy to clipboard operation
valibot copied to clipboard

Help Wanted: Completing the API Reference on Website

Open fabian-hiller opened this issue 1 year ago • 39 comments

[!IMPORTANT] The following description is outdated. All synchronous APIs are already fully documented. We are just missing a few asyncronous APIs. If you still want to help, feel free to comment below.

This issue is used to coordinate the expansion of our API reference. The first reference was created by @kazizi55 in #220. Please use the already added references as a template. You can also use this issue if you encounter problems or have questions.

If you are interested in helping us extend the API reference, please add a comment to this issue with the API you want to take over. I will summarize the current state in the tables below.

Schemas
API Author Pull Request Merged
any @fabian-hiller -
array @kazizi55 #330
bigint @fabian-hiller -
blob @fabian-hiller -
boolean @wout-junius #316
date @wout-junius #315
enum_ @fabian-hiller -
instance @fabian-hiller -
intersect @fabian-hiller -
literal @fabian-hiller -
map @fabian-hiller -
nan @fabian-hiller -
never @fabian-hiller -
nonNullable @fabian-hiller -
nonNullish @fabian-hiller -
nonOptional @fabian-hiller -
null_ @fabian-hiller -
nullable @sqmasep #328
nullish @sqmasep #329
number @kazizi55 #331
object @kazizi55 #357
optional @sqmasep #321
picklist @sqmasep #312
record @fabian-hiller -
recursive @fabian-hiller -
set @fabian-hiller -
special @fabian-hiller -
string @kazizi55 #220
symbol @wout-junius #317
tuple @fabian-hiller -
undefined_ @fabian-hiller -
union @fabian-hiller -
unknown @mwskwong #365
variant @fabian-hiller -
void_ @fabian-hiller -
Methods
API Author Pull Request Merged
brand @fabian-hiller -
coerce @fabian-hiller -
fallback @sqmasep #337
forward @fabian-hiller -
getDefault @fabian-hiller -
getDefaults @fabian-hiller -
getFallback @fabian-hiller -
getFallbacks @fabian-hiller -
is @fabian-hiller -
keyof @fabian-hiller -
merge @fabian-hiller -
omit @fabian-hiller -
parse @fabian-hiller -
partial @fabian-hiller -
pick @fabian-hiller -
required @fabian-hiller -
safeParse @fabian-hiller -
transform @fabian-hiller -
unwrap @fabian-hiller -
Validations
API Author Pull Request Merged
bic @ariskemper #386
bytes @fabian-hiller -
creditCard @ariskemper #388
cuid2 @fabian-hiller -
custom @fabian-hiller -
decimal @fabian-hiller -
email @fabian-hiller -
emoji @fabian-hiller -
endsWith @fabian-hiller -
every @fabian-hiller -
excludes @fabian-hiller -
finite @fabian-hiller -
hash @ariskemper #392
hexadecimal @ariskemper #414
hexColor @ariskemper #401
iban @ariskemper
imei @fabian-hiller -
includes @fabian-hiller -
integer @fabian-hiller -
ip @fabian-hiller -
ipv4 @fabian-hiller -
ipv6 @fabian-hiller -
isoDate @fabian-hiller -
isoDateTime @fabian-hiller -
isoTime @fabian-hiller -
isoTimeSecond @fabian-hiller -
isoTimestamp @fabian-hiller -
isoWeek @fabian-hiller -
length @fabian-hiller -
mac @ariskemper #407
mac48 @ariskemper #407
mac64 @ariskemper #407
maxBytes @fabian-hiller -
maxLength @fabian-hiller
maxSize @fabian-hiller -
maxValue @fabian-hiller -
mimeType @fabian-hiller -
minBytes @fabian-hiller -
minLength @fabian-hiller
minSize @fabian-hiller -
minValue @fabian-hiller -
multipleOf @fabian-hiller -
notBytes @fabian-hiller -
notLength @fabian-hiller -
notSize @fabian-hiller -
notValue @fabian-hiller -
octal @ariskemper #415
regex @fabian-hiller -
safeInteger @fabian-hiller -
size @fabian-hiller -
some @fabian-hiller -
startsWith @fabian-hiller -
ulid @fabian-hiller -
url @fabian-hiller -
uuid @fabian-hiller -
value @fabian-hiller -
Transformations
API Author Pull Request Merged
toCustom @fabian-hiller
toLowerCase @fabian-hiller
toMaxValue @fabian-hiller
toMinValue @fabian-hiller
toTrimmed @fabian-hiller
toTrimmedEnd @fabian-hiller
toTrimmedStart @fabian-hiller
toUpperCase @fabian-hiller
Error
API Author Pull Request Merged
flatten @fabian-hiller
ValiError @fabian-hiller
Async
API Author Pull Request Merged
anyAsync
arrayAsync
bigintAsync
blobAsync
booleanAsync
coerceAsync
customAsync
dateAsync
enumAsync
fallbackAsync
forwardAsync
getDefaultAsync
getDefaultsAsync
getFallbackAsync
getFallbacksAsync
instanceAsync
intersectAsync
literalAsync
mapAsync
mergeAsync
nanAsync
neverAsync
nonNullableAsync
nonNullishAsync
nonOptionalAsync
nullableAsync
nullishAsync
nullAsync
numberAsync
objectAsync
omitAsync
optionalAsync
parseAsync
partialAsync
pickAsync
picklistAsync
recordAsync
recursiveAsync
requiredAsync
safeParseAsync
setAsync
specialAsync
stringAsync
symbolAsync
toCustomAsync
transformAsync
tupleAsync
undefinedAsync
unionAsync
unknownAsync
variantAsync
voidAsync

fabian-hiller avatar Dec 07 '23 15:12 fabian-hiller

@fabian-hiller Hi! To begin with, I'd like to take over array , number and object! 😄

kazizi55 avatar Dec 10 '23 13:12 kazizi55

@fabian-hiller I do not mind beginning on the date, boolean, and symbol! :D

wout-junius avatar Dec 10 '23 13:12 wout-junius

Thank you guys! I updated the tables.

fabian-hiller avatar Dec 10 '23 15:12 fabian-hiller

@fabian-hiller please update table for bic, mac, mac48, mac64, and include me.

ariskemper avatar Dec 11 '23 13:12 ariskemper

@fabian-hiller Hi! I'll work on documenting fallback, getFallback, getFallbacks, getDefault, getDefaults, optional, nullish, & nullable, you can update the table 😉

sqmasep avatar Dec 22 '23 14:12 sqmasep

@fabian-hiller Happy new year 2024! 😄 I'd like to take over is, keyof, merge, and omit!

kazizi55 avatar Jan 03 '24 13:01 kazizi55

Happy new new year and thank you! I will update the tables.

fabian-hiller avatar Jan 04 '24 05:01 fabian-hiller

Edit: NVM, I underestimated the difficulties of nonNullable. Let me try unknown() first

mwskwong avatar Jan 14 '24 04:01 mwskwong

I will take the rest of the API reference (except the async APIs) and finish them by the end of the month. You can still help by copying the reference of an already added sync API and adding its async reference. Just send here the async APIs you want to work on and I will add your username to the table.

fabian-hiller avatar Jan 16 '24 15:01 fabian-hiller

@fabian-hiller Hi! Can I work on documenting booleanAsync, stringAsync & numberAsync? If yes, can you update the table?

EltonLobo07 avatar Apr 08 '24 04:04 EltonLobo07

Thank you for your help! We are currently rewriting the library in #502. Therefore, I recommend waiting until this PR is merged. Also, some APIs like stringAsync will not exist after the rewrite. See the PR description for more details.

fabian-hiller avatar Apr 08 '24 15:04 fabian-hiller

Hi @fabian-hiller ! I also would love to work on documenting minLength and maxLength. Should I also wait until #502 has been merged?

sakupi01 avatar May 19 '24 00:05 sakupi01

Yes, please wait. I will give an update here in about a month. Thank you!

fabian-hiller avatar May 19 '24 02:05 fabian-hiller

You can now go ahead if you like and add content to our async API references by copying the content from the sync version.

fabian-hiller avatar Jul 04 '24 16:07 fabian-hiller

Hi @fabian-hiller! I would like to work on documenting customAsync, arrayAsync and mapAsync.

EltonLobo07 avatar Jul 04 '24 17:07 EltonLobo07

@EltonLobo07 I am very grateful for your contributions! Your work is always of great quality! 🙏

fabian-hiller avatar Jul 04 '24 22:07 fabian-hiller

@fabian-hiller I would like to work on documenting objectAsync, checkAsync and setAsync next.

EltonLobo07 avatar Jul 11 '24 06:07 EltonLobo07

Yes, thank you!

fabian-hiller avatar Jul 11 '24 09:07 fabian-hiller

@fabian-hiller I would like to work on documenting awaitAsync, fallbackAsync, forwardAsync, getDefaultsAsync, and getFallbacksAsync next.

EltonLobo07 avatar Jul 16 '24 18:07 EltonLobo07

Go ahead 🙏

fabian-hiller avatar Jul 16 '24 19:07 fabian-hiller

@fabian-hiller Hi, I would like to work on documenting tupleAsync.

mehm8128 avatar Jul 23 '24 07:07 mehm8128

Yes, thank you!

fabian-hiller avatar Jul 23 '24 08:07 fabian-hiller

@mehm8128 feel free to also work on looseTupleAsync, tupleWithRestAsync and strictTupleAsync.

fabian-hiller avatar Jul 23 '24 13:07 fabian-hiller

I'll challenge it on another day🙌

mehm8128 avatar Jul 23 '24 13:07 mehm8128

@fabian-hiller I would like to work on documenting intersectAsync, lazyAsync, looseObjectAsync, nonNullableAsync, nonNullishAsync, nonOptionalAsync, strictObjectAsync, and objectWithRestAsync next.

EltonLobo07 avatar Jul 27 '24 09:07 EltonLobo07

Thank you!

fabian-hiller avatar Jul 27 '24 09:07 fabian-hiller

Hey @fabian-hiller ,

I will take Transformations APIs.

santoshyadavdev avatar Aug 11 '24 08:08 santoshyadavdev

@fabian-hiller, I would like to work on documenting parseAsync, parserAsync, unionAsync and variantAsync next.

EltonLobo07 avatar Aug 11 '24 10:08 EltonLobo07

Thank you both!

fabian-hiller avatar Aug 11 '24 10:08 fabian-hiller

@santoshyadavdev any updates?

fabian-hiller avatar Aug 20 '24 12:08 fabian-hiller