OpenApi is a refined OpenAPI v3.2 specification that normalizes ambiguous
and redundant expressions from various OpenAPI versions (Swagger 2.0, OpenAPI
3.0, 3.1, 3.2). This unified format simplifies schema processing for typia
and @nestia/sdk.
Key simplifications:
Schema $ref references are unified to #/components/schemas/{name} format
Non-schema references (parameters, responses) are resolved inline
nullable is converted to { oneOf: [schema, { type: "null\" }] }
allOf compositions are merged into single schemas
Schema attributes are normalized across all versions
Use HttpLlm.application() from @typia/utils to convert
OpenApi.IDocument into IHttpLlmApplication for LLM function
calling.
Emended OpenAPI v3.2 specification.
OpenApiis a refined OpenAPI v3.2 specification that normalizes ambiguous and redundant expressions from various OpenAPI versions (Swagger 2.0, OpenAPI 3.0, 3.1, 3.2). This unified format simplifies schema processing fortypiaand@nestia/sdk.Key simplifications:
$refreferences are unified to#/components/schemas/{name}formatnullableis converted to{ oneOf: [schema, { type: "null\" }] }allOfcompositions are merged into single schemasUse
HttpLlm.application()from@typia/utilsto convertOpenApi.IDocumentinto IHttpLlmApplication for LLM function calling.Author
Jeongho Nam - https://github.com/samchon