Skip to content

Commit e2cf20c

Browse files
fix: Bump version to 0.1.13 in deno.json and jsr.json; update addSecuritySchema method to include schema property
1 parent 3b8959d commit e2cf20c

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

deno.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@murat/openapi",
33
"exports": "./mod.ts",
4-
"version": "0.1.12",
4+
"version": "0.1.13",
55
"tasks": {
66
"lint": "deno lint",
77
"test": "deno test --allow-all",

jsr.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@murat/openapi",
3-
"version": "0.1.12",
3+
"version": "0.1.13",
44
"license": "MIT",
55
"exports": "./mod.ts",
66
"imports": {

src/Core.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,10 @@ class OpenAPI {
197197
return this;
198198
}
199199

200-
addSecuritySchema(name: string, schema: { type: OpenAPISecurityTypes; description?: string }): this {
200+
addSecuritySchema(
201+
name: string,
202+
schema: { type: OpenAPISecurityTypes; schema: string; description?: string }
203+
): this {
201204
if (!this.raw.components) {
202205
this.raw.components = { securitySchemes: {} };
203206
}

0 commit comments

Comments
 (0)