Skip to content

Support Standart Schema Validator #1051

Open
@xkalf

Description

@xkalf

What is the problem this feature would solve?

I want to use ArkType instead of Typebox other major library's are supporting standart schema validator this allows the validator any of based standart schema validator library like zod, arktype, valibot etc

What is the feature you are proposing to solve the problem?

here is the trpc example

import { initTRPC } from '@trpc/server';
import { type } from 'arktype';
 
export const t = initTRPC.create();
 
const publicProcedure = t.procedure;
 
export const appRouter = t.router({
  hello: publicProcedure.input(type({ name: 'string' })).query(({ input }) => {
               
const publicProcedure: ProcedureBuilder<object, object, object, typeof unsetMarker, typeof unsetMarker, typeof unsetMarker, typeof unsetMarker, false>
    return {
      greeting: `hello ${input.name}`,
    };
  }),
});
 
export type AppRouter = typeof appRouter;

What alternatives have you considered?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions