Skip to content

Commit 46a8037

Browse files
committed
fix type issue in SchemaObject
1 parent a6a6d20 commit 46a8037

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@omer-x/openapi-types",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"description": "TypeScript types for the OpenAPI Specification",
55
"keywords": [
66
"swagger",

src/schema.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@ type BooleanSchema = {
9191
type: "boolean",
9292
};
9393

94+
type UnknownSchema = {
95+
type?: undefined,
96+
};
97+
9498
/**
9599
* The Schema Object allows the definition of input and output data types. These types can be objects, but also primitives and arrays. This object is a superset of the JSON Schema Specification Draft 2020-12.
96100
*/
@@ -102,4 +106,4 @@ export type SchemaObject = Schema & (
102106
ArraySchema |
103107
NullSchema |
104108
BooleanSchema
105-
) & ReferenceObject;
109+
) | (ReferenceObject & UnknownSchema);

0 commit comments

Comments
 (0)