github unnoq/orpc v1.5.2

latest releases: v1.8.6, v1.8.5, v1.8.4...
2 months ago

UndefinedError common schemas docs

UndefinedError is used for undefined errors, which is very useful when using Type-Safe Error Handling.

const spec = await generator.generate(router, {
  commonSchemas: {
    User: {
      schema: UserSchema,
    },
    UndefinedError: {
      error: 'UndefinedError'
    }
  },
})

   🚀 Features

  • openapi: Support UndefinedError in commonSchemas for spec generation  -  by @unnoq in #655 (93fa2)

   🐞 Bug Fixes

  • openapi: Readonly for allowedStrategies and components in SchemaConverter types  -  by @unnoq (8b6cb)
    View changes on GitHub

Don't miss a new orpc release

NewReleases is sending notifications on new releases.