New plugin property OpenApi.IOperation["x-samchon-accessor"]
.
#115
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New plugin properties
OpenApi.IOperation["x-samchon-accessor"]
andOpenApi.IOperation["x-samchon-controller"]
for OpenAPI generator and LLM application composer, indicating operation's function name and belonged controller.Also prohibited non-variable function name assignment.
This change would be adjusted to below dependent libraries:
typia
@nestia/core
@nestia/editor
@nestia/migrate
This pull request includes several changes to the
@samchon/openapi
package, focusing on renaming and refactoring, as well as adding new features to improve the functionality of the package. The most important changes include updating dependencies, renaming files and namespaces, and adding new properties to the OpenAPI document.Version Update:
package.json
: Updated the version from2.2.1
to2.3.0
.Refactoring and Renaming:
src/HttpMigration.ts
: RenamedMigrateConverter
toHttpMigrateApplicationComposer
and updated theapplication
method to useHttpMigrateApplicationComposer.compose
. [1] [2]src/composers/migrate/HttpMigrateApplicationComposer.ts
: Renamed fromMigrateConverter.ts
and updated the namespace and method names accordingly. [1] [2] [3]src/composers/migrate/HttpMigrateRouteAccessor.ts
: Renamed fromMigrateRouteAccessor.ts
and updated the namespace and method names accordingly. [1] [2] [3] [4]src/composers/migrate/HttpMigrateRouteComposer.ts
: Renamed fromHttpMigrateApplicationComposer.ts
and updated the namespace and method names accordingly.New Features:
src/OpenApi.ts
: Added new propertiesx-samchon-accessor
andx-samchon-controller
to the OpenAPI document to enhance operation accessor and controller functionality.src/composers/HttpLlmApplicationComposer.ts
: Added validation for function names to ensure they are composed of valid characters and do not start with a number. [1] [2] [3]Testing:
test/features/migrate/test_http_migrate_route_accessor.ts
: Added a new test to validate the accessor functionality for HTTP migration routes.test/features/migrate/test_http_migrate_route_comment.ts
: Updated comments to use references for better clarity and security annotation.