@kubb/ast 5.0.0-alpha.12 → 5.0.0-alpha.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { t as __name } from "./chunk--u3MIqq1.js";
2
- import { C as createSchema, E as RootNode, J as SchemaNode, O as OperationNode, P as ParameterNode, S as createRoot, Y as SchemaNodeByType, _ as createObjectBindingParameter, a as transform, at as FunctionParameterNode, b as createProperty, c as buildRefMap, dt as httpMethods, ft as mediaTypes, g as createFunctionParameters, h as createFunctionParameter, i as collect, k as ResponseNode, l as refMapToObject, mt as schemaTypes, nt as PropertyNode, o as walk, ot as FunctionParametersNode, p as definePrinter, pt as nodeKinds, rt as FunctionNode, st as ObjectBindingParameterNode, u as resolveRef, v as createOperation, x as createResponse, y as createParameter } from "./visitor-C73H2CCg.js";
2
+ import { C as createSchema, E as RootNode, J as SchemaNode, O as OperationNode, P as ParameterNode, S as createRoot, Y as SchemaNodeByType, _ as createObjectBindingParameter, a as transform, at as FunctionParameterNode, b as createProperty, c as buildRefMap, dt as httpMethods, ft as mediaTypes, g as createFunctionParameters, h as createFunctionParameter, i as collect, k as ResponseNode, l as refMapToObject, mt as schemaTypes, nt as PropertyNode, o as walk, ot as FunctionParametersNode, p as definePrinter, pt as nodeKinds, rt as FunctionNode, st as ObjectBindingParameterNode, u as resolveRef, v as createOperation, x as createResponse, y as createParameter } from "./visitor-D68E3x_d.js";
3
3
 
4
4
  //#region src/functionPrinter.d.ts
5
5
  /**
package/dist/types.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { $ as TimeSchemaNode, A as HttpStatusCode, B as EnumValueNode, D as HttpMethod, E as RootNode, F as ArraySchemaNode, G as RefSchemaNode, H as NumberSchemaNode, I as ComplexSchemaType, J as SchemaNode, K as ScalarSchemaNode, L as DateSchemaNode, M as StatusCode, N as ParameterLocation, O as OperationNode, P as ParameterNode, Q as StringSchemaNode, R as DatetimeSchemaNode, T as RootMeta, U as ObjectSchemaNode, V as IntersectionSchemaNode, W as PrimitiveSchemaType, X as SchemaType, Y as SchemaNodeByType, Z as SpecialSchemaType, at as FunctionParameterNode, ct as BaseNode, d as Printer, et as UnionSchemaNode, f as PrinterFactoryOptions, it as FunctionNodeType, j as MediaType, k as ResponseNode, lt as NodeKind, m as DistributiveOmit, n as CollectVisitor, nt as PropertyNode, ot as FunctionParametersNode, q as ScalarSchemaType, r as Visitor, rt as FunctionNode, s as RefMap, st as ObjectBindingParameterNode, t as AsyncVisitor, tt as UrlSchemaNode, ut as VisitorDepth, w as Node, z as EnumSchemaNode } from "./visitor-C73H2CCg.js";
1
+ import { $ as TimeSchemaNode, A as HttpStatusCode, B as EnumValueNode, D as HttpMethod, E as RootNode, F as ArraySchemaNode, G as RefSchemaNode, H as NumberSchemaNode, I as ComplexSchemaType, J as SchemaNode, K as ScalarSchemaNode, L as DateSchemaNode, M as StatusCode, N as ParameterLocation, O as OperationNode, P as ParameterNode, Q as StringSchemaNode, R as DatetimeSchemaNode, T as RootMeta, U as ObjectSchemaNode, V as IntersectionSchemaNode, W as PrimitiveSchemaType, X as SchemaType, Y as SchemaNodeByType, Z as SpecialSchemaType, at as FunctionParameterNode, ct as BaseNode, d as Printer, et as UnionSchemaNode, f as PrinterFactoryOptions, it as FunctionNodeType, j as MediaType, k as ResponseNode, lt as NodeKind, m as DistributiveOmit, n as CollectVisitor, nt as PropertyNode, ot as FunctionParametersNode, q as ScalarSchemaType, r as Visitor, rt as FunctionNode, s as RefMap, st as ObjectBindingParameterNode, t as AsyncVisitor, tt as UrlSchemaNode, ut as VisitorDepth, w as Node, z as EnumSchemaNode } from "./visitor-D68E3x_d.js";
2
2
  export { type ArraySchemaNode, type AsyncVisitor, type BaseNode, type CollectVisitor, type ComplexSchemaType, type DateSchemaNode, type DatetimeSchemaNode, type DistributiveOmit, type EnumSchemaNode, type EnumValueNode, type FunctionNode, type FunctionNodeType, type FunctionParameterNode, type FunctionParametersNode, type HttpMethod, type HttpStatusCode, type IntersectionSchemaNode, type MediaType, type Node, type NodeKind, type NumberSchemaNode, type ObjectBindingParameterNode, type ObjectSchemaNode, type OperationNode, type ParameterLocation, type ParameterNode, type PrimitiveSchemaType, type Printer, type PrinterFactoryOptions, type PropertyNode, type RefMap, type RefSchemaNode, type ResponseNode, type RootMeta, type RootNode, type ScalarSchemaNode, type ScalarSchemaType, type SchemaNode, type SchemaNodeByType, type SchemaType, type SpecialSchemaType, type StatusCode, type StringSchemaNode, type TimeSchemaNode, type UnionSchemaNode, type UrlSchemaNode, type Visitor, type VisitorDepth };
@@ -529,6 +529,10 @@ type OperationNode = BaseNode & {
529
529
  * Request body for OAS operations. Bundles the schema with optional keys to exclude.
530
530
  */
531
531
  requestBody?: {
532
+ /**
533
+ * Human-readable description of the request body (maps to `requestBody.description` in OAS).
534
+ */
535
+ description?: string;
532
536
  /**
533
537
  * The request body schema. For OAS, this is the schema of the first content entry.
534
538
  */
@@ -913,4 +917,4 @@ declare function transform(node: Node, visitor: Visitor, options?: VisitorOption
913
917
  declare function collect<T>(node: Node, visitor: CollectVisitor<T>, options?: VisitorOptions): Array<T>;
914
918
  //#endregion
915
919
  export { TimeSchemaNode as $, HttpStatusCode as A, EnumValueNode as B, createSchema as C, HttpMethod as D, RootNode as E, ArraySchemaNode as F, RefSchemaNode as G, NumberSchemaNode as H, ComplexSchemaType as I, SchemaNode as J, ScalarSchemaNode as K, DateSchemaNode as L, StatusCode as M, ParameterLocation as N, OperationNode as O, ParameterNode as P, StringSchemaNode as Q, DatetimeSchemaNode as R, createRoot as S, RootMeta as T, ObjectSchemaNode as U, IntersectionSchemaNode as V, PrimitiveSchemaType as W, SchemaType as X, SchemaNodeByType as Y, SpecialSchemaType as Z, createObjectBindingParameter as _, transform as a, FunctionParameterNode as at, createProperty as b, buildRefMap as c, BaseNode as ct, Printer as d, httpMethods as dt, UnionSchemaNode as et, PrinterFactoryOptions as f, mediaTypes as ft, createFunctionParameters as g, createFunctionParameter as h, collect as i, FunctionNodeType as it, MediaType as j, ResponseNode as k, refMapToObject as l, NodeKind as lt, DistributiveOmit as m, schemaTypes as mt, CollectVisitor as n, PropertyNode as nt, walk as o, FunctionParametersNode as ot, definePrinter as p, nodeKinds as pt, ScalarSchemaType as q, Visitor as r, FunctionNode as rt, RefMap as s, ObjectBindingParameterNode as st, AsyncVisitor as t, UrlSchemaNode as tt, resolveRef as u, VisitorDepth as ut, createOperation as v, Node as w, createResponse as x, createParameter as y, EnumSchemaNode as z };
916
- //# sourceMappingURL=visitor-C73H2CCg.d.ts.map
920
+ //# sourceMappingURL=visitor-D68E3x_d.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubb/ast",
3
- "version": "5.0.0-alpha.12",
3
+ "version": "5.0.0-alpha.13",
4
4
  "description": "Spec-agnostic AST layer for Kubb. Defines nodes, visitor pattern, and factory functions used across codegen plugins.",
5
5
  "keywords": [
6
6
  "kubb",
@@ -29,6 +29,10 @@ export type OperationNode = BaseNode & {
29
29
  * Request body for OAS operations. Bundles the schema with optional keys to exclude.
30
30
  */
31
31
  requestBody?: {
32
+ /**
33
+ * Human-readable description of the request body (maps to `requestBody.description` in OAS).
34
+ */
35
+ description?: string
32
36
  /**
33
37
  * The request body schema. For OAS, this is the schema of the first content entry.
34
38
  */