🚀 New Features 🚀
configGlobal
used to change some default oRPC behavior
import { configGlobal } from '@orpc/contract'; // or '@orpc/server'
configGlobal({
defaultMethod: 'GET', // Default HTTP method for requests
defaultSuccessStatus: 200, // Default HTTP status for successful responses
defaultInputStructure: 'compact', // Input payload structure: 'compact' or 'expanded'
defaultOutputStructure: 'compact', // Output payload structure: 'compact' or 'expanded'
});
successDescripton
option, allow use customize the success description when generate OpenAPI specs
const ping = oc.route({ successDescripton: 'Indicate the system is OK' })
🚨 Breaking Changes
🚀 Features
🐞 Bug Fixes
- zod: Nested descriptions not work when generate JSON Schema - by @gthomas08 in #68 (e7b4f)