@kubb/ast 5.17.0 → 5.17.1

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.cts CHANGED
@@ -1015,7 +1015,7 @@ type ContentNode = BaseNode & {
1015
1015
  */
1016
1016
  kind: 'Content';
1017
1017
  /**
1018
- * The content type for this entry (e.g. `'application/json'`).
1018
+ * The content type for this entry (e.g. `'application/json'`), or `''` for a response without a body.
1019
1019
  */
1020
1020
  contentType: string;
1021
1021
  /**
@@ -1136,10 +1136,11 @@ type ResponseNode = BaseNode & {
1136
1136
  /**
1137
1137
  * All available content type entries for this response.
1138
1138
  *
1139
- * When the adapter `contentType` option is set, this array contains exactly one entry for that
1140
- * content type. Otherwise it contains one entry per content type declared in the spec, so that
1141
- * plugins can generate a union of response types (e.g. `application/json` and `application/xml`).
1142
- * Body-less responses keep a single entry whose `schema` is the empty/`void` placeholder.
1139
+ * For a response that declares content, the array holds exactly one entry for the adapter
1140
+ * `contentType` option when it is set. Otherwise it holds one entry per content type declared in
1141
+ * the spec, so that plugins can generate a union of response types (e.g. `application/json` and
1142
+ * `application/xml`). A body-less response always keeps a single entry whose `contentType` is `''`
1143
+ * and whose `schema` is the empty/`void` placeholder, even when the option is set.
1143
1144
  *
1144
1145
  * @example
1145
1146
  * ```ts
package/dist/index.d.ts CHANGED
@@ -1015,7 +1015,7 @@ type ContentNode = BaseNode & {
1015
1015
  */
1016
1016
  kind: 'Content';
1017
1017
  /**
1018
- * The content type for this entry (e.g. `'application/json'`).
1018
+ * The content type for this entry (e.g. `'application/json'`), or `''` for a response without a body.
1019
1019
  */
1020
1020
  contentType: string;
1021
1021
  /**
@@ -1136,10 +1136,11 @@ type ResponseNode = BaseNode & {
1136
1136
  /**
1137
1137
  * All available content type entries for this response.
1138
1138
  *
1139
- * When the adapter `contentType` option is set, this array contains exactly one entry for that
1140
- * content type. Otherwise it contains one entry per content type declared in the spec, so that
1141
- * plugins can generate a union of response types (e.g. `application/json` and `application/xml`).
1142
- * Body-less responses keep a single entry whose `schema` is the empty/`void` placeholder.
1139
+ * For a response that declares content, the array holds exactly one entry for the adapter
1140
+ * `contentType` option when it is set. Otherwise it holds one entry per content type declared in
1141
+ * the spec, so that plugins can generate a union of response types (e.g. `application/json` and
1142
+ * `application/xml`). A body-less response always keeps a single entry whose `contentType` is `''`
1143
+ * and whose `schema` is the empty/`void` placeholder, even when the option is set.
1143
1144
  *
1144
1145
  * @example
1145
1146
  * ```ts