-
-
Notifications
You must be signed in to change notification settings - Fork 186
Prepare example codes for nextra v4 mdx compiling #1558
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds a comprehensive set of example codes to demonstrate the usage of the typia library across JSON schema validations, functional utilities, and LLM-based applications.
- Introduces new examples for JSON schema validations (assertParse, createAssertStringify, etc.).
- Adds functional examples demonstrating function validation and assertion.
- Provides LLM application examples including namespace, application, and service implementations.
Reviewed Changes
Copilot reviewed 68 out of 69 changed files in this pull request and generated 3 comments.
Show a summary per file
File | Description |
---|---|
examples/src/llm/namespace.ts | Defines an LLM application using a controller interface with documentation. |
examples/src/llm/application.ts | Implements a basic LLM application example with ChatGPT. |
examples/src/llm/application-separate.ts | Demonstrates schema separation for a Claude-based application. |
examples/src/llm/IMember.ts | Provides IMember interface with typia tag validations. |
examples/src/llm/IBbsArticle.ts | Defines article interfaces for a bulletin board system, with comments. |
examples/src/llm/BbsArticleService.ts | Implements a service to handle article CRUD operations. |
examples/src/json/schemas.ts | Provides a JSON schema example for member objects. |
examples/src/json/schemas-type-tags.ts | Shows usage of custom type tags with placeholder messages. |
examples/src/json/schemas-comment-tags.ts | Demonstrates JSON schema definitions using comment tags. |
examples/src/json/isStringify.ts | Example of converting an object to a JSON string using typia. |
examples/src/json/createIsParse.ts | Provides an example of creating a custom isParse function. |
examples/src/json/createAssertStringify.ts | Demonstrates assertion and stringification for department objects. |
examples/src/json/assertParse.ts | Example of asserting JSON parse results for member objects. |
examples/src/functional/validateFunction.ts | Validates a given function using typia's functional utilities. |
examples/src/functional/isFunction.ts | Checks if a provided function is valid using typia. |
examples/src/functional/assertFunction.ts | Asserts function correctness with typia utility. |
Files not reviewed (1)
- examples/package.json: Language not supported
commit: |
New and removed dependencies detected. Learn more about Socket for GitHub ↗︎
|
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This pull request introduces a set of new example code files and updates to demonstrate the usage of the
typia
library. The changes include adding new JSON schema examples, functional examples, and LLM (Large Language Models) application examples. Below are the most important changes grouped by theme:JSON Schema Examples:
assertParse
,createAssertStringify
,createIsParse
,isStringify
,schemas-comment-tags
,schemas-type-tags
, andschemas
examples to demonstrate various JSON schema functionalities usingtypia
(examples/src/json/assertParse.ts
[1]examples/src/json/createAssertStringify.ts
[2]examples/src/json/createIsParse.ts
[3]examples/src/json/isStringify.ts
[4]examples/src/json/schemas-comment-tags.ts
[5]examples/src/json/schemas-type-tags.ts
[6]examples/src/json/schemas.ts
[7]).Functional Examples:
assertFunction
,isFunction
, andvalidateFunction
examples to demonstrate functional programming with type assertions and validations usingtypia
(examples/src/functional/assertFunction.ts
[1]examples/src/functional/isFunction.ts
[2]examples/src/functional/validateFunction.ts
[3]).LLM Application Examples:
BbsArticleService
,IBbsArticle
,IMember
,application-separate
,application
, andnamespace
examples to demonstrate the integration oftypia
with LLM applications like ChatGPT and Claude (examples/src/llm/BbsArticleService.ts
[1]examples/src/llm/IBbsArticle.ts
[2]examples/src/llm/IMember.ts
[3]examples/src/llm/application-separate.ts
[4]examples/src/llm/application.ts
[5]examples/src/llm/namespace.ts
[6]).Configuration:
package.json
file in theexamples
directory to manage dependencies and scripts for building and running the examples (examples/package.json
).