Skip to content

Commit

Permalink
fix: adds optional $ref to schema type
Browse files Browse the repository at this point in the history
  • Loading branch information
NoodleOfDeath committed Oct 21, 2022
1 parent e0638f1 commit b61339c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/openapi-types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -399,11 +399,11 @@ export namespace OpenAPIV3 {
items: ReferenceObject | SchemaObject;
}

export interface NonArraySchemaObject extends BaseSchemaObject, Partial<ReferenceObject> {
export interface NonArraySchemaObject extends BaseSchemaObject {
type?: NonArraySchemaObjectType;
}

export interface BaseSchemaObject {
export interface BaseSchemaObject extends Partial<ReferenceObject> {
// JSON schema allowed properties, adjusted for OpenAPI
title?: string;
description?: string;
Expand Down

0 comments on commit b61339c

Please sign in to comment.