|
1 | | -// Ported from @seamapi/nextlove-sdk-generator lib/openapi/map-parent-to-children-resource.ts. |
2 | | -// Only the first two segments of x-fern-sdk-group-name are considered, so |
3 | | -// deeply nested namespaces (e.g. acs.encoders.simulate) are generated as |
4 | | -// standalone classes but never wired to a parent property. |
5 | | -// TODO: Wire deeply nested namespaces to a property on their parent class |
6 | | -// once generated output is allowed to change. Until then, do not "fix" |
7 | | -// this: the generated output must stay identical. |
8 | | -// TODO: Use blueprint.namespaces parent/child relationships once generated |
9 | | -// output is allowed to change. |
10 | | - |
11 | | -import { ignoredEndpointPaths } from '../endpoint-rules.js' |
| 1 | +// TEMPORARY: Verbatim port of @seamapi/nextlove-sdk-generator |
| 2 | +// lib/openapi/map-parent-to-children-resource.ts. This is a frozen |
| 3 | +// output-parity workaround: it exists only so the generated output stays |
| 4 | +// byte-identical to the previous generator. Do not review, refactor, or |
| 5 | +// improve it. Only the first two segments of x-fern-sdk-group-name are |
| 6 | +// considered, so deeply nested namespaces (e.g. acs.encoders.simulate) are |
| 7 | +// generated as standalone classes but never wired to a parent property. |
| 8 | +// TODO: Delete this file and use blueprint.namespaces parent/child |
| 9 | +// relationships once generated output is allowed to change, wiring deeply |
| 10 | +// nested namespaces to a property on their parent class at the same time. |
| 11 | + |
| 12 | +import { ignoredEndpointPaths } from 'lib/endpoint-rules.js' |
| 13 | + |
12 | 14 | import type { Route } from './types.js' |
13 | 15 |
|
14 | 16 | export const mapParentToChildResources = ( |
|
0 commit comments