@scalar/oas-utils
Advanced tools
Comparing version 0.2.5 to 0.2.6
# @scalar/oas-utils | ||
## 0.2.6 | ||
### Patch Changes | ||
- cefe804: feat: findVariables, replaceVariables, concatenateUrlAndPath | ||
- fec6f8e: feat: add a value to the server variables | ||
- d0aec62: fix: remove hardcoded proxy url for new client | ||
## 0.2.5 | ||
@@ -4,0 +12,0 @@ |
@@ -31,8 +31,12 @@ import { z } from 'zod'; | ||
description: z.ZodOptional<z.ZodString>; | ||
/** An optional value for the server variable */ | ||
value: z.ZodOptional<z.ZodString>; | ||
}, "strip", z.ZodTypeAny, { | ||
default: string; | ||
uid: string; | ||
value?: string | undefined; | ||
description?: string | undefined; | ||
enum?: string[] | undefined; | ||
}, { | ||
value?: string | undefined; | ||
default?: string | undefined; | ||
@@ -50,2 +54,3 @@ uid?: string | undefined; | ||
uid: string; | ||
value?: string | undefined; | ||
description?: string | undefined; | ||
@@ -59,2 +64,3 @@ enum?: string[] | undefined; | ||
variables?: Record<string, { | ||
value?: string | undefined; | ||
default?: string | undefined; | ||
@@ -82,2 +88,3 @@ uid?: string | undefined; | ||
uid: string; | ||
value?: string | undefined; | ||
description?: string | undefined; | ||
@@ -84,0 +91,0 @@ enum?: string[] | undefined; |
@@ -26,2 +26,4 @@ import { z } from 'zod'; | ||
description: z.string().optional(), | ||
/** An optional value for the server variable */ | ||
value: z.string().optional(), | ||
}); | ||
@@ -28,0 +30,0 @@ const serverSchema = z.object({ |
@@ -15,2 +15,4 @@ import { z } from 'zod'; | ||
cookieUids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>; | ||
/** Workspace level proxy for all requests to be sent through */ | ||
proxyUrl: z.ZodOptional<z.ZodString>; | ||
}, "strip", z.ZodTypeAny, { | ||
@@ -24,2 +26,3 @@ uid: string; | ||
cookieUids: string[]; | ||
proxyUrl?: string | undefined; | ||
}, { | ||
@@ -33,2 +36,3 @@ uid?: string | undefined; | ||
cookieUids?: string[] | undefined; | ||
proxyUrl?: string | undefined; | ||
}>; | ||
@@ -46,4 +50,5 @@ /** The base scalar workspace */ | ||
cookieUids: string[]; | ||
proxyUrl?: string | undefined; | ||
}; | ||
export {}; | ||
//# sourceMappingURL=workspace.d.ts.map |
@@ -17,2 +17,4 @@ import { z } from 'zod'; | ||
cookieUids: z.array(z.string()).default([]), | ||
/** Workspace level proxy for all requests to be sent through */ | ||
proxyUrl: z.string().optional(), | ||
}); | ||
@@ -19,0 +21,0 @@ const createWorkspace = (payload) => workspaceSchema.parse(payload); |
@@ -0,4 +1,6 @@ | ||
export * from './concatenateUrlAndPath.js'; | ||
export * from './createHash.js'; | ||
export * from './deepMerge.js'; | ||
export * from './fetchSpecFromUrl.js'; | ||
export * from './findVariables.js'; | ||
export * from './httpMethods.js'; | ||
@@ -12,2 +14,3 @@ export * from './httpStatusCodes.js'; | ||
export * from './prettyPrintJson.js'; | ||
export * from './replaceVariables.js'; | ||
export * from './schema-model.js'; | ||
@@ -14,0 +17,0 @@ export * from './ssrState.js'; |
@@ -0,4 +1,6 @@ | ||
export { concatenateUrlAndPath } from './concatenateUrlAndPath.js'; | ||
export { createHash } from './createHash.js'; | ||
export { deepMerge } from './deepMerge.js'; | ||
export { fetchSpecFromUrl } from './fetchSpecFromUrl.js'; | ||
export { findVariables } from './findVariables.js'; | ||
export { REQUEST_METHODS, getRequest } from './httpMethods.js'; | ||
@@ -12,4 +14,5 @@ export { httpStatusCodes } from './httpStatusCodes.js'; | ||
export { prettyPrintJson, replaceCircularDependencies } from './prettyPrintJson.js'; | ||
export { replaceVariables } from './replaceVariables.js'; | ||
export { schemaModel } from './schema-model.js'; | ||
export { defaultStateFactory, ssrState } from './ssrState.js'; | ||
export { camelToTitleWords } from './string.js'; |
@@ -22,2 +22,3 @@ import { type Request } from '../entities/workspace/spec/index.js'; | ||
uid: string; | ||
value?: string | undefined; | ||
description?: string | undefined; | ||
@@ -24,0 +25,0 @@ enum?: string[] | undefined; |
import type { ExternalDocumentation } from './entities/workspace/collection/index.js'; | ||
import type { Server } from './entities/workspace/server/index.js'; | ||
import type { RequestMethod } from './helpers/index.js'; | ||
@@ -190,3 +189,3 @@ import type { OpenAPIV2, OpenAPIV3, OpenAPIV3_1 } from '@scalar/openapi-parser'; | ||
'externalDocs'?: ExternalDocumentation; | ||
'servers'?: Server[]; | ||
'servers'?: OpenAPIV3.Document['servers'] | OpenAPIV3_1.Document['servers']; | ||
'components'?: OpenAPIV3.ComponentsObject | OpenAPIV3_1.ComponentsObject; | ||
@@ -193,0 +192,0 @@ 'webhooks'?: Webhooks; |
@@ -19,3 +19,3 @@ { | ||
], | ||
"version": "0.2.5", | ||
"version": "0.2.6", | ||
"engines": { | ||
@@ -22,0 +22,0 @@ "node": ">=18" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
218987
159
4752