Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New plugin property OpenApi.IOperation["x-samchon-accessor"]. #115

Merged
merged 1 commit into from
Dec 18, 2024

Conversation

samchon
Copy link
Owner

@samchon samchon commented Dec 18, 2024

New plugin properties OpenApi.IOperation["x-samchon-accessor"] and OpenApi.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:

Refactoring and Renaming:

New Features:

  • src/OpenApi.ts: Added new properties x-samchon-accessor and x-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:

Also `OpenApi.IOperation["x-samchon-controller"]` for OpenAPI generator and LLM application composer, indicating operation's function name and belonged controller.
@samchon samchon added documentation Improvements or additions to documentation enhancement New feature or request labels Dec 18, 2024
@samchon samchon self-assigned this Dec 18, 2024
Copy link
Owner Author

@samchon samchon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test OK

@samchon samchon merged commit 5548c64 into master Dec 18, 2024
3 checks passed
@samchon samchon deleted the feat/name branch December 18, 2024 06:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
No open projects
Status: Done
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant