nixt icon indicating copy to clipboard operation
nixt copied to clipboard

__nixt registry schema

Open Lord-Valen opened this issue 2 years ago • 3 comments

This is one of the things which opens up interoperability with https://github.com/divnix/std. We should output a registry, __nixt, which contains the data nixt needs to run tests. Right now I'm considering a schema like so:

graph TD;
	A[__nixt];
	B[testSpec];
	BA[...testFiles];
	BAA[...testSuites];
	BAAA[...testCases];
	C[options];
	D[__schema];
    A-->B;
    B-->BA-->BAA-->BAAA;
    A-->C;
	A-->D;

https://github.com/colinhacks/zod may be useful here.

Lord-Valen avatar Jan 07 '23 20:01 Lord-Valen

https://github.com/colinhacks/zod may be useful here.

I'd recommend https://github.com/Effect-TS/schema instead

adrian-gierakowski avatar Apr 19 '23 09:04 adrian-gierakowski

Any reasons to give?

dustinlacewell avatar Apr 19 '23 20:04 dustinlacewell

This is already implemented as a v0. I'll leave this issue open in case there are any suggested modifications.

Lord-Valen avatar Apr 19 '23 20:04 Lord-Valen