Skip to content

Commit

Permalink
apply suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyfiel committed Jan 17, 2025
1 parent d754c73 commit b5361c3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export { ConfigTypes } from './types/redocly-yaml';
export type {
Oas3Definition,
Oas3_1Definition,
Oas3ComponentsBase,
Oas3Components,
Oas3_1Components,
Oas3PathItem,
Oas3Paths,
Expand Down
7 changes: 4 additions & 3 deletions packages/core/src/typings/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export interface Oas3Xml {
interface Oas3XSchemaBase<T extends Oas3Schema | Oas3_1Schema> {
$ref?: string;
properties?: { [name: string]: Referenced<T> };
additionalProperties?: boolean | { [name: string]: Referenced<T> };
additionalProperties?: boolean | T;
description?: string;
default?: unknown;
required?: string[];
Expand Down Expand Up @@ -236,7 +236,7 @@ export interface Oas3RequestBody<T extends Oas3Schema | Oas3_1Schema = Oas3Schem
content: { [mime: string]: Oas3MediaType<T> };
}

export interface Oas3Responses<T extends Oas3Schema | Oas3_1Schema> {
export interface Oas3Responses<T extends Oas3Schema | Oas3_1Schema = Oas3Schema | Oas3_1Schema> {
[code: string]: Oas3Response<T>;
}

Expand Down Expand Up @@ -284,7 +284,8 @@ export interface Oas3_1Components extends Oas3ComponentsBase<Oas3_1Schema> {

export interface Oas3Components extends Oas3ComponentsBase<Oas3Schema> {}

export type Oas3ComponentName<T extends Oas3Schema | Oas3_1Schema> = keyof Oas3ComponentsBase<T>;
export type Oas3ComponentName<T extends Oas3Schema | Oas3_1Schema = Oas3Schema | Oas3_1Schema> =
keyof Oas3ComponentsBase<T>;

export interface Oas3SecurityRequirement {
[name: string]: string[];
Expand Down

0 comments on commit b5361c3

Please sign in to comment.