Skip to content

Commit

Permalink
feat: allow defining summary for operations
Browse files Browse the repository at this point in the history
  • Loading branch information
DASPRiD committed Aug 2, 2024
1 parent 3e1f937 commit ed1610d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/script.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export type ScriptHandler<T> = (parameter: T) => Promise<ScriptHandlerResult>;
export type ScriptDefinition = {
tags?: string[];
description: string;
summary?: string;
requestSchema: SchemaObject | ReferenceObject;
responseSchema: SchemaObject | ReferenceObject;
metaSchema?: SchemaObject | ReferenceObject;
Expand Down Expand Up @@ -70,6 +71,7 @@ export const buildScriptPathItemObject = (definition: ScriptDefinition): PathIte
post: {
tags: definition.tags,
description: definition.description,
summary: definition.summary,
requestBody: {
required: true,
content: {
Expand Down

0 comments on commit ed1610d

Please sign in to comment.