You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/** * This file was auto-generated by openapi-typescript. * Do not make direct changes to the file. */exporttypepaths=Record<string,never>;exporttypewebhooks=Record<string,never>;exportinterfacecomponents{schemas: never;responses: never;parameters: {readonlyperPageParam: number;};requestBodies: never;headers: never;pathItems: never;}exporttype$defs=Record<string,never>;exporttypeoperations=Record<string,never>;
This is related to the way that $refs are handled in a very naive way. This PR is a step towards aligning the meaning of the JSON Pointer with the intended referenced into the generated types.
I'll ensure the test validate that the parameter's name is used, and not its pointed-to location within the OpenAPI document.
openapi-typescript version
7.4.4
Node.js version
22.13.1
OS + version
macOS
Description
I expected the generated types to use the
name
of the parameter, but they don't. Is this intended?Reproduction
packages/domain/specs/unsplash.json
:Expected result
Result:
packages/domain/src/gen/unsplash.ts
:I was hoping for this instead:
Required
npx @redocly/cli@latest lint
)Extra
The text was updated successfully, but these errors were encountered: