Skip to content

Commit 27cdbb4

Browse files
committed
Fix issues with JSON Schema extension
1 parent 4c6d258 commit 27cdbb4

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/3.1.0.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { JsonSchema } from '@fosfad/json-schema-typescript-definitions/2020-12';
1+
import { JsonSchemaBoolean, JsonSchemaObject } from '@fosfad/json-schema-typescript-definitions/2020-12';
22

33
export interface Callback {
44
[expression: string]: PathItem | Reference;
@@ -220,7 +220,7 @@ export interface Responses {
220220
[httpStatusCode: string]: Response | Reference;
221221
}
222222

223-
export type Schema = JsonSchema & {
223+
interface OasSchema extends JsonSchemaObject {
224224
$defs?: { [key: string]: Schema };
225225
additionalProperties?: Schema;
226226
allOf?: Array<Schema>;
@@ -242,7 +242,9 @@ export type Schema = JsonSchema & {
242242
unevaluatedItems?: Schema;
243243
unevaluatedProperties?: Schema;
244244
xml?: XML;
245-
};
245+
}
246+
247+
export type Schema = JsonSchemaBoolean | OasSchema;
246248

247249
export interface SecurityRequirement {
248250
[name: string]: string[];

0 commit comments

Comments
 (0)