Skip to content

Commit

Permalink
chore: format
Browse files Browse the repository at this point in the history
  • Loading branch information
enzonotario committed Feb 16, 2025
1 parent 27f0ab5 commit 491fb0e
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/components/Feature/OAIntroduction.vue
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<script setup>
import OAContextProvider from './OAContextProvider.vue'
import OAInfoContent from './OAInfoContent.vue'
import OAServersContent from './OAServersContent.vue'
Expand Down
4 changes: 2 additions & 2 deletions src/lib/codeSamples/convertRequestToHarRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export const convertRequestToHarRequest = async (

// Prevent duplication of query params
url.search = ''
} catch (e) {
} catch (_) {
// Invalid URL, leave queryString empty
}

Expand Down Expand Up @@ -103,7 +103,7 @@ export const convertRequestToHarRequest = async (
text: await request.text(),
}
}
} catch (e) {
} catch (_) {
// Invalid request body, leave postData empty
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/processOpenAPI/getCodeSamples.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export async function getCodeSamples(spec: ParsedOpenAPI): Promise<ParsedOpenAPI
method: verb,
baseUrl,
parameters: operation.parameters || [],
authorizations: Object.entries(authorizations).map(([name, value]) => {
authorizations: Object.entries(authorizations).map(([name, _]) => {
return {
...spec.components?.securitySchemes?.[name],
playgroundValue: name,
Expand Down
1 change: 0 additions & 1 deletion src/lib/processOpenAPI/processOpenAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { merge } from 'allof-merge'
import { getSchemaExample } from '../examples/getSchemaExample'
import { getSchemaUi } from './getSchemaUi'
import { getSecurityUi } from './getSecurityUi'
import { getCodeSamples } from './getCodeSamples'

function safelyMergeSpec(spec: OpenAPI.Document): ParsedOpenAPI {
try {
Expand Down
1 change: 0 additions & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ export type OperationObject = OpenAPIV3.Document | OpenAPIV3_1.OperationObject

export type PlaygroundSecurityScheme = OpenAPIV3.HttpSecurityScheme & OpenAPIV3.ApiKeySecurityScheme & OpenAPIV3.OAuth2SecurityScheme & OpenAPIV3.OpenIdSecurityScheme & {
playgroundValue: RemovableRef<any>
// | any
label: string
}

Expand Down

0 comments on commit 491fb0e

Please sign in to comment.