🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
docs: add zod type strict() to public api cursor rule (#5947)
Marc Klingena3f85e75dc65
diff --git a/.cursor/rules/public-api.mdc b/.cursor/rules/public-api.mdcindex d899dcff3c..48be9e8ac4 100644--- a/.cursor/rules/public-api.mdc+++ b/.cursor/rules/public-api.mdc@@ -9,7 +9,7 @@ alwaysApply: false- All public api routes are in /web/src/pages/api/public- New api routes should follow these guidelines:- Use [withMiddlewares.ts](mdc:web/src/features/public-api/server/withMiddlewares.ts) as a wrapper- - Define types of api request and response in /web/src/features/public-api/types+ - Define types of api request and response in /web/src/features/public-api/types, use strict() for all zod objects- Add end-to-end test, similar to [datasets-api.servertest.ts](mdc:web/src/__tests__/async/datasets-api.servertest.ts)- Add fern configuration in /fern, learn more about structure here: https://buildwithfern.com/learn/api-definition/fern/overview- Prompt user to regenerate the OpenAPI spec via the fern CLI