github hey-api/openapi-ts @hey-api/openapi-ts@0.68.0

latest releases: @hey-api/openapi-ts@0.82.4, @hey-api/nuxt@0.2.1, @hey-api/openapi-ts@0.82.1...
3 months ago

Minor Changes

  • #2072 8bea7d2 Thanks @mrlubos! - feat: upgraded input filters

    Upgraded input filters

    Input filters now avoid generating invalid output without requiring you to specify every missing schema as in the previous releases. As part of this release, we changed the way filters are configured and removed the support for regular expressions. Let us know if regular expressions are still useful for you and want to bring them back!

    export default {
      input: {
        // match only the schema named `foo` and `GET` operation for the `/api/v1/foo` path
        filters: {
          operations: {
            include: ['GET /api/v1/foo'], // [!code ++]
          },
          schemas: {
            include: ['foo'], // [!code ++]
          },
        },
        include: '^(#/components/schemas/foo|#/paths/api/v1/foo/get)

Don't miss a new openapi-ts release

NewReleases is sending notifications on new releases.