MCPcopy Create free account
hub / github.com/Effect-TS/effect / makeDeepMutable

Function makeDeepMutable

packages/tools/openapi-generator/src/ParsedOperation.ts:235–279  ·  view source on GitHub ↗
(options: {
  readonly id: string
  readonly method: OpenAPISpecMethodName
  readonly pathIds: Array<string>
  readonly pathTemplate: string
  readonly description: string | undefined
})

Source from the content-addressed store, hash-verified

233 * @since 4.0.0
234 */
235export const makeDeepMutable = (options: {
236 readonly id: string
237 readonly method: OpenAPISpecMethodName
238 readonly pathIds: Array<string>
239 readonly pathTemplate: string
240 readonly description: string | undefined
241}): Types.DeepMutable<ParsedOperation> => ({
242 ...options,
243 operationId: undefined,
244 path: "",
245 tags: [],
246 metadata: {
247 summary: undefined,
248 description: options.description,
249 deprecated: false,
250 externalDocs: undefined
251 },
252 parameters: {
253 path: [],
254 query: [],
255 header: [],
256 cookie: []
257 },
258 requestBody: undefined,
259 responses: [],
260 defaultResponse: undefined,
261 effectiveSecurity: [],
262 urlParams: [],
263 headers: [],
264 cookies: [],
265 payloadFormData: false,
266 payloadFormUrlEncoded: false,
267 pathSchema: undefined,
268 querySchema: undefined,
269 querySchemaOptional: true,
270 headersSchema: undefined,
271 headersSchemaOptional: true,
272 requestBodyRepresentable: [],
273 successSchemas: new Map(),
274 errorSchemas: new Map(),
275 voidSchemas: new Set(),
276 paramsOptional: true,
277 sseSchemaMode: "data",
278 binaryResponse: false
279})

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected