Add 'equals' property to various interfaces and functions for validation #195
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 introduces a new
equals
property across multiple namespaces and utilities to enforce stricter schema validation by disallowing superfluous properties. The changes span schema composers, application structures, and validation utilities, ensuring consistent handling of this new property throughout the codebase.Addition of
equals
property:Schema composers:
equals
property to schema composers likeChatGptSchemaComposer
,LlmSchemaV3Composer
, andLlmSchemaV3_1Composer
to specify whether superfluous properties should be disallowed during schema separation and validation. ([[1]](https://github.com/samchon/openapi/pull/195/files#diff-d0c4b1bc6bd6c1280622ba3db00bf102c54ccb57a60d124822ff0d592628d9cfR246)
,[[2]](https://github.com/samchon/openapi/pull/195/files#diff-02fa51db5bda226c48ccb28078266cc34a34d5dab1af1223bd8000ee688cd7b4R177)
,[[3]](https://github.com/samchon/openapi/pull/195/files#diff-77518819d0e39da5042e7d25b6345cea620bf8c2f3c181f2bee598b499334881R370)
)equals
property into schema validation logic within the composers to enforce stricter property checks when specified. ([[1]](https://github.com/samchon/openapi/pull/195/files#diff-d0c4b1bc6bd6c1280622ba3db00bf102c54ccb57a60d124822ff0d592628d9cfR301)
,[[2]](https://github.com/samchon/openapi/pull/195/files#diff-02fa51db5bda226c48ccb28078266cc34a34d5dab1af1223bd8000ee688cd7b4R196)
,[[3]](https://github.com/samchon/openapi/pull/195/files#diff-77518819d0e39da5042e7d25b6345cea620bf8c2f3c181f2bee598b499334881R425)
)Application structures:
equals
property toIHttpLlmApplication
andIMcpLlmApplication
structures to allow configuration of stricter validation rules at the application level. ([[1]](https://github.com/samchon/openapi/pull/195/files#diff-6e6bececd1bc7bc3c702e37136705a8f14fb4a04438d2cc56b49b8a9dad83e5dR99-R101)
,[[2]](https://github.com/samchon/openapi/pull/195/files#diff-140c0d5f926889bdec178ba6d2d9c80682ef1d6910aae39cd3a7996c39292c0cR62-R64)
)Validation utilities:
OpenApiValidator
and its internal utilities (OpenApiObjectValidator
,IOpenApiValidatorContext
) to support theequals
property. This includes logic to disallow additional properties whenequals
is set to true. ([[1]](https://github.com/samchon/openapi/pull/195/files#diff-fcb2482cc0ca0ebdef44a09f132db43fff83d986eaf169ab100506eabdf0caccR11)
,[[2]](https://github.com/samchon/openapi/pull/195/files#diff-fcb2482cc0ca0ebdef44a09f132db43fff83d986eaf169ab100506eabdf0caccR21-R29)
,[[3]](https://github.com/samchon/openapi/pull/195/files#diff-4b5f041317bfdfa1707715a6d72a19c9d1c0789a7ad8338d4de6fc5c89d5aa0cR16)
,[[4]](https://github.com/samchon/openapi/pull/195/files#diff-5ba1404ef6788345b2158c17e4b3abc9ac7fadaee65e1a39045ea52ad5f311c4R48-R76)
)