Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions docs/examples/redoc-dark.html
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@
placeHolder: 'Search endpoints',
data: {
src: this.filterEndpoints(openapi),
keys: ['method', 'path', 'summary'],
keys: ['searchKey'],
},
searchEngine: 'loose',
threshold: 0,
Expand Down Expand Up @@ -265,14 +265,16 @@
if (method === 'parameters') {
continue
}
const summary = paths[path][method].summary || ''
endpoints.push({
searchKey: `${method} ${path} ${summary}`,
method: method.toUpperCase(),
path,
operationId: paths[path][method].operationId,
tag: paths[path][method].tags
? paths[path][method].tags[0]
: 'default',
summary: paths[path][method].summary || '',
summary,
})
}
}
Expand Down
6 changes: 4 additions & 2 deletions docs/examples/redoc-light.html
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@
placeHolder: 'Search endpoints',
data: {
src: this.filterEndpoints(openapi),
keys: ['method', 'path', 'summary'],
keys: ['searchKey'],
},
searchEngine: 'loose',
threshold: 0,
Expand Down Expand Up @@ -265,14 +265,16 @@
if (method === 'parameters') {
continue
}
const summary = paths[path][method].summary || ''
endpoints.push({
searchKey: `${method} ${path} ${summary}`,
method: method.toUpperCase(),
path,
operationId: paths[path][method].operationId,
tag: paths[path][method].tags
? paths[path][method].tags[0]
: 'default',
summary: paths[path][method].summary || '',
summary,
})
}
}
Expand Down
6 changes: 4 additions & 2 deletions docs/examples/stoplight-dark.html
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@
placeHolder: 'Search endpoints',
data: {
src: this.filterEndpoints(openapi),
keys: ['method', 'path', 'summary'],
keys: ['searchKey'],
},
searchEngine: 'loose',
threshold: 0,
Expand Down Expand Up @@ -266,14 +266,16 @@
if (method === 'parameters') {
continue
}
const summary = paths[path][method].summary || ''
endpoints.push({
searchKey: `${method} ${path} ${summary}`,
method: method.toUpperCase(),
path,
operationId: paths[path][method].operationId,
tag: paths[path][method].tags
? paths[path][method].tags[0]
: 'default',
summary: paths[path][method].summary || '',
summary,
})
}
}
Expand Down
6 changes: 4 additions & 2 deletions docs/examples/stoplight-light.html
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@
placeHolder: 'Search endpoints',
data: {
src: this.filterEndpoints(openapi),
keys: ['method', 'path', 'summary'],
keys: ['searchKey'],
},
searchEngine: 'loose',
threshold: 0,
Expand Down Expand Up @@ -266,14 +266,16 @@
if (method === 'parameters') {
continue
}
const summary = paths[path][method].summary || ''
endpoints.push({
searchKey: `${method} ${path} ${summary}`,
method: method.toUpperCase(),
path,
operationId: paths[path][method].operationId,
tag: paths[path][method].tags
? paths[path][method].tags[0]
: 'default',
summary: paths[path][method].summary || '',
summary,
})
}
}
Expand Down
6 changes: 4 additions & 2 deletions docs/examples/swagger-dark.html
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@
placeHolder: 'Search endpoints',
data: {
src: this.filterEndpoints(openapi),
keys: ['method', 'path', 'summary'],
keys: ['searchKey'],
},
searchEngine: 'loose',
threshold: 0,
Expand Down Expand Up @@ -264,14 +264,16 @@
if (method === 'parameters') {
continue
}
const summary = paths[path][method].summary || ''
endpoints.push({
searchKey: `${method} ${path} ${summary}`,
method: method.toUpperCase(),
path,
operationId: paths[path][method].operationId,
tag: paths[path][method].tags
? paths[path][method].tags[0]
: 'default',
summary: paths[path][method].summary || '',
summary,
})
}
}
Expand Down
6 changes: 4 additions & 2 deletions docs/examples/swagger-light.html
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@
placeHolder: 'Search endpoints',
data: {
src: this.filterEndpoints(openapi),
keys: ['method', 'path', 'summary'],
keys: ['searchKey'],
},
searchEngine: 'loose',
threshold: 0,
Expand Down Expand Up @@ -264,14 +264,16 @@
if (method === 'parameters') {
continue
}
const summary = paths[path][method].summary || ''
endpoints.push({
searchKey: `${method} ${path} ${summary}`,
method: method.toUpperCase(),
path,
operationId: paths[path][method].operationId,
tag: paths[path][method].tags
? paths[path][method].tags[0]
: 'default',
summary: paths[path][method].summary || '',
summary,
})
}
}
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "openapi-generate-html",
"version": "0.5.0",
"version": "0.5.1",
"description": "Generate standalone HTML from OpenAPI Specification",
"type": "module",
"bin": {
Expand Down
6 changes: 4 additions & 2 deletions resources/common/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class SearchDialog {
placeHolder: 'Search endpoints',
data: {
src: this.filterEndpoints(openapi),
keys: ['method', 'path', 'summary'],
keys: ['searchKey'],
},
searchEngine: 'loose',
threshold: 0,
Expand Down Expand Up @@ -77,14 +77,16 @@ class SearchDialog {
if (method === 'parameters') {
continue
}
const summary = paths[path][method].summary || ''
endpoints.push({
searchKey: `${method} ${path} ${summary}`,
method: method.toUpperCase(),
path,
operationId: paths[path][method].operationId,
tag: paths[path][method].tags
? paths[path][method].tags[0]
: 'default',
summary: paths[path][method].summary || '',
summary,
})
}
}
Expand Down
Loading