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

Fix typia.llm.application() bug of vulnerable nesting. #1395

Merged
merged 1 commit into from
Nov 29, 2024

Conversation

samchon
Copy link
Owner

@samchon samchon commented Nov 29, 2024

This pull request includes various updates and improvements to the typia project, focusing on version updates, error handling enhancements, and test modifications. The most important changes are grouped by theme and listed below:

Version Updates:

  • Updated the version in package.json from 7.0.0-dev.20241128 to 7.0.0-dev.20241129.
  • Updated the dependency @samchon/openapi in package.json to ^2.0.0-dev.20241129-8.
  • Updated the version in packages/typescript-json/package.json from 7.0.0-dev.20241128 to 7.0.0-dev.20241129.
  • Updated the dependency typia in packages/typescript-json/package.json to 7.0.0-dev.20241129.

Error Handling Enhancements:

  • Added detailed error messages and handling in LlmApplicationProgrammer.ts to improve the debugging process. [1] [2]
  • Introduced TransformerError in LlmParametersProgrammer.ts and LlmSchemaProgrammer.ts for more descriptive error reporting. [1] [2] [3] [4] [5] [6]

Test Modifications:

  • Removed outdated test cases in test-error/src/llm/llm.application.bigint.ts and test-error/src/llm/llm.schema.gemini.ts. [1] [2]
  • Added new test cases for various LLM schemas and applications in test-error/src/llm/llm.chatgpt.additionalProperties.ts, test-error/src/llm/llm.gemini.additionalProperties.ts, test-error/src/llm/llm.gemini.oneOf.ts, test-error/src/llm/llm.schema.bigint.ts, and test-error/src/llm/llm.schema.tuple.ts. [1] [2] [3] [4] [5]

Schema Updates:

  • Updated the LLM application schema in test/generate/output/generate_llm.ts to ensure additionalProperties is set to false and removed redundant nested properties. [1] [2] [3] [4] [5] [6] [7] [8] [9]
  • Simplified the structure of ArrayAny.json in test/schemas/llm.application/3.0 by removing unnecessary nested properties. [1] [2]

@samchon samchon added the enhancement New feature or request label Nov 29, 2024
@samchon samchon self-assigned this Nov 29, 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.

OK, test passed.

@samchon samchon merged commit 0afb0cf into v7.0 Nov 29, 2024
10 checks passed
Copy link

pkg-pr-new bot commented Nov 29, 2024

Open in Stackblitz

npm i https://pkg.pr.new/typia@1395

commit: 4a2d34d

@samchon samchon deleted the feat/llm.application branch November 29, 2024 12:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant