Description
Good day @horiuchi at the moment im stuck when the dtsgenerator resolves common path parameters using v3.13.2 and also v3.15.0 (latest).
So when in open-api spec the endpoint says:
"parameters": [
{ "$ref": "#/components/parameters/languageCode" },
{ "$ref": "#/components/parameters/storeId" },
]
The generator will endup with:
export type $0 = ProductsRaw.Parameters.LanguageCode;
export type $1 = ProductsRaw.Parameters.StoreId;
While i expected the name of the referenced item as a key, so i would expect:
export type languageCode = ProductsRaw.Parameters.LanguageCode;
export type storeId = ProductsRaw.Parameters.StoreId;
Do you perhaps know what can be the rootcause? Because also in your test i noticed it is not resolving the name:
https://github.com/horiuchi/dtsgenerator/blob/master/test/simple_schema_test.ts#L1040-L1043
Background
Common Parameters for Various Paths. Different API paths may have common parameters, such as pagination parameters. You can define common parameters under parameters in the global components section and reference them elsewhere via $ref. https://swagger.io/docs/specification/describing-parameters/