Fix typia.llm.schema<T, Model>()
not to properly assign $defs
.
#1542
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.
This pull request includes several updates to the
typia
package, mainly focusing on schema transformation and test generation. The most important changes include updating the package version, modifying the schema transformation logic, and updating test generation files to reflect the new schema structure.Package Updates:
package.json
: Updated the package version from8.0.2
to8.0.3
.Schema Transformation:
src/transformers/features/llm/LlmSchemaTransformer.ts
: Modified theLlmSchemaTransformer
to useprops
instead of$defs
and added type literal and property signatures for better schema handling. [1] [2]Test Generation:
test/generate/input/generate_llm.ts
: Updated the schema generation to include an additional parameter{ reference: true }
.test/generate/output/generate_llm.ts
: Refactored the schema generation logic to useprops
with optional$defs
and updated the schema definitions forICompany
,IDepartment
, andIEmployee
. [1] [2] [3]