Skip to content

Commit 56a3b51

Browse files
authored
Merge pull request #1383 from samchon/feat/accessor
feat(sdk/migrate): notate API function accessor on comment.
2 parents 392fb23 + 3f485d9 commit 56a3b51

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"private": true,
33
"name": "@nestia/station",
4-
"version": "8.0.5",
4+
"version": "8.0.6",
55
"description": "Nestia station",
66
"scripts": {
77
"build": "node deploy build",

packages/core/src/programmers/TypedRouteProgrammer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export namespace TypedRouteProgrammer {
1818
// VALIDATE TYPE
1919
if (props.context.options.llm)
2020
JsonMetadataFactory.analyze({
21-
method: "@nestia.core.TypedBody",
21+
method: "@nestia.core.TypedRoute",
2222
checker: props.context.checker,
2323
transformer: props.context.transformer,
2424
type: props.type,

packages/migrate/src/programmers/NestiaMigrateApiFunctionProgrammer.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ export namespace NestiaMigrateApiFunctionProgrammer {
130130
? comment.split("@param ").join("@param props.")
131131
: comment,
132132
`@path ${route.emendedPath}`,
133+
`@accessor api.functional.${route.accessor.join(".")}`,
133134
`@${config.author?.tag ?? "nestia"} ${config.author?.value ?? "Generated by Nestia - https://github.com/samchon/nestia"}`,
134135
].join("\n");
135136
};

packages/sdk/src/generates/internal/SdkHttpRouteProgrammer.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ export namespace SdkHttpRouteProgrammer {
101101
...(descriptionComments.length && tagComments.length ? [""] : []),
102102
`@controller ${route.controller.class.name}.${route.name}`,
103103
`@path ${route.method} ${route.path}`,
104+
`@accessor api.functional.${route.accessor.join(".")}`,
104105
`@nestia Generated by Nestia - https://github.com/samchon/nestia`,
105106
].join("\n");
106107
};

0 commit comments

Comments
 (0)