Skip to content
New issue

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

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

Already on GitHub? # to your account

Add IJsonSchemaAttribute. #135

Merged
merged 2 commits into from
Feb 11, 2025
Merged

Add IJsonSchemaAttribute. #135

merged 2 commits into from
Feb 11, 2025

Conversation

samchon
Copy link
Owner

@samchon samchon commented Feb 11, 2025

This pull request includes several changes to the @samchon/openapi package, focusing on updating the version, improving the schema attributes, and modifying the build process. The most important changes include updating the package version, consolidating schema attributes into a single interface, and updating the build configuration.

Version update:

  • package.json: Updated the package version to 3.0.0-dev.20250211.

Schema attribute consolidation:

  • src/structures/IJsonSchemaAttribute.ts: Introduced a new IJsonSchemaAttribute interface to provide common attributes for JSON schema types.
  • src/OpenApi.ts: Replaced the __IAttribute interface with the IJsonSchemaAttribute type.
  • src/structures/IChatGptSchema.ts, src/structures/IGeminiSchema.ts, src/structures/ILlmSchemaV3.ts, src/structures/ILlmSchemaV3_1.ts: Updated to use the IJsonSchemaAttribute type instead of individual attribute interfaces. [1] [2] [3] [4]

Build configuration update:

These changes aim to streamline the schema attribute definitions and ensure consistency across different schema types, while also updating the package version and improving the build process.

@samchon samchon added documentation Improvements or additions to documentation enhancement New feature or request labels Feb 11, 2025
@samchon samchon self-assigned this Feb 11, 2025
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 8ef0d81 into v3.0 Feb 11, 2025
4 checks passed
@samchon samchon deleted the feat/attribute branch February 11, 2025 16:43
samchon added a commit that referenced this pull request Mar 1, 2025
* Add `IJsonSchemaAttribute`. (#135)

* Add `IJsonSchemaAttribute`.

* Publish as v2.5

* Enhance IJsonSchemaAttribute type with nested items. (#136)

* Add `IJsonSchemaAttribute`.

* Publish as v2.5

* Enhance `IJsonSchemaAttribute` type with nested items.

* Change rule of the `IHttpMigrateRoute.emendedPath` (#137)

* Add `IJsonSchemaAttribute`.

* Publish as v2.5

* Enhance `IJsonSchemaAttribute` type with nested items.

* Change rule of the `IHTtpMigrateRoute.emendedPath`

* Test whether `IHttpLlmApplication` covers ILlmApplication (#138)

* Add `IJsonSchemaAttribute`.

* Publish as v2.5

* Enhance `IJsonSchemaAttribute` type with nested items.

* Change rule of the `IHTtpMigrateRoute.emendedPath`

* Test whether `IHttpLlmApplication` covers `ILlmApplication`

* missing esm module build (#134)

* feat: build all module in esm

* feat: add rollup-plugin-auto-external

Adds rollup-plugin-auto-external to automatically exclude dependencies and
peerDependencies from the bundle to reduce bundle size and improve build
performance.

* New embedded function `IHttpLlmFunction.validate()`for validation feedback (#147)

* Developing internal validator

* Prepared testing program

* Only object discriminator is left

* Fiix HTTP application accessors

* Validator implementation completed

* Publish v3

---------

Co-authored-by: ryoppippi <1560508+ryoppippi@users.noreply.github.com>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant