Skip to content

Commit 1b9e566

Browse files
committed
Merge branch 'main' into feat/sse
2 parents d43ef3f + e85265d commit 1b9e566

File tree

41 files changed

+457
-24
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+457
-24
lines changed

docs/partials/contributors-list.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
- [Lubos](https://github.com/mrlubos)
4444
- [Maarten Knijnenberg](https://github.com/mknijnenberg)
4545
- [Mads Hougesen](https://github.com/hougesen)
46+
- [Malcolm Kee](https://github.com/malcolm-kee)
4647
- [Marcel Richter](https://github.com/mrclrchtr)
4748
- [Marek Lukáš](https://github.com/tajnymag)
4849
- [Matsu](https://github.com/Matsuuu)

packages/openapi-ts-tests/main/test/3.1.x.test.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -464,6 +464,14 @@ describe(`OpenAPI ${version}`, () => {
464464
description:
465465
'handles various enum names and values (TypeScript, preserve)',
466466
},
467+
{
468+
config: createConfig({
469+
input: 'union-types.json',
470+
output: 'union-types',
471+
plugins: ['@hey-api/typescript'],
472+
}),
473+
description: 'handles union of primitive types',
474+
},
467475
{
468476
config: createConfig({
469477
input: 'enum-null.json',

packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/angular-query-experimental/axios/client/client.gen.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ export const createClient = (config: Config = {}): Client => {
6969

7070
// @ts-expect-error
7171
const request: Client['request'] = async (options) => {
72+
// @ts-expect-error
7273
const { opts, url } = await beforeRequest(options);
7374
try {
7475
// assign Axios here for consistency with fetch

packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/react-query/axios/client/client.gen.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ export const createClient = (config: Config = {}): Client => {
6969

7070
// @ts-expect-error
7171
const request: Client['request'] = async (options) => {
72+
// @ts-expect-error
7273
const { opts, url } = await beforeRequest(options);
7374
try {
7475
// assign Axios here for consistency with fetch

packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/solid-query/axios/client/client.gen.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ export const createClient = (config: Config = {}): Client => {
6969

7070
// @ts-expect-error
7171
const request: Client['request'] = async (options) => {
72+
// @ts-expect-error
7273
const { opts, url } = await beforeRequest(options);
7374
try {
7475
// assign Axios here for consistency with fetch

packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/svelte-query/axios/client/client.gen.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ export const createClient = (config: Config = {}): Client => {
6969

7070
// @ts-expect-error
7171
const request: Client['request'] = async (options) => {
72+
// @ts-expect-error
7273
const { opts, url } = await beforeRequest(options);
7374
try {
7475
// assign Axios here for consistency with fetch

packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/vue-query/axios/client/client.gen.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ export const createClient = (config: Config = {}): Client => {
6969

7070
// @ts-expect-error
7171
const request: Client['request'] = async (options) => {
72+
// @ts-expect-error
7273
const { opts, url } = await beforeRequest(options);
7374
try {
7475
// assign Axios here for consistency with fetch

packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/content-types/client/client.gen.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ export const createClient = (config: Config = {}): Client => {
6969

7070
// @ts-expect-error
7171
const request: Client['request'] = async (options) => {
72+
// @ts-expect-error
7273
const { opts, url } = await beforeRequest(options);
7374
try {
7475
// assign Axios here for consistency with fetch

packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/parameter-explode-false-axios/client/client.gen.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ export const createClient = (config: Config = {}): Client => {
6969

7070
// @ts-expect-error
7171
const request: Client['request'] = async (options) => {
72+
// @ts-expect-error
7273
const { opts, url } = await beforeRequest(options);
7374
try {
7475
// assign Axios here for consistency with fetch

packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/angular-query-experimental/axios/client/client.gen.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ export const createClient = (config: Config = {}): Client => {
6969

7070
// @ts-expect-error
7171
const request: Client['request'] = async (options) => {
72+
// @ts-expect-error
7273
const { opts, url } = await beforeRequest(options);
7374
try {
7475
// assign Axios here for consistency with fetch

0 commit comments

Comments
 (0)