Skip to content

Commit d0c5cc3

Browse files
authored
Merge pull request #77 from dev-five-git/owjs3901/fix-openapi31-type-arrays
Support OpenAPI 3.1 nullable union
2 parents 9152bc5 + 5c712f2 commit d0c5cc3

7 files changed

Lines changed: 538 additions & 33 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"changes":{"packages/generator/package.json":"Patch"},"note":"Support OpenAPI 3.1 nullable union","date":"2026-08-24T16:35:40.436478400Z"}

packages/generator/src/__tests__/index.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ test('index.ts exports', () => {
3434
normalizeServerName: expect.any(Function),
3535
isErrorStatusCode: expect.any(Function),
3636
isNullableSchema: expect.any(Function),
37+
isNullTypeSchema: expect.any(Function),
38+
splitNullableUnion: expect.any(Function),
39+
normalizeNullableUnion: expect.any(Function),
3740
getPrimaryType: expect.any(Function),
3841
collectSchemaNames: expect.any(Function),
3942
})

0 commit comments

Comments
 (0)