<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>APIMatic Changelog</title>
    <link>https://docs.apimatic.io/v4/changelog/</link>
    <description>Stay up to date with the latest APIMatic product updates, new features, platform improvements, bug fixes, and documentation tooling changes.</description>
    <lastBuildDate>Tue, 10 Nov 2026 00:00:00 GMT</lastBuildDate>
    <docs>https://validator.w3.org/feed/docs/rss2.html</docs>
    <language>en</language>
    <copyright>Copyright © 2026 APIMatic.</copyright>
    <atom:link href="https://docs.apimatic.io/changelog/rss.xml" rel="self" type="application/rss+xml"/>
    <item>
      <title>Adding Schema Constraint Validation in TypeScript v4 SDKs</title>
      <link>https://docs.apimatic.io/v4/changelog/#added-schema-constraints-in-typescript-v4</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/added-schema-constraints-in-typescript-v4</guid>
      <pubDate>Tue, 10 Nov 2026 00:00:00 GMT</pubDate>
      <description>Generated TypeScript v4 models now carry OpenAPI schema constraints on their schemas, with a validate method that checks a request or any other value before you send it and names every field that fails.</description>
      <content:encoded><![CDATA[<p>Generated TypeScript v4 SDKs now express your OpenAPI schema constraints on the generated model schemas, so you can validate a request before sending it with one call. The SDK&#39;s own operations keep sending and accepting values as before, so validation is yours to run when you want it.</p>
<h2>Details</h2>
<h3>Schema constraints on the model&#39;s schema</h3>
<p>Constraints defined in your OpenAPI schemas, such as string lengths, patterns, numeric bounds, array rules, object property counts, and string formats, are now carried onto the generated model&#39;s schema. A model whose specification declares constraints exports a schema that enforces them, under the model&#39;s plain name from the package root. A model that nests a constrained one carries the constraints too, and reports a failing field under its full path. <code>oneOf</code> and <code>anyOf</code> unions carry them as well: the union&#39;s schema validates each arm against that arm&#39;s own constraints.</p>
<p>The constraints are opt-in: the SDK carries them for you, and you decide when to run validation. An operation still sends a request as you built it and accepts a response as the service returned it, so a service that is ahead of its specification is never refused, and you are never blocked from sending a value the service would take.</p>
<h3>Validating a request</h3>
<p>Every schema now has a <code>validate</code> method. Pass it a request body, a model, or any other value typed by that schema, and it runs the schema&#39;s rules without converting the value and without throwing. It returns <code>{ success: true }</code> or <code>{ success: false, message }</code>, and the message lists every failing field with its reason, so you can branch on the outcome before the request leaves. A check never runs on an omitted optional field, and a missing required field is reported as the same structural failure it has always been.</p>
<p>This feature is available in the TypeScript v4 SDK. Generate it with version 2.x of the APIMatic CLI:</p>
<pre><code class="language-bash">apimatic sdk generate --language=typescript
</code></pre>
<p>For the full set of flags and options, see the <a href="https://docs.apimatic.io/v4/apimatic-cli/cli-reference#sdk-generate">APIMatic CLI documentation</a>.</p>
]]></content:encoded>
      <category>New Feature</category>
      <category>SDKs</category>
      <category>TypeScript</category>
    </item>
    <item>
      <title>Preserving Additional Properties in TypeScript v4 SDKs</title>
      <link>https://docs.apimatic.io/v4/changelog/#added-additional-properties-in-typescript-v4</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/added-additional-properties-in-typescript-v4</guid>
      <pubDate>Thu, 05 Nov 2026 00:00:00 GMT</pubDate>
      <description>TypeScript v4 models now keep the fields the specification does not name in a typed additionalProperties record, validated on the way in and sent back on the way out.</description>
      <content:encoded><![CDATA[<p>TypeScript v4 SDKs now keep the fields your specification does not name. Every open object model carries an optional <code>additionalProperties</code> record, so an extra field in a response has a typed place to be read, and you can send fields of your own that the specification does not declare.</p>
<h2>Details</h2>
<p>Every open object model gets one optional field, <code>additionalProperties?: Record&lt;string, T&gt;</code>. <code>T</code> is <code>JsonValue</code>, exported from the package root, when the specification gives no value schema, and the declared type otherwise. A schema that sets <code>additionalProperties: false</code> gets no field, and an unknown key on it still passes through, so the SDK never rejects a payload for a key it does not know.</p>
<p>The field is present only when the wire carried an extra, and its keys are wire names. Every value is validated against <code>T</code> in both directions, and what you put in the record is sent beside the declared fields.</p>
<p>The result is forward compatibility. When the API adds a field before you regenerate the SDK, it arrives in <code>additionalProperties</code> instead of being dropped, so you can read it right away and switch to the typed property once you regenerate. The same record lets you send a field the API accepts but the specification does not declare yet.</p>
<h2>Usage Example</h2>
<p><strong>An open schema</strong> gives a record of <code>JsonValue</code>. An absent <code>additionalProperties</code> means the same as <code>true</code>.</p>
<pre><code class="language-yaml">Card:
  type: object
  description: A card payment method.
  additionalProperties: true
  required: [last4, brand]
  properties:
    last4:
      description: Last four digits of the card number.
      type: string
    brand:
      description: Card network, for example `visa`.
      type: string
</code></pre>
<pre><code class="language-typescript">/** A card payment method. */
export type Card = {
  /** Last four digits of the card number. */
  last4: string;
  /** Card network, for example `visa`. */
  brand: string;
  /** Properties the service sent or accepts beyond those declared. */
  additionalProperties?: Record&lt;string, JsonValue&gt;;
};
</code></pre>
<p><strong>A schema whose <code>additionalProperties</code> is a model</strong> gives a record of that model, and each extra is decoded and encoded through the model&#39;s schema. The keyword&#39;s <code>description</code> becomes the field&#39;s doc comment.</p>
<pre><code class="language-yaml">Metadata:
  type: object
  description: Arbitrary metadata attached to a payment.
  additionalProperties:
    description: Further nested entries, keyed by name.
    $ref: &quot;#/components/schemas/MetadataNested&quot;
  properties:
    source:
      description: What produced the payment.
      type: string
    nested:
      $ref: &quot;#/components/schemas/MetadataNested&quot;
</code></pre>
<pre><code class="language-typescript">/** Arbitrary metadata attached to a payment. */
export type Metadata = {
  /** What produced the payment. */
  source?: string;
  /** A nested metadata entry. */
  nested?: MetadataNested;
  /** Further nested entries, keyed by name. */
  additionalProperties?: Record&lt;string, MetadataNested&gt;;
};
</code></pre>
<p>Read an extra with <code>card.additionalProperties?.issuerCountry</code>, and send one by putting it in the record.</p>
<p>This feature is available in the TypeScript v4 SDK. Generate it with version 2.x of the APIMatic CLI:</p>
<pre><code class="language-bash">apimatic sdk generate --language=typescript
</code></pre>
<p>For the full set of flags and options, see the <a href="https://docs.apimatic.io/v4/apimatic-cli/cli-reference#sdk-generate">APIMatic CLI documentation</a>.</p>
]]></content:encoded>
      <category>New Feature</category>
      <category>SDKs</category>
      <category>TypeScript</category>
    </item>
    <item>
      <title>Customize v4 SDKs and Keep Your Changes When You Regenerate</title>
      <link>https://docs.apimatic.io/v4/changelog/#custom-code-in-v4-sdks</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/custom-code-in-v4-sdks</guid>
      <pubDate>Tue, 03 Nov 2026 00:00:00 GMT</pubDate>
      <description>Change any file in a C#, Python or TypeScript v4 SDK; apimatic sdk generate merges your changes into every new generation.</description>
      <content:encoded><![CDATA[<p>You can now change any file in a generated C#, Python or TypeScript SDK, or add files of your own, and keep those changes every time you regenerate it. The APIMatic CLI merges each new generation into your version of the SDK, file by file, with git&#39;s three-way merge.</p>
<p><strong>Start with <code>--git-init</code></strong></p>
<pre><code class="language-bash">apimatic sdk generate --language=typescript --git-init
</code></pre>
<p><code>--git-init</code> makes the SDK directory a git repository of its own, where the CLI keeps a snapshot of each generation. It needs git 2.38 or later.</p>
<p><strong>Customize, then regenerate</strong></p>
<p>Edit generated files, add your own, or add dependencies. Then run the same command, without <code>--git-init</code>, whenever your API definition changes. The CLI lists the files it merged with your changes and the ones it kept as yours.</p>
<p><strong>Conflicts are listed before anything is written</strong></p>
<p>When your changes and the generator&#39;s overlap, the CLI lists the files and asks what to do: resolve them yourself, use the generator&#39;s changes, use yours, or cancel. <code>--force</code> uses the generator&#39;s changes without asking, for CI.</p>
<p><strong>Shared with your team</strong></p>
<p>A pre-push hook sends the snapshots along with your branch, so a teammate&#39;s clone merges against the same generation.</p>
<p>This replaces the change-tracking flow of APIMatic CLI v1 (<code>--track-changes</code> and <code>sdk save-changes</code>). <code>sdk generate</code> no longer takes <code>--zip</code> or <code>--api-version</code>, and neither <code>sdk generate</code> nor <code>sdk publish</code> takes <code>--codegen-version</code>, because v4 is the only code generator.</p>
<p>For the full guide, see <a href="https://docs.apimatic.io/v4/generate-sdks/customize-sdks">Customize SDKs</a>. For the full set of flags and options, see the <a href="https://docs.apimatic.io/v4/apimatic-cli/cli-reference#sdk-generate">CLI Reference</a>.</p>
]]></content:encoded>
      <category>New Feature</category>
      <category>SDKs</category>
      <category>APIMatic CLI</category>
      <category>C#</category>
      <category>Python</category>
      <category>TypeScript</category>
    </item>
    <item>
      <title>OpenAPI Rules That Break Import or Code Generation Now Report Blocking</title>
      <link>https://docs.apimatic.io/v4/changelog/#openapi-rules-that-break-import-or-code-generation-now-report-blocking</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/openapi-rules-that-break-import-or-code-generation-now-report-blocking</guid>
      <pubDate>Thu, 29 Oct 2026 00:00:00 GMT</pubDate>
      <description>26 OpenAPI 3.x validation and linting rules that flag problems APIMatic can't import or generate code from now report Blocking. One rule is now on by default, one is off by default, and one new rule covers the not keyword.</description>
      <content:encoded><![CDATA[<p>We&#39;ve raised 26 OpenAPI 3.x rules to <strong>Blocking</strong>. Each one flags a problem that is certain to make APIMatic&#39;s import or code generation fail. Previously, these rules reported Error or Warning, which made those problems look less serious than they are. We also turned one rule on by default, turned one off, and added one new rule.</p>
<blockquote>
<p><strong>Behavior change</strong></p>
<p>Three of these rules used to report a Warning, which didn&#39;t fail validation. They now report Blocking, so a definition that passed validation with warnings can now fail. A Blocking message also sets the validation score to 0. If you validate in CI, for example with the <a href="https://docs.apimatic.io/v4/define-validate/github-app/overview">APIMatic OpenAPI Linter</a> GitHub App, check whether your definitions trigger any of the rules below.</p>
</blockquote>
<h2>What changed</h2>
<p>These rules now report Blocking:</p>
<table>
<thead>
<tr>
<th>Rule</th>
<th>Was</th>
</tr>
</thead>
<tbody><tr>
<td><code>OPENAPI3APIMATIC_L108</code> <code>required-server-url</code></td>
<td>Error</td>
</tr>
<tr>
<td><code>OPENAPI3APIMATIC_L693</code> <code>at-least-one-item-in-schema-enum-list</code></td>
<td>Error</td>
</tr>
<tr>
<td><code>OPENAPI3APIMATIC_L699</code> <code>non-primitive-any-of-schemas-in-polymorphism</code></td>
<td>Error</td>
</tr>
<tr>
<td><code>OPENAPI3APIMATIC_L700</code> <code>non-primitive-one-of-schemas-in-polymorphism</code></td>
<td>Error</td>
</tr>
<tr>
<td><code>OPENAPI3CODEGEN_L099</code>–<code>L102</code>, <code>L138</code>, <code>L174</code>, <code>L205</code>–<code>L207</code>, <code>L585</code>, <code>L624</code>, <code>L625</code>: names that exceed the maximum allowed length</td>
<td>Error</td>
</tr>
<tr>
<td><code>OPENAPI3STANDARDS_L150</code> <code>at-least-one-item-in-schema-enum-list</code></td>
<td>Warning</td>
</tr>
<tr>
<td><code>OPENAPI3STANDARDS_L270</code> <code>use-registered-http-security-scheme-value</code></td>
<td>Warning</td>
</tr>
<tr>
<td><code>OPENAPI3STANDARDS_V025</code> <code>required-server-url</code></td>
<td>Error</td>
</tr>
<tr>
<td><code>OPENAPI3STANDARDS_V036</code> <code>pre-defined-path-parameter-for-path-url-template-expression</code></td>
<td>Error</td>
</tr>
<tr>
<td><code>OPENAPI3STANDARDS_V216</code> <code>valid-callback-url-expression</code></td>
<td>Error</td>
</tr>
<tr>
<td><code>OPENAPI3STANDARDS_V440</code> <code>required-oauth2-flow-authorization-url</code></td>
<td>Error</td>
</tr>
<tr>
<td><code>OPENAPI3STANDARDS_V441</code> <code>required-oauth2-flow-token-url</code></td>
<td>Error</td>
</tr>
<tr>
<td><code>OPENAPI3STANDARDS_V465</code> <code>pre-defined-operation-parameters-for-expression-request-parameter-source</code></td>
<td>Error</td>
</tr>
<tr>
<td><code>OPENAPI3SYNTAX_V080</code> <code>valid-callback-key-expression</code></td>
<td>Warning</td>
</tr>
</tbody></table>
<p>The following rules also changed:</p>
<ul>
<li><code>OPENAPI3APIMATIC_L672</code> <code>no-binary-schema-for-operation-parameter</code> is now on by default and reports Blocking. It flags a binary or file schema used for an operation parameter. Previously, it was off by default.</li>
<li><code>OPENAPI3APIMATIC_L950</code> <code>supported-vendor-extension</code> is now off by default.</li>
<li><code>OPENAPI3APIMATIC_L704</code> <code>non-primitive-not-schema-in-polymorphism</code> is new and reports Blocking. It covers the <code>not</code> keyword, the same way <code>L699</code> and <code>L700</code> cover <code>anyOf</code> and <code>oneOf</code>.</li>
</ul>
<h2>What you should do</h2>
<p>Validate your OpenAPI definition and fix any Blocking messages before you generate SDKs or portals from it. To see every rule with its current severity, see the <a href="https://docs.apimatic.io/v4/define-validate/rulesets/openapi/overview">OpenAPI rulesets</a>.</p>
]]></content:encoded>
      <category>Improvement</category>
      <category>Validation and Linting</category>
    </item>
    <item>
      <title>Dropping Vulnerable PHP Versions' Requirement From PHP SDKs</title>
      <link>https://docs.apimatic.io/v4/changelog/#php-sdks-require-patched-php-versions</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/php-sdks-require-patched-php-versions</guid>
      <pubDate>Tue, 27 Oct 2026 00:00:00 GMT</pubDate>
      <description>Generated PHP SDKs now declare a php requirement in composer.json that Composer won't satisfy on a PHP 8.2, 8.3, 8.4 or 8.5 build that's missing the October 21, 2026 security fixes. Projects on a patched runtime, and projects on PHP 7.2 to 8.1, aren't affected.</description>
      <content:encoded><![CDATA[<p>Generated PHP SDKs now declare a <code>php</code> requirement in <code>composer.json</code> that Composer won&#39;t satisfy on a PHP 8.2, 8.3, 8.4 or 8.5 build that&#39;s missing the October 21, 2026 security fixes. Projects on a patched runtime, and projects on PHP 7.2 to 8.1, aren&#39;t affected.</p>
<h2>Details</h2>
<p>Until now a generated PHP SDK declared:</p>
<pre><code class="language-json">&quot;php&quot;: &quot;^7.2 || ^8.0&quot;
</code></pre>
<p>which let Composer install the SDK on any 8.x build, patched or not. The generated SDK now declares:</p>
<pre><code class="language-json">&quot;php&quot;: &quot;&gt;=7.2 &lt;8.2 || ~8.2.35 || ~8.3.36 || ~8.4.27 || ^8.5.12&quot;
</code></pre>
<p>Composer checks this against the runtime on every <code>composer install</code>, <code>composer require</code> and <code>composer update</code>. An application already running an older SDK version keeps working, but it won&#39;t pick up a new SDK release until its PHP build satisfies the requirement.</p>
<h3>What&#39;s allowed and what&#39;s rejected</h3>
<table>
<thead>
<tr>
<th>PHP branch</th>
<th>Allowed builds</th>
<th>Change from before</th>
</tr>
</thead>
<tbody><tr>
<td>7.2 to 8.1</td>
<td>All</td>
<td>None</td>
</tr>
<tr>
<td>8.2</td>
<td>8.2.35 and later</td>
<td>8.2.0 to 8.2.34 are rejected</td>
</tr>
<tr>
<td>8.3</td>
<td>8.3.36 and later</td>
<td>8.3.0 to 8.3.35 are rejected</td>
</tr>
<tr>
<td>8.4</td>
<td>8.4.27 and later</td>
<td>8.4.0 to 8.4.26 are rejected</td>
</tr>
<tr>
<td>8.5</td>
<td>8.5.12 and later</td>
<td>8.5.0 to 8.5.11 are rejected</td>
</tr>
<tr>
<td>9.0</td>
<td>None</td>
<td>None. PHP 9 was already excluded by <code>^8.0</code>.</td>
</tr>
</tbody></table>
<h3>Why these builds are no longer supported</h3>
<p>On October 21, 2026 the PHP project published a <a href="https://www.php.net/archive/2026.php#2026-10-21-5">security advisory</a> for two critical vulnerabilities, <a href="https://nvd.nist.gov/vuln/detail/CVE-2026-109618">CVE-2026-109618</a> and <a href="https://nvd.nist.gov/vuln/detail/CVE-2026-109619">CVE-2026-109619</a>, together known as PHP2Shell. Both allow unauthenticated remote code execution against a PHP web server, both are rated CVSS 9.2, and exploitation has been observed in the wild. The flaws are in the PHP interpreter itself, not in the SDK or in any APIMatic library. The advisory states that updating PHP is the only complete fix and that no configuration change mitigates the flaws.</p>
<p>The fixes shipped in <a href="https://www.php.net/archive/2026.php#2026-10-21-4">PHP 8.5.12</a>, <a href="https://www.php.net/archive/2026.php#2026-10-21-3">8.4.27</a>, <a href="https://www.php.net/archive/2026.php#2026-10-21-2">8.3.36</a> and <a href="https://www.php.net/archive/2026.php#2026-10-21-1">8.2.35</a>. Every earlier build on those four branches carries the flaws, so the SDK no longer accepts them. That stops a vulnerable deployment from quietly taking on a new SDK release, and gives its operator a clear signal to update PHP first.</p>
<p>PHP 7.2 to 8.1 remain accepted unchanged. Those branches no longer receive upstream updates, so the PHP project shipped no fixed release for them and there&#39;s no version number that separates a fixed build from a vulnerable one. Rejecting them outright would only break those deployments without making them any safer.</p>
]]></content:encoded>
      <category>Improvement</category>
      <category>SDKs</category>
      <category>PHP</category>
    </item>
    <item>
      <title>Adding Support for Pagination in TypeScript v4 SDKs</title>
      <link>https://docs.apimatic.io/v4/changelog/#added-pagination-support-in-typescript-v4</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/added-pagination-support-in-typescript-v4</guid>
      <pubDate>Wed, 21 Oct 2026 00:00:00 GMT</pubDate>
      <description>TypeScript v4 SDKs now walk offset, page, cursor and link based pagination through a lazy, typed Pageable you loop with for await, item by item or page by page.</description>
      <content:encoded><![CDATA[<p>TypeScript v4 SDKs now support pagination, covering the four widely used strategies: Offset, Page, Cursor and Link based pagination. A paginated operation returns a <code>Pageable</code> that you loop over with <code>for await</code>.</p>
<h2>Details</h2>
<p>Mark an operation with the <a href="https://docs.apimatic.io/specification-extensions/swagger-codegen-extensions#pagination-extension">pagination OpenAPI extension</a>, and its method returns a <code>Pageable</code> in place of the usual <code>ApiPromise</code>. You don&#39;t <code>await</code> it. Nothing is sent until a <code>for await</code> loop starts, and each new loop starts again from the first page. The paging fields in your request, such as <code>page</code>, <code>offset</code>, <code>cursor</code> and <code>limit</code>, set the first page only. From there, the SDK moves forward and decides when to stop:</p>
<ul>
<li><strong>Offset:</strong> moves the offset forward by the number of items received. Stops at the total item count, at an empty or short page, or when the response says there are no more.</li>
<li><strong>Page:</strong> moves to the next page number. Stops at the total page count, at an empty or short page, or when the response says there are no more.</li>
<li><strong>Cursor:</strong> sends the cursor from the last response. Stops when no new cursor comes back.</li>
<li><strong>Link:</strong> follows the next link from the response body or headers. Stops when there is no new link.</li>
</ul>
<p>Each page is a normal request, so the call&#39;s <code>options</code> apply to every page. Pass a <code>signal</code> to stop a long walk from outside the loop, or just <code>break</code> once you have enough.</p>
<p>Errors come out of the loop, not the call, so put the <code>try</code> around the loop. An error status throws the operation&#39;s <code>ApiError</code>. For safety, the SDK only follows a next link that points to the API&#39;s own host, so your credentials never go anywhere else. Any other link throws a <code>PaginationError</code>. If you&#39;d rather not catch error statuses, <code>.asApiResult().pages()</code> gives you one result per page, and the failed page is the last one.</p>
<h2>Usage Example</h2>
<p>Loop over the items across every page, or go page by page when you need the page itself:</p>
<pre><code class="language-typescript">import { PaymentsClient, PaymentsError } from &quot;payments&quot;;

const client = new PaymentsClient();

try {
  // Every payment across every page; pages are fetched as you iterate.
  for await (const payment of client.payments.list({ limit: 50 })) {
    console.log(payment.id);
  }

  // One page at a time.
  for await (const page of client.payments.list({ limit: 50 }).pages()) {
    console.log(`Fetched ${page.data.length} payments in this page`);
  }
} catch (err) {
  if (err instanceof PaymentsError) {
    console.error(`${err.kind}: ${err.message}`);
  } else {
    throw err;
  }
}
</code></pre>
<p>Use the result form when you would rather check each page than catch an error status:</p>
<pre><code class="language-typescript">for await (const result of client.payments.list({ limit: 50 }).asApiResult().pages()) {
  if (!result.ok) {
    console.error(&quot;A page failed with status&quot;, result.status);
    break;
  }
  console.log(`Fetched ${result.value.data.length} payments in this page`);
}
</code></pre>
<p>This feature is available in the TypeScript v4 SDK. Generate it with version 2.x of the APIMatic CLI:</p>
<pre><code class="language-bash">apimatic sdk generate --language=typescript
</code></pre>
<p>For the full set of flags and options, see the <a href="https://docs.apimatic.io/v4/apimatic-cli/cli-reference#sdk-generate">APIMatic CLI documentation</a>.</p>
]]></content:encoded>
      <category>New Feature</category>
      <category>SDKs</category>
      <category>TypeScript</category>
    </item>
    <item>
      <title>Server-Sent Event Streaming in TypeScript v4 SDKs</title>
      <link>https://docs.apimatic.io/changelog/added-server-sent-events-in-typescript-v4</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/added-server-sent-events-in-typescript-v4</guid>
      <pubDate>Wed, 14 Oct 2026 00:00:00 GMT</pubDate>
      <description>TypeScript v4 SDKs now expose a text/event-stream response as a typed EventStream you read with for await, with the connection released however the loop ends.</description>
      <content:encoded><![CDATA[<p>TypeScript v4 SDKs now stream server-sent events. An operation whose success response is <code>text/event-stream</code> resolves to an <code>EventStream&lt;T&gt;</code> typed over the event&#39;s data schema, and you read it with <code>for await</code>.</p>
<h2>Details</h2>
<p>The call resolves as soon as the response headers arrive, and events are read from the connection only as your loop asks for them. Each iteration yields one event&#39;s <code>data</code>, already decoded: a string, a model, an array, or a discriminated union you narrow on its <code>kind</code>. The stream ends cleanly on the sentinel named by the <code>x-sse-sentinel</code> extension, which is consumed and never yielded, or when the server closes the connection.</p>
<p>Draining the loop releases the connection, and so does leaving it early with <code>break</code>, <code>return</code> or a <code>throw</code>. A stream you decide not to read is released with <code>await stream.close()</code>, or with <code>await using</code> where your runtime supports it, and aborting the <code>signal</code> you passed stops it from elsewhere.</p>
<p>The loop raises the same error family as the call itself: a <code>DecodeError</code> for an event whose data does not fit the schema, a <code>ConnectionError</code> when the connection drops, and a <code>TimeoutError</code> when the server stays silent for longer than the <code>eventStream.idleTimeout</code> client option, which defaults to 60 seconds. An error status rejects the call with <code>ApiError</code> before any event is read, and <code>.asApiResult()</code> gives you the opening status and headers of the stream.</p>
<h2>Usage Example</h2>
<p>Iterate the stream, and stop as soon as you have what you need:</p>
<pre><code class="language-typescript">import { PaymentsClient, PaymentsError } from &quot;payments&quot;;

const client = new PaymentsClient({ eventStream: { idleTimeout: 30_000 } });

try {
  const updates = await client.payments.streamUpdates({ paymentId: &quot;pay_123&quot; });

  // Each event&#39;s data arrives as a typed model; breaking out releases the connection.
  for await (const update of updates) {
    console.log(update.status);
    if (update.settledAt) break;
  }
} catch (err) {
  if (err instanceof PaymentsError) {
    console.error(`${err.kind}: ${err.message}`);
  } else {
    throw err;
  }
}
</code></pre>
<p>Put the <code>try</code> around the loop, not only the call, because the call settles as soon as the headers arrive.</p>
<p>This feature is available in the TypeScript v4 SDK. Generate it with version 2.x of the APIMatic CLI:</p>
<pre><code class="language-bash">apimatic sdk generate --language=typescript
</code></pre>
<p>For the full set of flags and options, see the <a href="https://docs.apimatic.io/v4/apimatic-cli/cli-reference#sdk-generate">APIMatic CLI documentation</a>.</p>
]]></content:encoded>
      <category>New Feature</category>
      <category>SDKs</category>
      <category>TypeScript</category>
    </item>
    <item>
      <title>Adding Support for Pagination in Python v4 SDKs</title>
      <link>https://docs.apimatic.io/changelog/added-pagination-support-in-python-v4</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/added-pagination-support-in-python-v4</guid>
      <pubDate>Mon, 12 Oct 2026 00:00:00 GMT</pubDate>
      <description>Python v4 SDKs now walk offset, page, cursor and link based pagination through a typed Paginator you iterate item by item or page by page.</description>
      <content:encoded><![CDATA[<p>Python v4 SDKs now support pagination, covering the four widely used strategies: Offset, Page, Cursor and Link based pagination. A paginated operation returns a <code>Paginator[Page, Item]</code> on the synchronous client and an <code>AsyncPaginator</code> on the asynchronous one.</p>
<h2>Details</h2>
<p>The SDK detects paginated operations from the <a href="https://docs.apimatic.io/specification-extensions/swagger-codegen-extensions#pagination-extension">pagination OpenAPI extension</a> and generates the walk for each strategy the operation declares, selecting request and response fields with the JSON Pointers in your extension configuration. Iterate the paginator to receive items across every page, or call <code>iter_pages()</code> to work with one page at a time.</p>
<p>The paginator is lazy. Building one sends nothing, the first request goes out when iteration starts, a <code>break</code> ends the walk with no further request, and each new iteration starts again from the first page. The arguments you pass set the first request only, and the SDK moves through the pages the way the API defines them. Every page is an ordinary request, so authentication, retries and <code>request_options</code> apply to each one.</p>
<p>A page that fails raises <code>ApiError</code> from the loop, after every item before it, so wrap the loop rather than the call. A link walk refuses a next link to a different origin and raises <code>ValueError</code>.</p>
<h2>Usage Example</h2>
<p>Iterate the items across every page, or go page by page when you need the page itself:</p>
<pre><code class="language-python">from payments import PaymentsClient
from payments.core import ApiError

client = PaymentsClient(bearer_auth=&quot;YOUR_ACCESS_TOKEN&quot;)

try:
    # Every payment across every page; pages are fetched as you iterate.
    for payment in client.payments.list_payments(limit=50):
        print(payment.id)

    # One page at a time.
    for page in client.payments.list_payments(limit=50).iter_pages():
        print(f&quot;Fetched {len(page.data)} payments in this page&quot;)
except ApiError as e:
    print(&quot;A page failed with status&quot;, e.status_code)
</code></pre>
<p>On the async client the call is not awaited. It returns an <code>AsyncPaginator</code> that you iterate with <code>async for</code>:</p>
<pre><code class="language-python">async for payment in async_client.payments.list_payments(limit=50):
    print(payment.id)
</code></pre>
<p>This feature is available in the Python v4 SDK. Generate it with version 2.x of the APIMatic CLI:</p>
<pre><code class="language-bash">apimatic sdk generate --language=python
</code></pre>
<p>For the full set of flags and options, see the <a href="https://docs.apimatic.io/v4/apimatic-cli/cli-reference#sdk-generate">APIMatic CLI documentation</a>.</p>
]]></content:encoded>
      <category>New Feature</category>
      <category>SDKs</category>
      <category>Python</category>
    </item>
    <item>
      <title>HTTP Logging in Python v4 SDKs</title>
      <link>https://docs.apimatic.io/changelog/added-http-logging-in-python-v4</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/added-http-logging-in-python-v4</guid>
      <pubDate>Fri, 09 Oct 2026 00:00:00 GMT</pubDate>
      <description>Python v4 SDKs now log every request and response through the standard logging module, with header dumps chosen by logging_options, credentials redacted and a per-call level floor.</description>
      <content:encoded><![CDATA[<p>Python v4 SDKs now log HTTP requests and responses through Python&#39;s standard <code>logging</code> module. Nothing is printed until you turn the SDK&#39;s logger on, the same way you would for any library, or set one environment variable.</p>
<h2>Details</h2>
<p>The SDK writes under a logger named after its package and configures nothing itself: no handler, no level, and never the root logger. At <code>INFO</code> it writes one line as each request is sent and one when its response arrives, with the status and duration. <code>WARNING</code> covers responses outside 2xx and each retry, and <code>ERROR</code> a call that ends in an exception. For a run you cannot edit, an environment variable named after the package, such as <code>PAYMENTS_LOG=info</code> or <code>debug</code>, sets the level and adds a stderr handler when none is listening.</p>
<p>The <code>logging_options</code> keyword on the client, a dict or a <code>LoggingOptions</code>, turns on the <code>DEBUG</code> dumps of the request headers, the request body and the response headers. Header, query and form values print <code>REDACTED</code> unless they are known to be safe, so <code>Authorization</code>, cookies and API keys never reach the log, and a response body is never logged.</p>
<p>The per-call <code>request_options</code> accept a <code>log_level</code> floor that quietens one call. It never turns on a record the client&#39;s options leave off.</p>
<h2>Usage Example</h2>
<p>Raise the SDK&#39;s logger, choose the dumps on the client, and quieten a single call:</p>
<pre><code class="language-python">import logging

from payments import PaymentsClient

logging.basicConfig()
logging.getLogger(&quot;payments&quot;).setLevel(logging.DEBUG)

client = PaymentsClient(
    bearer_auth=&quot;YOUR_ACCESS_TOKEN&quot;,
    logging_options={&quot;log_request_headers&quot;: True, &quot;log_response_headers&quot;: True},
)

# The request and response lines, then both header dumps with Authorization masked.
client.payments.get_payment(&quot;pay_123&quot;)

# Nothing below WARNING is written for this call.
client.payments.get_payment(&quot;pay_456&quot;, request_options={&quot;log_level&quot;: logging.WARNING})
</code></pre>
<p><code>log_request_body</code> prints a JSON body as sent, so turn it on only where that content may be logged.</p>
<p>This feature is available in the Python v4 SDK. Generate it with version 2.x of the APIMatic CLI:</p>
<pre><code class="language-bash">apimatic sdk generate --language=python
</code></pre>
<p>For the full set of flags and options, see the <a href="https://docs.apimatic.io/v4/apimatic-cli/cli-reference#sdk-generate">APIMatic CLI documentation</a>.</p>
]]></content:encoded>
      <category>New Feature</category>
      <category>SDKs</category>
      <category>Python</category>
    </item>
    <item>
      <title>HTTP Logging in TypeScript v4 SDKs</title>
      <link>https://docs.apimatic.io/changelog/added-http-logging-in-typescript-v4</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/added-http-logging-in-typescript-v4</guid>
      <pubDate>Fri, 09 Oct 2026 00:00:00 GMT</pubDate>
      <description>TypeScript v4 SDKs can now log every request, response and retry through ClientOptions.logging, with redaction built in, a per-call level and an environment variable to switch it on.</description>
      <content:encoded><![CDATA[<p>TypeScript v4 SDKs now log HTTP requests, responses and retries. Logging is off by default and is switched on through the <code>logging</code> client option, or from the environment without a code change.</p>
<h2>Details</h2>
<p>The logger writes the request line, the response line with its status and duration, a line before each retry, and a line for a call that ends without a response. Request headers, response headers and the request body are off by default and switched on with <code>logRequestHeaders</code>, <code>logResponseHeaders</code> and <code>logRequestBody</code>. Lines go to <code>console</code> unless you pass your own <code>logger</code>, which can be any object with <code>error</code>, <code>warn</code>, <code>info</code> and <code>debug</code> methods.</p>
<p>Query values and headers are redacted by allow-list, so credentials, cookies and API keys are masked. <code>redactedKeys</code>, <code>redactedHeaders</code> and <code>unmaskHeaders</code> adjust what is masked. A JSON request body is logged as it is, so leave <code>logRequestBody</code> off on endpoints that carry personal or payment data.</p>
<p>When the code sets neither a <code>logger</code> nor a <code>level</code>, the client reads an environment variable named after the client class in upper snake case, such as <code>PAYMENTS_CLIENT_LOG</code> for <code>PaymentsClient</code>. Set it to <code>error</code>, <code>warn</code>, <code>info</code> or <code>debug</code> to turn logging on. A call&#39;s second argument can set the level for that call alone.</p>
<h2>Usage Example</h2>
<p>Send the SDK&#39;s lines to your application&#39;s logger, and turn on full detail for one call:</p>
<pre><code class="language-typescript">import { PaymentsClient } from &quot;payments&quot;;

const client = new PaymentsClient({
  logging: {
    logger: appLogger, // any object with error, warn, info and debug methods
    level: &quot;info&quot;,
    logRequestHeaders: true,
    logResponseHeaders: true,
  },
});

// This call alone logs at debug, request body included.
await client.payments.get({ paymentId: &quot;pay_123&quot; }, { logging: { level: &quot;debug&quot; } });
</code></pre>
<p>To switch logging on in a deployed application without a code change, run it with <code>PAYMENTS_CLIENT_LOG=info</code>.</p>
<p>This feature is available in the TypeScript v4 SDK. Generate it with version 2.x of the APIMatic CLI:</p>
<pre><code class="language-bash">apimatic sdk generate --language=typescript
</code></pre>
<p>For the full set of flags and options, see the <a href="https://docs.apimatic.io/v4/apimatic-cli/cli-reference#sdk-generate">APIMatic CLI documentation</a>.</p>
]]></content:encoded>
      <category>New Feature</category>
      <category>SDKs</category>
      <category>TypeScript</category>
    </item>
    <item>
      <title>Invalid Example Values Are Now Removed During Import with Warnings</title>
      <link>https://docs.apimatic.io/changelog/invalid-example-values-removed-during-import</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/invalid-example-values-removed-during-import</guid>
      <pubDate>Thu, 08 Oct 2026 00:00:00 GMT</pubDate>
      <description>Example values that don't match their declared type or format are now removed during API import, each with a warning naming its location, instead of being kept or dropped silently.</description>
      <content:encoded><![CDATA[<p>We&#39;ve improved how example values are validated during API import. An example that doesn&#39;t match its declared type or format is now removed from the API definition, and a warning tells you exactly where it was found. Previously, some invalid examples slipped through into your SDKs and documentation, while others were removed without any warning.</p>
<blockquote>
<p><strong>Heads-up! Behavior Change</strong></p>
<p>If your API definition contains invalid example values, they may have previously carried through to SDK generation and documentation unchanged. After this release, those examples are removed during import and APIMatic may generate a sample value in their place. Your SDKs and docs will still generate, but the examples shown in them may change or disappear. Check the warnings logged during import to find and fix the affected examples in your API definition.</p>
</blockquote>
<h2>What was happening before</h2>
<p>Example validation during import had gaps. Some invalid examples weren&#39;t caught at all, so they ended up as-is in generated SDKs, code samples, and documentation. Others were removed, but no warning was logged, so a different, auto-generated sample appeared in the output with no explanation of why the authored one was gone.</p>
<h2>What happens now</h2>
<p>Every invalid example is removed with a warning that names the component it belongs to. An example is considered invalid when, for instance:</p>
<ul>
<li>Its value doesn&#39;t match the declared type, such as a number given for a <code>string</code> field.</li>
<li>A date value can&#39;t be parsed, or is an impossible date like <code>2026-02-31</code>.</li>
<li>A <code>format: byte</code> value isn&#39;t valid Base64.</li>
<li>An explicit <code>null</code> is given for a field that&#39;s not nullable.</li>
<li>An array example&#39;s nesting doesn&#39;t match the declared array dimensions.</li>
<li>The example value is empty.</li>
</ul>
<p>Validation now also covers places it previously missed, including examples on response headers and in callback bodies.</p>
<p>One common authoring mistake is repaired instead of removed: a bare value given as the example for an array of strings, such as <code>example: pending</code> on a <code>string</code> array, is wrapped into an array (<code>[&quot;pending&quot;]</code>) and kept.</p>
<h2>What you should do</h2>
<p>Valid examples aren&#39;t affected, so no action is needed if your examples already match their declared types and formats. If examples disappear from your SDKs or documentation after this release, look through the validation warnings logged during import. Each warning points to the example that was removed, so you can correct its value in your API definition and keep your authored examples in the output.</p>
]]></content:encoded>
      <category>Improvement</category>
      <category>Validation</category>
    </item>
    <item>
      <title>Precise Integer and Float Validation in TypeScript v4 SDKs</title>
      <link>https://docs.apimatic.io/changelog/added-int-and-float-validation-in-typescript-v4</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/added-int-and-float-validation-in-typescript-v4</guid>
      <pubDate>Mon, 05 Oct 2026 00:00:00 GMT</pubDate>
      <description>TypeScript v4 SDKs now validate every numeric field by its declared kind, rejecting a fraction or an unsafe integer where the specification declares an integer.</description>
      <content:encoded><![CDATA[<p>TypeScript v4 SDKs now check numbers by the kind your specification declares rather than accepting any <code>number</code> for every numeric field.</p>
<h2>Details</h2>
<p>Every numeric field is still typed <code>number</code>, and its schema decides which check runs. An integer field, whether <code>int32</code>, <code>int64</code> or <code>type: integer</code> with no format, is checked with <code>s.int()</code>, which rejects a fraction and any value outside JavaScript&#39;s safe-integer range. A <code>float</code>, a <code>double</code>, a big decimal or <code>type: number</code> with no format is checked with <code>s.float64()</code>, which rejects <code>NaN</code> and <code>±Infinity</code>.</p>
<p>An <code>int64</code> larger than <code>Number.MAX_SAFE_INTEGER</code> is rejected rather than silently rounded. A request value that fails its check rejects the call with an <code>EncodeError</code> before anything is sent, and a response value that fails rejects with a <code>DecodeError</code>.</p>
<h2>Usage Example</h2>
<p>A value the specification types as an integer is checked before the request leaves:</p>
<pre><code class="language-typescript">import { PaymentsClient, PaymentsError } from &quot;payments&quot;;

const client = new PaymentsClient();

try {
  // quantity is an integer in the specification, so 2.5 is rejected.
  await client.orders.create({ body: { sku: &quot;SKU-1&quot;, quantity: 2.5 } });
} catch (err) {
  if (err instanceof PaymentsError &amp;&amp; err.kind === &quot;encode&quot;) {
    console.error(&quot;Nothing was sent:&quot;, err.cause);
  } else {
    throw err;
  }
}
</code></pre>
<p>The <code>cause</code> is the <code>SchemaError</code> that names the field and the check it failed.</p>
<p>This feature is available in the TypeScript v4 SDK. Generate it with version 2.x of the APIMatic CLI:</p>
<pre><code class="language-bash">apimatic sdk generate --language=typescript
</code></pre>
<p>For the full set of flags and options, see the <a href="https://docs.apimatic.io/v4/apimatic-cli/cli-reference#sdk-generate">APIMatic CLI documentation</a>.</p>
]]></content:encoded>
      <category>New Feature</category>
      <category>SDKs</category>
      <category>TypeScript</category>
    </item>
    <item>
      <title>Moving Python v4 SDKs to httpx 2</title>
      <link>https://docs.apimatic.io/changelog/moved-python-v4-to-httpx2</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/moved-python-v4-to-httpx2</guid>
      <pubDate>Fri, 02 Oct 2026 00:00:00 GMT</pubDate>
      <description>Python v4 SDKs now run on httpx2, with certifi trust kept by default and the synchronous and asynchronous clients unchanged at the surface.</description>
      <content:encoded><![CDATA[<p>Python v4 SDKs now depend on <code>httpx2</code> in place of <code>httpx</code>. The upgrade brings the SDK onto the 2.x line of its HTTP library while keeping the client surface you already use unchanged.</p>
<h2>Details</h2>
<p>The default transports are now <code>Httpx2Client</code> and <code>AsyncHttpx2Client</code>, replacing <code>HttpxClient</code> and <code>AsyncHttpxClient</code>. TLS verification stays on by default and keeps the trust order the SDK shipped with: <code>SSL_CERT_FILE</code>, then <code>SSL_CERT_DIR</code>, then the <code>certifi</code> bundle, so no configuration change is needed to keep the behavior you had. To set a proxy, a private CA or a client certificate, build an <code>Httpx2Client</code> yourself and pass it to the client as <code>custom_http_client</code>.</p>
<p>The generated <code>pyproject.toml</code> now declares <code>httpx2 (&gt;=2.13.1,&lt;3.0.0)</code>. Regenerate to pick up the new dependency, and update any code that imported the old transport names or caught <code>httpx</code> exceptions, which are now raised from <code>httpx2</code>.</p>
<h2>Usage Example</h2>
<p>Build the transport yourself when the defaults do not fit, and hand it to the client:</p>
<pre><code class="language-python">import ssl

from payments import PaymentsClient
from payments.core import Httpx2Client

transport = Httpx2Client(
    timeout=10.0,
    proxy_url=&quot;http://proxy.internal:3128&quot;,
    verify=ssl.create_default_context(cafile=&quot;corp-ca.pem&quot;),
)
client = PaymentsClient(bearer_auth=&quot;YOUR_ACCESS_TOKEN&quot;, custom_http_client=transport)
</code></pre>
<p>The async client takes an <code>AsyncHttpx2Client</code> through <code>custom_async_http_client</code> instead.</p>
<p>This change is available in the Python v4 SDK. Generate it with version 2.x of the APIMatic CLI:</p>
<pre><code class="language-bash">apimatic sdk generate --language=python
</code></pre>
<p>For the full set of flags and options, see the <a href="https://docs.apimatic.io/v4/apimatic-cli/cli-reference#sdk-generate">APIMatic CLI documentation</a>.</p>
]]></content:encoded>
      <category>Improvement</category>
      <category>SDKs</category>
      <category>Python</category>
    </item>
    <item>
      <title>Adding Retries to TypeScript v4 SDKs</title>
      <link>https://docs.apimatic.io/changelog/added-retries-in-typescript-v4</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/added-retries-in-typescript-v4</guid>
      <pubDate>Mon, 28 Sep 2026 00:00:00 GMT</pubDate>
      <description>TypeScript v4 SDKs now retry failed requests with exponential backoff, on by default and configured through the retry options on the client or per call.</description>
      <content:encoded><![CDATA[<p>TypeScript v4 SDKs now retry failed requests, and retrying is on by default. The <code>retry</code> client option controls how many retries are made, which status codes and methods qualify, how long each attempt may take, and how the backoff grows between attempts.</p>
<h2>Details</h2>
<p>By default the SDK retries up to 3 times after a dropped connection, a timed-out attempt, or a <code>408</code>, <code>429</code>, <code>500</code>, <code>502</code>, <code>503</code> or <code>504</code>. The wait starts at 1 second and doubles with each retry, with up to 25% added jitter and a ceiling of 60 seconds. When the server sends a <code>Retry-After</code> header, the SDK waits that long instead. Each attempt has its own 60-second <code>timeout</code>, which bounds the attempt rather than the whole call.</p>
<p>Only <code>GET</code>, <code>HEAD</code>, <code>PUT</code> and <code>OPTIONS</code> are retried by default, so a <code>POST</code>, <code>PATCH</code> or <code>DELETE</code> is never sent twice unless you add it to <code>httpMethodsToRetry</code>. Every retry of a call carries the same <code>Idempotency-Key</code>, which makes widening the list safe for APIs that honor it. A request whose body is a stream is never retried, because a stream cannot be replayed.</p>
<p>A call&#39;s second argument can override <code>maxRetries</code>, <code>timeout</code> and <code>statusCodesToRetry</code> for that call alone. A call that exhausts its retries rejects with the last attempt&#39;s error, from the same error family as every other failure.</p>
<h2>Usage Example</h2>
<p>Tune the policy on the client, and override it for a single call:</p>
<pre><code class="language-typescript">import { PaymentsClient } from &quot;payments&quot;;

const client = new PaymentsClient({
  retry: {
    maxRetries: 5,
    timeout: 10_000,
    httpMethodsToRetry: [&quot;GET&quot;, &quot;HEAD&quot;, &quot;PUT&quot;, &quot;OPTIONS&quot;, &quot;POST&quot;],
    onRetry: ({ attemptNumber, delay, reason }) =&gt; {
      console.warn(`retry ${attemptNumber} in ${delay}ms after a ${reason.kind}`);
    },
  },
});

// This one call is sent exactly once.
const payment = await client.payments.get({ paymentId: &quot;pay_123&quot; }, { retry: { maxRetries: 0 } });
</code></pre>
<p>Pass <code>retry: { maxRetries: 0 }</code> to the client to turn retrying off everywhere, for example in a test that stubs an error response.</p>
<p>This feature is available in the TypeScript v4 SDK. Generate it with version 2.x of the APIMatic CLI:</p>
<pre><code class="language-bash">apimatic sdk generate --language=typescript
</code></pre>
<p>For the full set of flags and options, see the <a href="https://docs.apimatic.io/v4/apimatic-cli/cli-reference#sdk-generate">APIMatic CLI documentation</a>.</p>
]]></content:encoded>
      <category>New Feature</category>
      <category>SDKs</category>
      <category>TypeScript</category>
    </item>
    <item>
      <title>C#, Python and TypeScript v4 SDKs Now Generally Available</title>
      <link>https://docs.apimatic.io/changelog/csharp-python-typescript-sdk-v4-ga</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/csharp-python-typescript-sdk-v4-ga</guid>
      <pubDate>Mon, 28 Sep 2026 00:00:00 GMT</pubDate>
      <description>The v4 SDKs for C#, Python and TypeScript leave beta. Generate them with version 2.x of the APIMatic CLI.</description>
      <content:encoded><![CDATA[<p>The v4 SDKs for C#, Python and TypeScript are now generally available. All three leave beta today and generate as stable SDKs from version 2.x of the <a href="https://docs.apimatic.io/v4/apimatic-cli/getting-started">APIMatic CLI</a>.</p>
<h2>What&#39;s New Since Beta</h2>
<ul>
<li><strong>Authentication</strong>: Every scheme your specification declares, <code>AND</code> and <code>OR</code> combinations, and the three OAuth2 grants, in all three languages</li>
<li><strong>Resilience</strong>: Configurable retries with exponential backoff, request timeouts and cancellation in C#</li>
<li><strong>Errors</strong>: One error family per SDK, with a typed error per operation that carries the declared payload as a model</li>
<li><strong>Files and streams</strong>: Binary bodies, multipart forms and binary responses in all three languages, and server-sent event streaming in C# and Python</li>
<li><strong>Identification and idempotency</strong>: SDK identification headers on every request and an automatic <code>Idempotency-Key</code> on every non-GET request</li>
<li><strong>Documentation</strong>: A README, a complete API reference and an SDK map inside every package</li>
</ul>
<h2>Generating the SDK</h2>
<p>The GA SDKs are generated with version 2.x of the APIMatic CLI. Version 2.x generates v4 SDKs only, so the <code>--codegen-version</code> and <code>--stability</code> flags are no longer needed:</p>
<pre><code class="language-bash">apimatic sdk generate --language=csharp
apimatic sdk generate --language=python
apimatic sdk generate --language=typescript
</code></pre>
<blockquote>
<p><strong>Note</strong></p>
<p>v4 SDKs are available for <strong>C#</strong>, <strong>Python</strong> and <strong>TypeScript</strong>, the languages version 2.x of the APIMatic CLI generates.</p>
</blockquote>
<p>For the full set of flags and options, see the <a href="https://docs.apimatic.io/v4/apimatic-cli/cli-reference#sdk-generate">APIMatic CLI documentation</a>.</p>
]]></content:encoded>
      <category>CLI</category>
      <category>SDKs</category>
      <category>C#</category>
      <category>Python</category>
      <category>TypeScript</category>
      <category>New Feature</category>
    </item>
    <item>
      <title>Configurable Retries in Python v4 SDKs</title>
      <link>https://docs.apimatic.io/changelog/added-retries-in-python-v4</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/added-retries-in-python-v4</guid>
      <pubDate>Mon, 28 Sep 2026 00:00:00 GMT</pubDate>
      <description>Python v4 SDKs now retry failed requests with exponential backoff, configured through retry_options on the client.</description>
      <content:encoded><![CDATA[<p>Python v4 SDKs now retry failed requests, and retrying is on by default. The client accepts a <code>retry_options</code> keyword that controls how many retries are made, which status codes and methods qualify, and how the backoff grows between attempts.</p>
<h2>Details</h2>
<p>By default the SDK retries up to 3 times, after a connection that failed or timed out and after a <code>408</code>, <code>429</code>, <code>500</code>, <code>502</code>, <code>503</code> or <code>504</code>. The wait starts at 1 second and doubles with each retry, with up to half a second of jitter and a ceiling of 60 seconds. When the server sends a <code>Retry-After</code> header, in seconds or as an HTTP date, the SDK waits that long instead, capped at the same ceiling.</p>
<p>Only <code>GET</code>, <code>HEAD</code>, <code>PUT</code> and <code>OPTIONS</code> are retried by default, so a <code>POST</code>, <code>PATCH</code> or <code>DELETE</code> is never repeated unless you add it to <code>http_methods_to_retry</code>. Every retry of a call carries the same <code>Idempotency-Key</code>, which makes adding <code>POST</code> safe for APIs that deduplicate on it. <code>request_options</code> overrides <code>max_retries</code> and <code>status_codes_to_retry</code> for one call.</p>
<p>When the last attempt fails, you get what a single attempt would give you: the <code>ApiError</code> for an error status, or the <code>httpx2</code> exception for a connection that never answered. The policy is the same on the synchronous and asynchronous clients.</p>
<h2>Usage Example</h2>
<p>Keep the default policy, tune it on the client, or change it for one call:</p>
<pre><code class="language-python">from payments import PaymentsClient
from payments.core import RetryOptions

# The default policy: up to 3 retries of GET, HEAD, PUT and OPTIONS.
client = PaymentsClient(bearer_auth=&quot;YOUR_ACCESS_TOKEN&quot;)

# More retries, a shorter first wait, and POST retried because the API deduplicates on Idempotency-Key.
client = PaymentsClient(
    bearer_auth=&quot;YOUR_ACCESS_TOKEN&quot;,
    retry_options=RetryOptions(
        max_retries=5,
        initial_delay=0.5,
        http_methods_to_retry=frozenset({&quot;GET&quot;, &quot;HEAD&quot;, &quot;PUT&quot;, &quot;OPTIONS&quot;, &quot;POST&quot;}),
    ),
)

# No retries for this one call.
payment = client.payments.get_payment(&quot;pay_123&quot;, request_options={&quot;max_retries&quot;: 0})
</code></pre>
<p>Pass <code>retry_options=0</code> to turn retrying off for the whole client, for example in a test that stubs an error response.</p>
<p>This feature is available in the Python v4 SDK. Generate it with version 2.x of the APIMatic CLI:</p>
<pre><code class="language-bash">apimatic sdk generate --language=python
</code></pre>
<p>For the full set of flags and options, see the <a href="https://docs.apimatic.io/v4/apimatic-cli/cli-reference#sdk-generate">APIMatic CLI documentation</a>.</p>
]]></content:encoded>
      <category>New Feature</category>
      <category>SDKs</category>
      <category>Python</category>
    </item>
    <item>
      <title>Server-Sent Event Streaming in Python v4 SDKs (Beta)</title>
      <link>https://docs.apimatic.io/changelog/added-server-sent-events-in-python-v4</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/added-server-sent-events-in-python-v4</guid>
      <pubDate>Fri, 25 Sep 2026 00:00:00 GMT</pubDate>
      <description>Python v4 SDKs now expose a text/event-stream response as a typed EventStream you iterate with for or async for.</description>
      <content:encoded><![CDATA[<p>Python v4 SDKs now stream server-sent events. An operation whose success response is <code>text/event-stream</code> returns an <code>EventStream[T]</code> typed over the event&#39;s data schema, and the asynchronous client returns an <code>AsyncEventStream[T]</code> you read with <code>async for</code>.</p>
<h2>Details</h2>
<p>The runtime now has one request seam: a call returns as soon as the response head arrives, and the decoder owns the body from there. That is what lets a stream start yielding events before the connection closes, and the same seam serves JSON, text, binary and empty responses.</p>
<p>Each iteration yields one event&#39;s <code>data</code>, parsed into the schema the specification declares, and a discriminated <code>oneOf</code> event arrives already routed to its variant. The stream ends cleanly on the sentinel named by the <code>x-sse-sentinel</code> extension, which is consumed and never yielded, or when the server closes the connection. Draining the loop releases the connection, and a <code>with</code> block releases it when you stop early.</p>
<h2>Usage Example</h2>
<p>Iterate the stream directly, and open it in a <code>with</code> block whenever you might stop before it ends:</p>
<pre><code class="language-python">from payments import PaymentsClient

client = PaymentsClient(bearer_auth=&quot;YOUR_ACCESS_TOKEN&quot;)

# Each event&#39;s data arrives as a typed model; the loop ends with the stream.
for update in client.payments.stream_payment_updates(&quot;pay_123&quot;):
    print(update.status)

# The with block releases the connection when you break out early.
with client.payments.stream_payment_updates(&quot;pay_123&quot;) as stream:
    for update in stream:
        if update.settled_at is not None:
            break
</code></pre>
<p>On the async client, await the call and iterate the result:</p>
<pre><code class="language-python">from payments import AsyncPaymentsClient


async def main() -&gt; None:
    async with AsyncPaymentsClient(bearer_auth=&quot;YOUR_ACCESS_TOKEN&quot;) as client:
        async for update in await client.payments.stream_payment_updates(&quot;pay_123&quot;):
            print(update.status)
</code></pre>
<p>This feature is available in the Python v4 SDK (beta). Generate it from the APIMatic CLI:</p>
<pre><code class="language-bash">apimatic sdk generate --language=python --codegen-version=v4 --stability=beta
</code></pre>
<p>For the full set of flags and options, see the <a href="https://docs.apimatic.io/apimatic-cli/commands/#generate-sdks">APIMatic CLI documentation</a>.</p>
]]></content:encoded>
      <category>New Feature</category>
      <category>SDKs</category>
      <category>Python</category>
    </item>
    <item>
      <title>A Rooted API Error Family in TypeScript v4 SDKs (Beta)</title>
      <link>https://docs.apimatic.io/changelog/added-api-error-family-in-typescript-v4</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/added-api-error-family-in-typescript-v4</guid>
      <pubDate>Thu, 24 Sep 2026 00:00:00 GMT</pubDate>
      <description>TypeScript v4 SDKs now reject with one error family rooted at a single class and narrowed on err.kind, with a typed error per operation that declares error responses.</description>
      <content:encoded><![CDATA[<p>TypeScript v4 SDKs now reject with one error family. Every failure a call can produce derives from a single root named after your API, such as <code>PaymentsError</code>, and carries a closed <code>kind</code> discriminator, so one <code>catch</code> with a <code>switch</code> on <code>err.kind</code> handles every outcome exhaustively.</p>
<h2>Details</h2>
<p>The six kinds are <code>api</code> for an error status, <code>decode</code> for a response that did not fit its declared type, <code>encode</code> for a request value that failed its schema before anything was sent, <code>connection</code> for a request that never got an answer, <code>timeout</code> for an attempt that ran out of time, and <code>auth</code> for a credential that could not be obtained. Every error names the method and URI of the call that raised it.</p>
<p><code>ApiError</code> carries the <code>status</code>, the <code>headers</code> and a <code>payload</code>. An operation whose specification declares error responses rejects with its own subclass, such as <code>Payments.CreateError</code>, whose <code>payload</code> is a union of those declared bodies narrowed on <code>payload.kind</code>. A status the specification does not describe arrives as the <code>undeclared</code> arm, with the raw bytes in <code>rawBody</code>. Call <code>.asApiResult()</code> on an operation&#39;s promise to receive an error status as a value instead of a rejection.</p>
<p><code>ConfigurationError</code> stays outside the family. The constructor throws it for a defect in the client options, such as an unknown server environment.</p>
<h2>Usage Example</h2>
<p>Narrow the operation&#39;s own error on its payload, then the rest of the family on <code>kind</code>:</p>
<pre><code class="language-typescript">import { PaymentsClient, PaymentsError, Payments } from &quot;payments&quot;;

const client = new PaymentsClient();

try {
  await client.payments.create({ accountId: &quot;acc_1&quot;, body: { amount: 1000, currency: &quot;USD&quot; } });
} catch (err) {
  if (err instanceof Payments.CreateError) {
    switch (err.payload.kind) {
      case &quot;paymentError&quot;:
        console.error(err.status, err.payload.body.message);
        break;
      case &quot;undeclared&quot;:
        console.error(err.status, new TextDecoder().decode(err.payload.rawBody));
        break;
    }
  } else if (err instanceof PaymentsError) {
    console.error(`${err.kind}: ${err.message}`);
  } else {
    throw err;
  }
}
</code></pre>
<p>A caller&#39;s abort is not part of the family and rejects with the signal&#39;s own reason.</p>
<p>This feature is available in the TypeScript v4 SDK (beta). Generate it from the APIMatic CLI:</p>
<pre><code class="language-bash">apimatic sdk generate --language=typescript --codegen-version=v4 --stability=beta
</code></pre>
<p>For the full set of flags and options, see the <a href="https://docs.apimatic.io/apimatic-cli/commands/#generate-sdks">APIMatic CLI documentation</a>.</p>
]]></content:encoded>
      <category>New Feature</category>
      <category>SDKs</category>
      <category>TypeScript</category>
    </item>
    <item>
      <title>Hardened Open and Closed Enums in C# v4 SDKs (Beta)</title>
      <link>https://docs.apimatic.io/changelog/added-hardened-enums-in-csharp-v4</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/added-hardened-enums-in-csharp-v4</guid>
      <pubDate>Thu, 24 Sep 2026 00:00:00 GMT</pubDate>
      <description>C# v4 SDKs now generate enums as open or closed records with a get-only value, known-value lookup, an exhaustive Match, long-valued integer enums and converters that work as dictionary keys.</description>
      <content:encoded><![CDATA[<p>C# v4 SDKs now generate a hardened enum shape. Every enum is a sealed record over an open or closed root, so the SDK is explicit about whether a value the API sends but the specification does not list is accepted or rejected.</p>
<h2>Details</h2>
<p>Enums generated from your schemas are open. An open enum accepts a value the specification does not list, keeps it with the server&#39;s own casing and writes it back unchanged, so a new member on the server never breaks an existing client. The server-environment enum is closed and rejects an unknown value on deserialization.</p>
<p>Every enum exposes a get-only <code>Value</code> and converts implicitly to its underlying <code>string</code> or <code>long</code>. <code>TryGetKnownValue</code> resolves a raw value to a declared constant, <code>IsKnownValue</code> tells a declared value from an undeclared one, and <code>Is</code> and <code>==</code> compare against a raw value without constructing an enum. A generated <code>Match</code> takes one arm per declared value plus an <code>otherwise</code> arm for anything undeclared. Integer enums hold <code>long</code> values.</p>
<p>The converters support enums as dictionary keys without reflection, so a map keyed by an enum round-trips through <code>System.Text.Json</code> as the specification describes it.</p>
<h2>Usage Example</h2>
<p>Set an enum from its constant, and branch on a received value with <code>Match</code>:</p>
<pre><code class="language-csharp">var request = new ListOrdersRequest { Status = OrderStatus.Shipped };
var orders = await client.Orders.ListOrders(request);

foreach (var order in orders)
{
    var label = order.Status.Match(
        onPending: () =&gt; &quot;Waiting to ship&quot;,
        onShipped: () =&gt; &quot;On its way&quot;,
        onDelivered: () =&gt; &quot;Delivered&quot;,
        otherwise: raw =&gt; $&quot;Unknown status &#39;{raw}&#39;&quot;);

    Console.WriteLine($&quot;{order.Id}: {label} ({order.Status.Value})&quot;);
}
</code></pre>
<p>Use <code>.Value</code> rather than <code>ToString()</code> or string interpolation when the wire value leaves your process.</p>
<p>This feature is available in the C# v4 SDK (beta). Generate it from the APIMatic CLI:</p>
<pre><code class="language-bash">apimatic sdk generate --language=csharp --codegen-version=v4 --stability=beta
</code></pre>
<p>For the full set of flags and options, see the <a href="https://docs.apimatic.io/apimatic-cli/commands/#generate-sdks">APIMatic CLI documentation</a>.</p>
]]></content:encoded>
      <category>New Feature</category>
      <category>SDKs</category>
      <category>C#</category>
    </item>
    <item>
      <title>Per-Operation Request Records in C# v4 SDKs (Beta)</title>
      <link>https://docs.apimatic.io/changelog/added-per-operation-request-records-in-csharp-v4</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/added-per-operation-request-records-in-csharp-v4</guid>
      <pubDate>Wed, 23 Sep 2026 00:00:00 GMT</pubDate>
      <description>Every C# v4 endpoint method now takes a single typed request record instead of a flat parameter list, with required members enforced at compile time.</description>
      <content:encoded><![CDATA[<p>C# v4 SDKs now take one request record per operation. Instead of a long positional parameter list, each endpoint method accepts a <code>{Operation}Request</code> record whose members mirror the operation&#39;s parameters and body, so a call reads the same way the API reference does.</p>
<h2>Details</h2>
<p>Every operation that takes input gets a <code>public sealed record {Operation}Request</code>. Records for operations on a controller live under <code>Requests/{ApiGroup}/</code>, and records for operations on the client live under <code>Requests/</code>. Path, query and header parameters, the body and every form field become members of the record, named in PascalCase. A JSON, text or binary body is always the <code>Body</code> member.</p>
<p>Required inputs are <code>required</code> members, so a missing required value is a compile error rather than a runtime one. Optional inputs are nullable and are omitted from the request when left unset, inputs with a default keep it unless you override it, and constants are fixed on the record. The record carries the same constraint attributes a model property gets.</p>
<p>The method shape is now <code>Task&lt;T&gt; Op({Op}Request request, RequestOptions? requestOptions = null, CancellationToken cancellationToken = default)</code>. An operation with no input has no <code>request</code> parameter. The README, API reference, SDK map and plugin skills all teach the new call shape.</p>
<h2>Usage Example</h2>
<p>Build the record with an object initializer, setting members by name:</p>
<pre><code class="language-csharp">var orders = await client.Orders.ListOrders(
    new ListOrdersRequest
    {
        CustomerId = &quot;cus_123&quot;,
        Status = OrderStatus.Shipped,
        PerPage = 50,
    },
    cancellationToken: cancellationToken);

await client.Orders.DeleteOrder(new DeleteOrderRequest { OrderId = &quot;ord_456&quot; });
</code></pre>
<p>Pass <code>cancellationToken</code> by name so it never lands in the <code>requestOptions</code> slot.</p>
<p>This change alters every generated call site. Update your calls when you regenerate.</p>
<p>This feature is available in the C# v4 SDK (beta). Generate it from the APIMatic CLI:</p>
<pre><code class="language-bash">apimatic sdk generate --language=csharp --codegen-version=v4 --stability=beta
</code></pre>
<p>For the full set of flags and options, see the <a href="https://docs.apimatic.io/apimatic-cli/commands/#generate-sdks">APIMatic CLI documentation</a>.</p>
]]></content:encoded>
      <category>New Feature</category>
      <category>SDKs</category>
      <category>C#</category>
    </item>
    <item>
      <title>A Unified SdkException Family in C# v4 SDKs (Beta)</title>
      <link>https://docs.apimatic.io/changelog/added-sdk-exception-family-in-csharp-v4</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/added-sdk-exception-family-in-csharp-v4</guid>
      <pubDate>Fri, 18 Sep 2026 00:00:00 GMT</pubDate>
      <description>Every failure a C# v4 SDK raises now derives from one SdkException root, with typed exceptions for API errors, connection faults, timeouts, deserialization failures and credentials that could not be applied.</description>
      <content:encoded><![CDATA[<p>C# v4 SDKs now raise one family of exceptions. Everything the SDK throws for a call derives from <code>SdkException</code>, so a single <code>catch</code> covers every failure while the subclasses let you handle the ones you care about precisely.</p>
<h2>Details</h2>
<p><code>SdkException</code> carries the failed call&#39;s <code>Method</code> and <code>RequestUri</code>, and every message starts with that call, so a log line identifies the failing request without a typed catch. The underlying cause is always the <code>InnerException</code>.</p>
<table>
<thead>
<tr>
<th>Exception</th>
<th>When it is raised</th>
<th>Members it adds</th>
</tr>
</thead>
<tbody><tr>
<td><code>ApiException&lt;TError&gt;</code></td>
<td>The server answered with an error status</td>
<td><code>Error</code>, plus <code>StatusCode</code>, <code>Headers</code> and <code>ContentType</code> from <code>ApiException</code></td>
</tr>
<tr>
<td><code>ResponseDeserializationException</code></td>
<td>A response body did not match the type the specification declares</td>
<td><code>TargetType</code>, plus the <code>ApiException</code> members</td>
</tr>
<tr>
<td><code>SdkConnectionException</code></td>
<td>The request could not be sent, or the response body could not be read</td>
<td></td>
</tr>
<tr>
<td><code>SdkTimeoutException</code></td>
<td>An attempt, the transport or an event stream went silent</td>
<td><code>Timeout</code></td>
</tr>
<tr>
<td><code>AuthSchemeException</code></td>
<td>A credential could not be applied, such as an OAuth2 token request being refused</td>
<td><code>SchemeFailures</code></td>
</tr>
</tbody></table>
<p><code>TError</code> is the operation&#39;s own error type when the specification declares error responses for it, with one <code>TryGet</code> accessor per declared error body and <code>TryGetRawError</code> for any other status. When the operation declares none, <code>TError</code> is <code>RawError</code>, which carries the status code and the raw body. Your own cancellation always surfaces as the usual <code>OperationCanceledException</code> and is never wrapped.</p>
<h2>Usage Example</h2>
<p>Catch from the most specific exception to the most general:</p>
<pre><code class="language-csharp">try
{
    var payment = await client.Payments.CreatePayment(new CreatePaymentRequest { Body = newPayment });
}
catch (ApiException&lt;CreatePaymentError&gt; ex)
{
    if (ex.Error.TryGetValidationError(out var validation))
        Console.WriteLine($&quot;Rejected ({(int)ex.StatusCode}): {validation.Message}&quot;);
    else if (ex.Error.TryGetRawError(out var raw))
        Console.WriteLine($&quot;HTTP {(int)raw.StatusCode}: {raw.ReadAsString()}&quot;);
}
catch (SdkTimeoutException ex)
{
    Console.WriteLine($&quot;No answer within {ex.Timeout}&quot;);
}
catch (SdkConnectionException ex)
{
    Console.WriteLine($&quot;Could not reach the API: {ex.InnerException?.Message}&quot;);
}
catch (SdkException ex)
{
    Console.WriteLine(ex.Message);
}
</code></pre>
<p><code>ResponseDeserializationException</code> and <code>AuthSchemeException</code> both land in the final <code>SdkException</code> arm here. Give them their own arms when you need to tell them apart.</p>
<p>This feature is available in the C# v4 SDK (beta). Generate it from the APIMatic CLI:</p>
<pre><code class="language-bash">apimatic sdk generate --language=csharp --codegen-version=v4 --stability=beta
</code></pre>
<p>For the full set of flags and options, see the <a href="https://docs.apimatic.io/apimatic-cli/commands/#generate-sdks">APIMatic CLI documentation</a>.</p>
]]></content:encoded>
      <category>New Feature</category>
      <category>SDKs</category>
      <category>C#</category>
    </item>
    <item>
      <title>SDK Identification Headers and Automatic Idempotency Keys in TypeScript v4 SDKs (Beta)</title>
      <link>https://docs.apimatic.io/changelog/added-sdk-identification-headers-and-idempotency-key-in-typescript-v4</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/added-sdk-identification-headers-and-idempotency-key-in-typescript-v4</guid>
      <pubDate>Thu, 17 Sep 2026 00:00:00 GMT</pubDate>
      <description>TypeScript v4 SDKs now send a User-Agent and the X-APIMatic-* identification headers on every request, and mint an Idempotency-Key on every non-GET request.</description>
      <content:encoded><![CDATA[<p>TypeScript v4 SDKs now identify themselves on every request and protect non-idempotent calls against accidental replay, matching the C# and Python v4 SDKs.</p>
<h2>Details</h2>
<h3>Identification headers</h3>
<p>Every request carries a <code>User-Agent</code> and the <code>X-APIMatic-*</code> headers that name the SDK, its version, the generator version, the operating system and the JavaScript runtime it is running on. The operating system and runtime are detected when the client is built, so the same package reports correctly under Node.js, Deno, Bun, Cloudflare Workers and the browser. The values sit at the lowest header layer, so a header an operation declares in the specification takes precedence.</p>
<h3>Idempotency keys</h3>
<p>Every non-GET request is sent with an <code>Idempotency-Key</code> header holding a UUID minted once per call, and every retry of that call carries the same key. An API that honors the header can recognize a retried request and avoid applying it twice.</p>
<h2>Example Request</h2>
<p>A request sent by the SDK on Node.js carries these headers with no setup:</p>
<pre><code class="language-http">POST /payments HTTP/1.1
User-Agent: PaymentsClient/1.0.0 TypeScript
X-APIMatic-Lang: TypeScript
X-APIMatic-Package-Version: 1.0.0
X-APIMatic-Gen-Version: 4.0.0
X-APIMatic-OS: linux x64
X-APIMatic-Runtime: Node.js/22.11.0
Idempotency-Key: 6f1c2e8a-4b7d-4a39-9c1e-2f5d8b3a7c41
</code></pre>
<p>The first four values are fixed when the SDK is generated, and the OS and runtime are detected from the host. On Deno, <code>X-APIMatic-Runtime</code> reads <code>Deno/2.1.4</code>, and a runtime that exposes neither fact sends neither header. A GET request carries the same identification headers but no <code>Idempotency-Key</code>.</p>
<p>This feature is available in the TypeScript v4 SDK (beta). Generate it from the APIMatic CLI:</p>
<pre><code class="language-bash">apimatic sdk generate --language=typescript --codegen-version=v4 --stability=beta
</code></pre>
<p>For the full set of flags and options, see the <a href="https://docs.apimatic.io/apimatic-cli/commands/#generate-sdks">APIMatic CLI documentation</a>.</p>
]]></content:encoded>
      <category>New Feature</category>
      <category>SDKs</category>
      <category>TypeScript</category>
    </item>
    <item>
      <title>Discriminated Unions and Enum Defaults in Python v4 SDKs (Beta)</title>
      <link>https://docs.apimatic.io/changelog/added-discriminated-unions-and-enum-defaults-in-python-v4</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/added-discriminated-unions-and-enum-defaults-in-python-v4</guid>
      <pubDate>Wed, 16 Sep 2026 00:00:00 GMT</pubDate>
      <description>Python v4 SDKs now tag oneOf unions and allOf hierarchies by their wire discriminator, give every model a dict companion, and honor enum defaults.</description>
      <content:encoded><![CDATA[<p>Python v4 SDKs now resolve discriminated unions precisely. A <code>oneOf</code> union or an <code>allOf</code> hierarchy that declares a discriminator is tagged by the wire key, so the SDK picks the right variant on the way in and writes the right tag on the way out, even when the variant model does not declare the tag field itself.</p>
<h2>Details</h2>
<h3>Discriminated unions</h3>
<p>A discriminated union is a type alias over its variants, read through the runtime&#39;s <code>WireDiscriminator</code>. On deserialization it reads the discriminator property your specification names and returns the matching variant, so you narrow the result with <code>isinstance</code> or <code>match</code> on its class rather than on a tag string. On serialization the union writes the tag for the variant you built. Polymorphic <code>allOf</code> hierarchies are handled the same way as <code>oneOf</code> unions.</p>
<h3>Dict companions and enum defaults</h3>
<p>Every model now has a <code>{Model}Dict</code> companion, a closed <code>TypedDict</code> with the same fields, so any parameter that takes a model also takes a plain dictionary and your type checker still checks its keys. A union&#39;s dictionary spelling carries the tag key, because a bare dictionary has no class to read it from. An enum property with a default in the specification now defaults to that member in the generated model.</p>
<h2>Usage Example</h2>
<p>Send the variant you mean as a model or a dictionary, and narrow what comes back on its class:</p>
<pre><code class="language-python">from payments import PaymentsClient
from payments.models import BankPayment, CardPayment

client = PaymentsClient(bearer_auth=&quot;YOUR_ACCESS_TOKEN&quot;)

# The union writes the &quot;paymentType&quot; tag; currency takes the spec&#39;s default, Currency.USD.
payment = client.payments.create_payment(CardPayment(card_token=&quot;tok_visa&quot;, amount=1000))

# The dictionary spelling carries the tag itself.
client.payments.create_payment({&quot;paymentType&quot;: &quot;bank&quot;, &quot;iban&quot;: &quot;DE89370400440532013000&quot;, &quot;amount&quot;: 1000})

# The response arrives as the matching variant.
match payment:
    case CardPayment() as card:
        print(&quot;Card ending&quot;, card.last4)
    case BankPayment() as bank:
        print(&quot;Bank transfer from&quot;, bank.iban)
</code></pre>
<p>A dictionary without the tag key raises a pydantic <code>ValidationError</code> (<code>union_tag_not_found</code>) at the call.</p>
<p>This feature is available in the Python v4 SDK (beta). Generate it from the APIMatic CLI:</p>
<pre><code class="language-bash">apimatic sdk generate --language=python --codegen-version=v4 --stability=beta
</code></pre>
<p>For the full set of flags and options, see the <a href="https://docs.apimatic.io/apimatic-cli/commands/#generate-sdks">APIMatic CLI documentation</a>.</p>
]]></content:encoded>
      <category>New Feature</category>
      <category>SDKs</category>
      <category>Python</category>
    </item>
    <item>
      <title>File and Multipart Payloads in TypeScript v4 SDKs (Beta)</title>
      <link>https://docs.apimatic.io/changelog/added-file-and-multipart-payloads-in-typescript-v4</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/added-file-and-multipart-payloads-in-typescript-v4</guid>
      <pubDate>Thu, 10 Sep 2026 00:00:00 GMT</pubDate>
      <description>TypeScript v4 SDKs now send binary request bodies and multipart forms mixing file, JSON and text parts, and receive binary success and error responses.</description>
      <content:encoded><![CDATA[<p>TypeScript v4 SDKs now handle files end to end. Binary request bodies, <code>multipart/form-data</code> forms whose parts are files, typed JSON documents or text fields, and binary success and error responses all generate with typed signatures.</p>
<h2>Details</h2>
<p>A file is passed as a <code>FileInput</code>: a <code>Blob</code>, a <code>Uint8Array</code>, an <code>ArrayBuffer</code>, a web <code>ReadableStream</code>, or a Node stream such as <code>createReadStream(path)</code>. Wrap any of them as <code>{ data, fileName, contentType }</code> to name the file or override its media type. A path on its own is not a file, so open it first. A multipart form takes each part as its own request field, and a field declared as an array of files sends one part per file.</p>
<p>A binary success response resolves to <code>BinaryContent</code>, a handle whose <code>stream</code> is the unread response body together with its <code>contentType</code> and <code>fileName</code>. Read the stream once or cancel it. A binary error response arrives as <code>BinaryErrorContent</code> on the thrown error&#39;s payload, with its bytes already read, so the body is never lost.</p>
<h2>Usage Example</h2>
<p>Upload a multipart form from a file on disk, then download a file and save it:</p>
<pre><code class="language-typescript">import { openAsBlob } from &quot;node:fs&quot;;
import { writeFile } from &quot;node:fs/promises&quot;;
import { PaymentsClient } from &quot;payments&quot;;

const client = new PaymentsClient();

const uploaded = await client.files.uploadForm({
  file: { data: await openAsBlob(&quot;report.pdf&quot;), fileName: &quot;report.pdf&quot; },
  metadata: { title: &quot;Q3 report&quot; },
  label: &quot;finance&quot;,
});

const download = await client.files.download({ fileId: uploaded.id });
const bytes = new Uint8Array(await new Response(download.stream).arrayBuffer());
await writeFile(&quot;report-copy.pdf&quot;, bytes);
</code></pre>
<p>The server&#39;s <code>fileName</code> on a download is untrusted input, so name the file you write yourself.</p>
<p>This feature is available in the TypeScript v4 SDK (beta). Generate it from the APIMatic CLI:</p>
<pre><code class="language-bash">apimatic sdk generate --language=typescript --codegen-version=v4 --stability=beta
</code></pre>
<p>For the full set of flags and options, see the <a href="https://docs.apimatic.io/apimatic-cli/commands/#generate-sdks">APIMatic CLI documentation</a>.</p>
]]></content:encoded>
      <category>New Feature</category>
      <category>SDKs</category>
      <category>TypeScript</category>
    </item>
    <item>
      <title>File and Binary Payloads in Python v4 SDKs (Beta)</title>
      <link>https://docs.apimatic.io/changelog/added-file-and-binary-payloads-in-python-v4</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/added-file-and-binary-payloads-in-python-v4</guid>
      <pubDate>Thu, 03 Sep 2026 00:00:00 GMT</pubDate>
      <description>Python v4 SDKs now send binary request bodies and multipart forms, and receive binary responses, through one file type surface.</description>
      <content:encoded><![CDATA[<p>Python v4 SDKs now handle files. An operation that uploads a binary body or a <code>multipart/form-data</code> form, and one that returns a binary body on success or on error, all generate with typed parameters and typed results.</p>
<h2>Details</h2>
<p>A file is passed as a <code>Path</code>, <code>bytes</code>, any binary reader or an iterator of chunks, and the same <code>FileInput</code> type is accepted for a raw binary body and for a multipart file part. A <code>Path</code> streams from disk, keeps its <code>Content-Length</code> and names the file on the wire. Wrap any source in <code>NamedFile</code> to set the filename or the media type yourself. A multipart form takes each part as its own parameter: a file, a typed JSON document or a text field.</p>
<p>A binary success response is returned as a <code>FileResponse</code> whose body has not been read yet. Save it to disk, read it into memory or iterate its chunks, and each of those closes the connection when it finishes. A binary error response arrives as a <code>RawError</code> on the raised <code>ApiError</code>, with its bytes in <code>content</code>, so the body is never lost.</p>
<p>The asynchronous client takes <code>AsyncFileInput</code>, which also accepts async readers and async iterables, and returns an <code>AsyncFileResponse</code>.</p>
<h2>Usage Example</h2>
<p>Upload from a path, override the filename where the source has none, and stream a download to disk:</p>
<pre><code class="language-python">from pathlib import Path

from payments import PaymentsClient
from payments.core import NamedFile

client = PaymentsClient(bearer_auth=&quot;YOUR_ACCESS_TOKEN&quot;)

# A Path streams from disk and sends its own filename.
client.documents.upload_document(Path(&quot;invoice.pdf&quot;))

# In-memory bytes carry no name, so give them one and the media type the server expects.
client.documents.upload_document(NamedFile(pdf_bytes, filename=&quot;invoice.pdf&quot;, media_type=&quot;application/pdf&quot;))

# The download streams to disk, and save_to releases the connection when it is done.
client.documents.download_document(&quot;doc_123&quot;).save_to(&quot;invoice-copy.pdf&quot;)
</code></pre>
<p>Every file goes out as <code>application/octet-stream</code> unless you set <code>media_type</code> on a <code>NamedFile</code>.</p>
<p>This feature is available in the Python v4 SDK (beta). Generate it from the APIMatic CLI:</p>
<pre><code class="language-bash">apimatic sdk generate --language=python --codegen-version=v4 --stability=beta
</code></pre>
<p>For the full set of flags and options, see the <a href="https://docs.apimatic.io/apimatic-cli/commands/#generate-sdks">APIMatic CLI documentation</a>.</p>
]]></content:encoded>
      <category>New Feature</category>
      <category>SDKs</category>
      <category>Python</category>
    </item>
    <item>
      <title>README, API Reference, SDK Map and Context Plugin for TypeScript v4 SDKs (Beta)</title>
      <link>https://docs.apimatic.io/changelog/added-readme-api-reference-sdk-map-and-context-plugin-in-typescript-v4</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/added-readme-api-reference-sdk-map-and-context-plugin-in-typescript-v4</guid>
      <pubDate>Thu, 03 Sep 2026 00:00:00 GMT</pubDate>
      <description>Every generated TypeScript v4 SDK now ships a README, an API reference, an SDK map and the skills that let AI coding tools integrate it correctly.</description>
      <content:encoded><![CDATA[<p>TypeScript v4 SDKs now ship with their documentation and with a context plugin. A <code>README.md</code> gets a developer started, <code>api-reference.md</code> documents every operation, <code>sdk-map.md</code> with a page per resource indexes the package, and the plugin skills teach AI coding tools how to use it.</p>
<h2>Details</h2>
<p>The README covers installation from npm or from the SDK source, constructing the client with a placeholder credential for every declared authentication scheme, and the CommonJS form. The API reference documents each operation with a sample for awaiting it and for the non-throwing <code>.asApiResult()</code> form, a description of every parameter, and the success and error types it resolves or rejects with.</p>
<p>The SDK map is a lookup index of the TypeScript surface: client construction, the client options, servers and auth, the error-handling model, and one page per resource giving each operation&#39;s signature, route, request fields and the file behind every type. The context plugin wraps it with two skills generated from your API, an integration skill and a getting-started skill, beside the API-agnostic companions that cover client construction, authentication, calling endpoints, models, error handling, configuration and testing.</p>
<h2>Usage Example</h2>
<p>The documentation lands at the root of the generated package, and the skills land in the context plugin:</p>
<pre><code class="language-text">payments/                                   # the generated npm package
├── README.md                               # install and construct the client
├── api-reference.md                        # every operation, with samples
├── sdk-map.md                              # index of the whole TypeScript surface
├── map/
│   └── operations/
│       ├── payments.md                     # one page per resource
│       └── invoices.md
├── package.json
└── src/

plugin/
└── skills/
    └── typescript/
        ├── typescript-integrate-payments/SKILL.md
        ├── typescript-getting-started/SKILL.md
        └── typescript-error-handling/SKILL.md   # one of the companion skills
</code></pre>
<p>The README points to the SDK map first, so a reader or a coding assistant starts from the index rather than the source.</p>
<p>This feature is available in the TypeScript v4 SDK (beta). Generate it from the APIMatic CLI:</p>
<pre><code class="language-bash">apimatic sdk generate --language=typescript --codegen-version=v4 --stability=beta
</code></pre>
<p>For the full set of flags and options, see the <a href="https://docs.apimatic.io/apimatic-cli/commands/#generate-sdks">APIMatic CLI documentation</a>.</p>
]]></content:encoded>
      <category>New Feature</category>
      <category>SDKs</category>
      <category>TypeScript</category>
    </item>
    <item>
      <title>README, API Reference and SDK Map in Python v4 SDKs (Beta)</title>
      <link>https://docs.apimatic.io/changelog/added-readme-api-reference-and-sdk-map-in-python-v4</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/added-readme-api-reference-and-sdk-map-in-python-v4</guid>
      <pubDate>Wed, 02 Sep 2026 00:00:00 GMT</pubDate>
      <description>Every generated Python v4 SDK now ships a README, a complete API reference and an SDK map that describes the package to developers and AI coding tools alike.</description>
      <content:encoded><![CDATA[<p>Python v4 SDKs now ship their own documentation. A <code>README.md</code> gets a developer started, <code>api-reference.md</code> and <code>raw-api-reference.md</code> document every operation, and <code>sdk-map.md</code> with a page per API group is a lookup index of the whole package.</p>
<h2>Details</h2>
<p>The README covers installation, constructing the synchronous and asynchronous clients with a placeholder credential for every declared authentication scheme, logging and best practices. The API reference documents each operation with a sync and an async sample, its parameter table, its response type and the errors it can raise. The raw API reference covers the same operations through <code>with_raw_response</code>, which returns an <code>ApiResult</code> instead of raising for an API error.</p>
<p>The SDK map is written for tools as much as people. It answers call-level questions such as an operation&#39;s signature, return type and errors by lookup, and for anything it does not carry, such as a model&#39;s shape or an enum&#39;s values, it names the one source file to read. A coding assistant can then ground its answers in the SDK you actually shipped rather than guessing from the specification.</p>
<h2>Usage Example</h2>
<p>The documentation lands at the root of the generated package, beside the source:</p>
<pre><code class="language-text">payments/
├── README.md               # install, construct the client, configure logging
├── api-reference.md        # every operation: samples, parameters, response, errors
├── raw-api-reference.md    # the same operations through with_raw_response
├── sdk-map.md              # lookup index of the whole Python surface
├── map/
│   └── operations/
│       ├── payments.md     # one page per API group
│       └── refunds.md
├── pyproject.toml
├── LICENSE
└── payments/
    ├── client.py
    ├── async_client.py
    ├── apis/
    ├── models/
    └── core/
</code></pre>
<p>The README links to both API references and to the SDK map, so a reader can start there.</p>
<p>This feature is available in the Python v4 SDK (beta). Generate it from the APIMatic CLI:</p>
<pre><code class="language-bash">apimatic sdk generate --language=python --codegen-version=v4 --stability=beta
</code></pre>
<p>For the full set of flags and options, see the <a href="https://docs.apimatic.io/apimatic-cli/commands/#generate-sdks">APIMatic CLI documentation</a>.</p>
]]></content:encoded>
      <category>New Feature</category>
      <category>SDKs</category>
      <category>Python</category>
    </item>
    <item>
      <title>SDK Identification Headers and Automatic Idempotency Keys in Python v4 SDKs (Beta)</title>
      <link>https://docs.apimatic.io/changelog/added-sdk-identification-headers-and-idempotency-key-in-python-v4</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/added-sdk-identification-headers-and-idempotency-key-in-python-v4</guid>
      <pubDate>Mon, 31 Aug 2026 00:00:00 GMT</pubDate>
      <description>Python v4 SDKs now send a User-Agent and the X-APIMatic-* identification headers on every request, and mint an Idempotency-Key on every non-GET request.</description>
      <content:encoded><![CDATA[<p>Python v4 SDKs now identify themselves on every request and protect non-idempotent calls against accidental replay, matching the behavior introduced in C# v4 SDKs in July.</p>
<h2>Details</h2>
<h3>Identification headers</h3>
<p>Every request carries a <code>User-Agent</code> and the <code>X-APIMatic-*</code> headers that name the SDK, its version, the operating system and the Python runtime it is running on. The values are seeded at the lowest header layer, so a header you set yourself always wins.</p>
<h3>Idempotency keys</h3>
<p>Every non-GET request is sent with an <code>Idempotency-Key</code> header holding a UUID minted for that call, and the SDK reuses the same key on every retry of it. An API that honors the header can recognize a retried request and avoid applying it twice. Where an operation declares its own <code>Idempotency-Key</code> header parameter, the SDK sends the value you pass instead of minting one. You can also supply your own key for any call through <code>extra_headers</code> in <code>request_options</code>.</p>
<h2>Example Request</h2>
<p>A request sent by the SDK carries these headers with no setup:</p>
<pre><code class="language-http">POST /payments HTTP/1.1
User-Agent: PaymentsClient/1.0.0 Python
X-APIMatic-Lang: Python
X-APIMatic-Package-Version: 1.0.0
X-APIMatic-Gen-Version: 4.0.0
X-APIMatic-OS: Darwin 23.5.0 arm64
X-APIMatic-Runtime: CPython 3.13.14
Idempotency-Key: 6f1c2e8a-4b7d-4a39-9c1e-2f5d8b3a7c41
</code></pre>
<p>The first four values are fixed when the SDK is generated, and the OS and runtime are read from the host. A GET request carries the same identification headers but no <code>Idempotency-Key</code>.</p>
<p>This feature is available in the Python v4 SDK (beta). Generate it from the APIMatic CLI:</p>
<pre><code class="language-bash">apimatic sdk generate --language=python --codegen-version=v4 --stability=beta
</code></pre>
<p>For the full set of flags and options, see the <a href="https://docs.apimatic.io/apimatic-cli/commands/#generate-sdks">APIMatic CLI documentation</a>.</p>
]]></content:encoded>
      <category>New Feature</category>
      <category>SDKs</category>
      <category>Python</category>
    </item>
    <item>
      <title>Authentication Schemes and OAuth2 Grants in TypeScript v4 SDKs (Beta)</title>
      <link>https://docs.apimatic.io/changelog/added-authentication-in-typescript-v4</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/added-authentication-in-typescript-v4</guid>
      <pubDate>Fri, 28 Aug 2026 00:00:00 GMT</pubDate>
      <description>TypeScript v4 SDKs now authenticate requests with every scheme the specification declares, including AND/OR combinations and the three OAuth2 grants.</description>
      <content:encoded><![CDATA[<p>TypeScript v4 SDKs now authenticate the requests they send. Every authentication scheme your specification declares is generated into <code>src/auth-schemes.ts</code>, and the client options expose one optional credential property per scheme, named after it.</p>
<h2>Details</h2>
<p>Basic authentication, bearer tokens and API keys sent in a header, a query parameter or a cookie are all supported, as are operations that require several schemes together (<code>AND</code>) or accept any one of several (<code>OR</code>). OAuth2 is supported for the client credentials, authorization code with PKCE, and password grants. The SDK requests the token on first use, caches it until shortly before it expires, and refreshes an authorization-code token with its refresh token.</p>
<p>Each credential property is typed for its scheme. A key or token can also be a function, which the SDK calls on every request, so a credential can rotate without rebuilding the client. When the token endpoint refuses the credentials, or the authorization prompt fails, the call rejects with an <code>AuthError</code> and the operation is never sent. A 401 answered by the operation itself is an <code>ApiError</code>.</p>
<h2>Usage Example</h2>
<p>Pass a credential for each scheme your API declares when you construct the client:</p>
<pre><code class="language-typescript">import { PaymentsClient, PaymentsError } from &quot;payments&quot;;

const client = new PaymentsClient({
  oAuth2ClientCredentials: {
    clientId: process.env.PAYMENTS_CLIENT_ID ?? &quot;&quot;,
    clientSecret: process.env.PAYMENTS_CLIENT_SECRET ?? &quot;&quot;,
  },
  // A function is called on every request, so the key can rotate.
  apiKeyHeader: () =&gt; process.env.PAYMENTS_API_KEY ?? &quot;&quot;,
});

try {
  const payment = await client.payments.get({ paymentId: &quot;pay_123&quot; });
  console.log(payment.status);
} catch (err) {
  if (err instanceof PaymentsError &amp;&amp; err.kind === &quot;auth&quot;) {
    console.error(&quot;Could not obtain a token:&quot;, err.message);
  } else {
    throw err;
  }
}
</code></pre>
<p>The token request runs once and is shared by every call until the token nears expiry.</p>
<p>This feature is available in the TypeScript v4 SDK (beta). Generate it from the APIMatic CLI:</p>
<pre><code class="language-bash">apimatic sdk generate --language=typescript --codegen-version=v4 --stability=beta
</code></pre>
<p>For the full set of flags and options, see the <a href="https://docs.apimatic.io/apimatic-cli/commands/#generate-sdks">APIMatic CLI documentation</a>.</p>
]]></content:encoded>
      <category>New Feature</category>
      <category>SDKs</category>
      <category>TypeScript</category>
    </item>
    <item>
      <title>Generate and Publish Context Plugins from the APIMatic CLI</title>
      <link>https://docs.apimatic.io/changelog/generate-and-publish-context-plugins-from-the-cli</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/generate-and-publish-context-plugins-from-the-cli</guid>
      <pubDate>Thu, 27 Aug 2026 00:00:00 GMT</pubDate>
      <description>Two new commands, apimatic plugin generate and apimatic plugin publish, build a context plugin from your published SDKs and print the git commands that publish it to GitHub.</description>
      <content:encoded><![CDATA[<p>The APIMatic CLI can now build a <a href="https://docs.apimatic.io/context-plugins/overview">context plugin</a> from your published SDKs and hand you the commands that publish it to GitHub. Two new commands do the work: <a href="https://docs.apimatic.io/apimatic-cli/commands#generate-a-context-plugin"><code>apimatic plugin generate</code></a> and <a href="https://docs.apimatic.io/apimatic-cli/commands#publish-a-context-plugin"><code>apimatic plugin publish</code></a>.</p>
<p>You may be aware of our context plugins for codegen v3, which came bundled with the generated API portal. The ones described here are for codegen v4, our new, modern SDKs. This newer kind is a separate thing: a local artifact made of skill files, serving the same purpose with more control over what it covers and who you hand it to.</p>
<h2>What you get</h2>
<p>The generated plugin is a <code>.claude-plugin/plugin.json</code> manifest alongside a set of skills for each language you have published an SDK for. Claude Code, VS Code, and Cursor can all load it. The skills cover the parts of an integration that are easy to get wrong from model memory alone, including client initialization, authentication, calling endpoints, building and reading models, error handling, configuration and resilience, and testing.</p>
<p>Because the skills are generated from your API specification and your published SDK, your AI coding agent writes integration code against the SDK you actually shipped rather than against whatever it recalls from training data.</p>
<h2>Generate a plugin</h2>
<p>Publish an SDK first. Publishing is what tells the plugin which languages to cover, so a project with no published SDK has nothing to generate from.</p>
<pre><code class="language-bash">apimatic plugin generate
</code></pre>
<p><a href="https://docs.apimatic.io/apimatic-cli/commands#generate-a-context-plugin"><code>apimatic plugin generate</code></a> asks for the three things it can&#39;t derive: an ID for the plugin (lower-case words separated by single dashes, such as <code>acme-payments</code>), a display name, and a version. It then generates the plugin and writes it to <code>./plugin</code>.</p>
<p>Every SDK the plugin covers has to be published to GitHub, so include source code publishing (<code>--publish-type=sourcecode</code>) when you publish each one. The plugin points AI agents at that GitHub repository for the SDK source code: a language recorded from a package-only publish carries no repository for the plugin to use, and the CLI warns you when it finds one. See the <a href="https://docs.apimatic.io/generate-sdks/sdk-publishing/sdk-publishing-overview">SDK Publishing Overview</a> for how publishing works.</p>
<h2>Publish it to GitHub</h2>
<pre><code class="language-bash">apimatic plugin publish
</code></pre>
<p><a href="https://docs.apimatic.io/apimatic-cli/commands#publish-a-context-plugin"><code>apimatic plugin publish</code></a> prints the git commands that publish your plugin to a GitHub repository, and stops there. It never touches your repository, creates nothing, and pushes nothing. You review the sequence and run it yourself.</p>
<p>Before the commands, it reports what&#39;s about to become public, as a file and directory count. The repository it proposes is public, so this is your chance to look at the plugin directory before anything leaves your machine.</p>
<h2>Try it out</h2>
<p>Install the latest CLI:</p>
<pre><code class="language-bash">npm install -g @apimatic/cli@latest
</code></pre>
<p>For the full list of flags and options, see <a href="https://docs.apimatic.io/apimatic-cli/commands#plugin-commands">Plugin Commands</a>.</p>
]]></content:encoded>
      <category>CLI</category>
      <category>New Feature</category>
      <category>AI</category>
    </item>
    <item>
      <title>New TypeScript SDK Now Available in Beta</title>
      <link>https://docs.apimatic.io/changelog/added-typescript-sdk-v4-beta</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/added-typescript-sdk-v4-beta</guid>
      <pubDate>Thu, 27 Aug 2026 00:00:00 GMT</pubDate>
      <description>A new TypeScript SDK is now available in beta. Use the --codegen-version and --stability flags in the APIMatic CLI to generate it.</description>
      <content:encoded><![CDATA[<p>The new TypeScript SDK is now available in beta. You can generate it today using the <a href="https://docs.apimatic.io/v4/apimatic-cli/getting-started">APIMatic CLI</a>. Try it out and share your feedback with us.</p>
<h2>What&#39;s New?</h2>
<ul>
<li><strong>Redesigned Core Architecture</strong>: Single-orchestrator pipeline with dedicated, fully decoupled components for auth, resilience, serialization, and error handling</li>
<li><strong>Predictable Endpoint Structure</strong>: Every endpoint maps directly to its HTTP call, making the full request lifecycle visible and predictable across all methods</li>
<li><strong>Type-Safe Models</strong>: Response models enforce optionality and presence contracts at compile time, eliminating runtime surprises</li>
<li><strong>Per-Endpoint Typed Errors</strong>: Each endpoint exposes its own error type, fully navigable in the IDE without consulting documentation</li>
<li><strong>Broad Runtime Compatibility</strong>: Runs on Node.js and in the browser, shipping both ESM and CommonJS builds alongside bundled type declarations</li>
</ul>
<h2>Generating the SDK</h2>
<p>The <code>apimatic sdk generate</code> command supports two flags for selecting the code generator version and stability level:</p>
<table>
<thead>
<tr>
<th>Flag</th>
<th>Options</th>
<th>Description</th>
</tr>
</thead>
<tbody><tr>
<td><code>--codegen-version</code></td>
<td><code>v3</code> (default), <code>v4</code></td>
<td>Version of the code generator to use.</td>
</tr>
<tr>
<td><code>--stability</code></td>
<td><code>stable</code> (default), <code>beta</code></td>
<td>Stability level of the generated SDK.</td>
</tr>
</tbody></table>
<p>Pass <code>--codegen-version=v4</code> and <code>--stability=beta</code> to generate the new SDK:</p>
<pre><code class="language-bash">apimatic sdk generate --language=typescript --codegen-version=v4 --stability=beta
</code></pre>
<blockquote>
<p><strong>Note</strong></p>
<p>v4 beta is currently available for <strong>C#</strong>, <strong>Python</strong>, and <strong>TypeScript</strong>. While the <code>--codegen-version</code> and <code>--stability</code> flags are accepted for all languages, using <code>--codegen-version=v4</code> with any other language will result in a generation error.</p>
</blockquote>
]]></content:encoded>
      <category>CLI</category>
      <category>SDKs</category>
      <category>TypeScript</category>
      <category>Feature</category>
    </item>
    <item>
      <title>An SDK Hooks Seam in C# v4 SDKs (Beta)</title>
      <link>https://docs.apimatic.io/changelog/added-sdk-hooks-in-csharp-v4</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/added-sdk-hooks-in-csharp-v4</guid>
      <pubDate>Mon, 24 Aug 2026 00:00:00 GMT</pubDate>
      <description>C# v4 SDKs now expose hooks that observe every request and response attempt, registered for the whole client or for a single call.</description>
      <content:encoded><![CDATA[<p>C# v4 SDKs now expose hooks you can register to observe every request the client sends and every response it receives, with the context the SDK has about the call.</p>
<h2>Details</h2>
<p>The SDK now ships an <code>SdkHook</code> type under <code>Core.Hooks</code>. Register hooks client-wide through the <code>Hooks</code> client option, or for one call through <code>RequestOptions.Hooks</code>. A hook runs inside the retry pipeline, once per attempt, after authentication is applied, so it sees exactly what goes out and every raw response, including the status and headers a successful call does not return. Each hook receives a <code>HookContext</code> with the call&#39;s method, URI and request options.</p>
<h2>Usage Example</h2>
<p>Register a hook that records the rate-limit budget from every response:</p>
<pre><code class="language-csharp">var options = new PaymentsClientOptions
{
    Hooks =
    [
        SdkHook.OnResponse((response, context) =&gt;
        {
            if (response.Headers.TryGetValues(&quot;X-RateLimit-Remaining&quot;, out var remaining))
                Console.WriteLine($&quot;{context.Method} {context.Uri}: {remaining.First()} calls left&quot;);
        }),
    ],
};
</code></pre>
<p>A hook observes the call. An exception thrown from a hook fails the call and is not retried.</p>
<p>This feature is available in the C# v4 SDK (beta). Generate it from the APIMatic CLI:</p>
<pre><code class="language-bash">apimatic sdk generate --language=csharp --codegen-version=v4 --stability=beta
</code></pre>
<p>For the full set of flags and options, see the <a href="https://docs.apimatic.io/apimatic-cli/commands/#generate-sdks">APIMatic CLI documentation</a>.</p>
]]></content:encoded>
      <category>New Feature</category>
      <category>SDKs</category>
      <category>C#</category>
    </item>
    <item>
      <title>Preserving Additional Properties in C# v4 SDKs (Beta)</title>
      <link>https://docs.apimatic.io/changelog/added-additional-properties-in-csharp-v4</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/added-additional-properties-in-csharp-v4</guid>
      <pubDate>Fri, 21 Aug 2026 00:00:00 GMT</pubDate>
      <description>C# v4 models now keep fields the specification does not name in an AdditionalProperties bag, so they survive deserialization and are written back on serialization.</description>
      <content:encoded><![CDATA[<p>C# v4 SDKs now keep the fields your specification does not name. Object models carry an <code>AdditionalProperties</code> bag, so an extra field in a response is no longer dropped, and you can send fields of your own the specification does not declare.</p>
<h2>Details</h2>
<p>Object and <code>allOf</code> models now carry an <code>AdditionalProperties</code> bag, so a field the SDK does not model survives deserialization and is written back on serialization. When the schema types its additional values, the bag is <code>AdditionalProperties&lt;TValue&gt;</code>. Otherwise it holds the raw JSON and <code>TryGetValue&lt;T&gt;</code> deserializes an entry on demand. A schema that sets <code>additionalProperties: false</code> gets no bag. Keys are wire names.</p>
<h2>Usage Example</h2>
<p>Read and send a field the specification does not name:</p>
<pre><code class="language-csharp">var customer = await client.Customers.GetCustomer(new GetCustomerRequest { CustomerId = &quot;cus_123&quot; });

if (customer.AdditionalProperties.TryGetValue&lt;string&gt;(&quot;loyalty_tier&quot;, out var tier))
{
    Console.WriteLine($&quot;Loyalty tier: {tier}&quot;);
}

var update = new CustomerUpdate { Email = &quot;jane@example.com&quot; };
update.AdditionalProperties.Set(&quot;loyalty_tier&quot;, &quot;gold&quot;);
</code></pre>
<p>This feature is available in the C# v4 SDK (beta). Generate it from the APIMatic CLI:</p>
<pre><code class="language-bash">apimatic sdk generate --language=csharp --codegen-version=v4 --stability=beta
</code></pre>
<p>For the full set of flags and options, see the <a href="https://docs.apimatic.io/apimatic-cli/commands/#generate-sdks">APIMatic CLI documentation</a>.</p>
]]></content:encoded>
      <category>New Feature</category>
      <category>SDKs</category>
      <category>C#</category>
    </item>
    <item>
      <title>New Python SDK Now Available in Beta</title>
      <link>https://docs.apimatic.io/changelog/added-python-sdk-v4-beta</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/added-python-sdk-v4-beta</guid>
      <pubDate>Thu, 13 Aug 2026 00:00:00 GMT</pubDate>
      <description>A new Python SDK is now available in beta. Use the --codegen-version and --stability flags in the APIMatic CLI to generate it.</description>
      <content:encoded><![CDATA[<p>The new Python SDK is now available in beta. You can generate it today using the <a href="https://docs.apimatic.io/v4/apimatic-cli/getting-started">APIMatic CLI</a>. Try it out and share your feedback with us.</p>
<h2>What&#39;s New?</h2>
<ul>
<li><strong>Redesigned Core Architecture</strong>: Single-orchestrator pipeline with dedicated, fully decoupled components for auth, resilience, serialization, and error handling</li>
<li><strong>Predictable Endpoint Structure</strong>: Every endpoint maps directly to its HTTP call, making the full request lifecycle visible and predictable across all methods</li>
<li><strong>Type-Safe Models</strong>: Models are fully type-annotated, so optionality and presence contracts are enforced by your type checker and surfaced by your editor instead of showing up at runtime</li>
<li><strong>Per-Endpoint Typed Errors</strong>: Each endpoint exposes its own exception type, fully navigable in the IDE without consulting documentation</li>
<li><strong>Broad Runtime Compatibility</strong>: Ships as a standard, <code>pip</code>-installable package with both synchronous and asynchronous clients</li>
</ul>
<h2>Generating the SDK</h2>
<p>The <code>apimatic sdk generate</code> command supports two flags for selecting the code generator version and stability level:</p>
<table>
<thead>
<tr>
<th>Flag</th>
<th>Options</th>
<th>Description</th>
</tr>
</thead>
<tbody><tr>
<td><code>--codegen-version</code></td>
<td><code>v3</code> (default), <code>v4</code></td>
<td>Version of the code generator to use.</td>
</tr>
<tr>
<td><code>--stability</code></td>
<td><code>stable</code> (default), <code>beta</code></td>
<td>Stability level of the generated SDK.</td>
</tr>
</tbody></table>
<p>Pass <code>--codegen-version=v4</code> and <code>--stability=beta</code> to generate the new SDK:</p>
<pre><code class="language-bash">apimatic sdk generate --language=python --codegen-version=v4 --stability=beta
</code></pre>
<blockquote>
<p><strong>Note</strong></p>
<p>v4 beta is currently available for <strong>C#</strong>, <strong>Python</strong>, and <strong>TypeScript</strong>. While the <code>--codegen-version</code> and <code>--stability</code> flags are accepted for all languages, using <code>--codegen-version=v4</code> with any other language will result in a generation error.</p>
</blockquote>
]]></content:encoded>
      <category>CLI</category>
      <category>SDKs</category>
      <category>Python</category>
      <category>Feature</category>
    </item>
    <item>
      <title>Adding Format Annotations for String Formats in C# v4 SDKs (Beta)</title>
      <link>https://docs.apimatic.io/changelog/added-string-format-annotations-in-csharp-v4</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/added-string-format-annotations-in-csharp-v4</guid>
      <pubDate>Fri, 24 Jul 2026 00:00:00 GMT</pubDate>
      <description>String formats declared in your OpenAPI specification, such as email, hostname, IP address and URI, now reach generated C# v4 models as Format attributes.</description>
      <content:encoded><![CDATA[<p>C# v4 SDKs now carry the <code>format</code> of every string property onto the generated model as a declarative <code>[Format]</code> attribute, so the validation you already run for schema constraints covers formats as well.</p>
<h2>Details</h2>
<p>Previously every string format other than <code>email</code> collapsed to a plain string in the generated model. The generator now recognizes <code>email</code>, <code>hostname</code>, <code>ipv4</code>, <code>ipv6</code>, <code>uri</code>, <code>uri-reference</code> and <code>json-pointer</code>, and emits <code>[Format(FormatKind.X)]</code> on the property. Length and pattern constraints declared beside the format are preserved.</p>
<p>The attribute is declarative, like the schema constraint attributes: the SDK decorates the model and you decide when to validate, using <code>Validator.TryValidateObject</code> or <code>Validator.ValidateObject</code>.</p>
<p>Learn more in the <a href="https://docs.apimatic.io/generate-sdks/sdk-features/schema-constraints">Schema Constraints</a> feature guide.</p>
<p>This feature is available in the C# v4 SDK (beta). Generate it from the APIMatic CLI:</p>
<pre><code class="language-bash">apimatic sdk generate --language=csharp --codegen-version=v4 --stability=beta
</code></pre>
<p>For the full set of flags and options, see the <a href="https://docs.apimatic.io/apimatic-cli/commands/#generate-sdks">APIMatic CLI documentation</a>.</p>
]]></content:encoded>
      <category>New Feature</category>
      <category>SDKs</category>
      <category>C#</category>
    </item>
    <item>
      <title>Adding HTTP Request and Response Logging in C# v4 SDKs (Beta)</title>
      <link>https://docs.apimatic.io/changelog/added-http-logging-in-csharp-v4</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/added-http-logging-in-csharp-v4</guid>
      <pubDate>Fri, 24 Jul 2026 00:00:00 GMT</pubDate>
      <description>C# v4 SDKs now log every request and response through Microsoft.Extensions.Logging, with redaction built in and per-call overrides through request options.</description>
      <content:encoded><![CDATA[<p>C# v4 SDKs now log HTTP requests and responses through the standard <code>Microsoft.Extensions.Logging</code> abstractions. Logging is configured once on the client options and can be adjusted per call through the request options argument every endpoint accepts.</p>
<h2>Details</h2>
<p>The <code>Logging</code> property on the client options takes a <code>LoggingOptions</code>. Give it an <code>ILoggerFactory</code> and the SDK writes the request line, the response line with its status and duration, retry notices and terminal failures. Request headers, response headers and the request body are off by default and switched on with <code>LogRequestHeaders</code>, <code>LogResponseHeaders</code> and <code>LogRequestBody</code>.</p>
<p>Query parameters and headers are redacted by default, <code>Authorization</code> included, and <code>RedactedKeys</code>, <code>RedactedHeaders</code> and <code>UnmaskHeaders</code> adjust what is masked. A client registered with <code>Add{Api}Client</code> picks up the container&#39;s <code>ILoggerFactory</code> automatically. A client you construct yourself logs nothing until you set a factory, or until an environment variable named after the client, such as <code>PAYMENTSCLIENT_LOG</code>, is set to <code>info</code>, <code>debug</code> or <code>trace</code>.</p>
<p>Every generated endpoint method takes an optional <code>RequestOptions</code> argument whose <code>LogLevel</code> sets the verbosity for that one call without touching the client configuration.</p>
<h2>Usage Example</h2>
<p>Pass your application&#39;s logger factory to the client, then raise the detail for a single call when you need it:</p>
<pre><code class="language-csharp">var options = new PaymentsClientOptions
{
    Logging = new LoggingOptions
    {
        LoggerFactory = loggerFactory,
        LogRequestHeaders = true,
        LogResponseHeaders = true,
    },
};
var client = new PaymentsClient(httpClient, options);

var payment = await client.Payments.GetPayment(
    new GetPaymentRequest { PaymentId = &quot;pay_123&quot; },
    requestOptions: new RequestOptions { LogLevel = LogLevel.Trace });
</code></pre>
<p><code>LogRequestBody</code> writes JSON bodies unredacted, so leave it off on endpoints that carry personal or payment data.</p>
<p>This feature is available in the C# v4 SDK (beta). Generate it from the APIMatic CLI:</p>
<pre><code class="language-bash">apimatic sdk generate --language=csharp --codegen-version=v4 --stability=beta
</code></pre>
<p>For the full set of flags and options, see the <a href="https://docs.apimatic.io/apimatic-cli/commands/#generate-sdks">APIMatic CLI documentation</a>.</p>
]]></content:encoded>
      <category>New Feature</category>
      <category>SDKs</category>
      <category>C#</category>
    </item>
    <item>
      <title>Adding Webhook Support in C# v4 SDKs (Beta)</title>
      <link>https://docs.apimatic.io/changelog/added-webhooks-in-csharp-v4</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/added-webhooks-in-csharp-v4</guid>
      <pubDate>Fri, 24 Jul 2026 00:00:00 GMT</pubDate>
      <description>C# v4 SDKs now generate a typed event parser and a signature verifier for the webhooks your OpenAPI specification declares.</description>
      <content:encoded><![CDATA[<p>C# v4 SDKs now understand the webhooks declared in your OpenAPI specification. The SDK generates a typed event parser and, when the specification describes a signing scheme, a signature verifier, so consumers can receive and verify events with the same type safety they get when calling your API.</p>
<h2>Details</h2>
<p>Each webhook event&#39;s payload becomes a typed model. The parser reads the discriminator your specification names, from the request body or a header, and returns an event whose <code>Type</code> names the event and whose <code>Payload</code> exposes one <code>TryGet</code> accessor per event.</p>
<p>When the specification describes how events are signed, the SDK also generates a signature verifier configured through <code>WebhookOptions</code>: the shared <code>Secret</code>, a <code>ReplayTolerance</code> where the specification sets one, and a <code>TimeProvider</code>. Generated <code>Add{Api}Webhooks</code> and <code>Add{Api}WebhookSignatureVerifier</code> methods register the parser and the verifier with ASP.NET Core dependency injection.</p>
<h2>Usage Example</h2>
<p>Register the parser and the verifier, then verify and parse each incoming request in your webhook endpoint:</p>
<pre><code class="language-csharp">builder.Services.AddPaymentsWebhooks();
builder.Services.AddPaymentsWebhookSignatureVerifier(options =&gt;
    options.Secret = builder.Configuration[&quot;Payments:WebhookSecret&quot;]);

var app = builder.Build();

app.MapPost(&quot;/webhooks/payments&quot;, async (HttpRequest http, PaymentsWebhookParser parser,
    PaymentsWebhookSignatureVerifier verifier, CancellationToken cancellationToken) =&gt;
{
    var webhookRequest = await WebhookRequest.FromStream(http.Body, http.Headers, cancellationToken);
    if (!verifier.Verify(webhookRequest))
        return Results.Unauthorized();

    var evt = parser.Parse(webhookRequest);
    if (evt.Type == PaymentsEventType.PaymentStatusUpdated &amp;&amp;
        evt.Payload.TryGetPaymentStatusUpdatedEvent(out var updated))
    {
        Console.WriteLine($&quot;Payment status changed: {updated.Status.Value}&quot;);
    }

    return Results.Ok();
});
</code></pre>
<p><code>Parse</code> only deserializes the event, so always call <code>Verify</code> first when your API signs its webhooks.</p>
<p>This feature is available in the C# v4 SDK (beta). Generate it from the APIMatic CLI:</p>
<pre><code class="language-bash">apimatic sdk generate --language=csharp --codegen-version=v4 --stability=beta
</code></pre>
<p>For the full set of flags and options, see the <a href="https://docs.apimatic.io/apimatic-cli/commands/#generate-sdks">APIMatic CLI documentation</a>.</p>
]]></content:encoded>
      <category>New Feature</category>
      <category>SDKs</category>
      <category>C#</category>
    </item>
    <item>
      <title>Adding Schema Constraint Attributes and Constraint-Aware AnyOf in C# v4 SDKs (Beta)</title>
      <link>https://docs.apimatic.io/changelog/added-schema-constraints-in-csharp-v4</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/added-schema-constraints-in-csharp-v4</guid>
      <pubDate>Mon, 20 Jul 2026 00:00:00 GMT</pubDate>
      <description>Generated C# v4 models now carry OpenAPI schema constraints as declarative .NET validation attributes, and anyOf schemas that share a base type but differ by constraints now generate a distinct arm each.</description>
      <content:encoded><![CDATA[<p>Generated C# v4 SDKs now express your OpenAPI schema constraints directly on the generated models as declarative .NET validation attributes, so you can validate requests and responses using standard .NET validation. In addition, <code>anyOf</code> schemas that share a base type but differ by their constraints now generate a distinct arm for each schema.</p>
<h2>Details</h2>
<h3>Schema constraint attributes</h3>
<p>Constraints defined in your OpenAPI schemas, such as string lengths, patterns, numeric bounds, array rules, object property counts, and string formats, are now carried onto the generated model properties as attributes. Constraints covered by the .NET Base Class Library use the standard <code>System.ComponentModel.DataAnnotations</code> attributes, while the remaining constraints use attributes provided by the SDK under its <code>Core.Validation.Attributes</code> namespace.</p>
<p>The attributes are declarative: the SDK decorates the models for you, and you decide when to run validation using <code>Validator.TryValidateObject</code> or <code>Validator.ValidateObject</code>. This gives you a single, contract-driven source of truth for validating data before sending a request or after receiving a response, while keeping the models lightweight.</p>
<p>Learn more in the <a href="https://docs.apimatic.io/generate-sdks/sdk-features/schema-constraints">Schema Constraints</a> feature guide.</p>
<h3>Constraint-aware <code>anyOf</code> arms</h3>
<p>When an <code>anyOf</code> lists multiple schemas that share the same base type but differ by their constraints, the SDK now represents each schema as its own distinct arm of the union, so every variant is preserved and available to work with individually. During (de)serialization, the SDK selects the arm whose constraints the value satisfies, making the handling of constrained union members precise and predictable. This behavior is enforced by the SDK.</p>
<p>Learn more in the <a href="https://docs.apimatic.io/generate-sdks/sdk-features/oneOf-and-anyOf">OneOf and AnyOf</a> feature guide.</p>
<p>This feature is available in the C# v4 SDK (beta). Generate it from the APIMatic CLI:</p>
<pre><code class="language-bash">apimatic sdk generate --language=csharp --codegen-version=v4 --stability=beta
</code></pre>
<p>For the full set of flags and options, see the <a href="https://docs.apimatic.io/apimatic-cli/commands/#generate-sdks">APIMatic CLI documentation</a>.</p>
]]></content:encoded>
      <category>New Feature</category>
      <category>SDKs</category>
      <category>C#</category>
    </item>
    <item>
      <title>Server-Sent Events (SSE) Streaming in TypeScript SDKs</title>
      <link>https://docs.apimatic.io/changelog/added-server-sent-events-streaming-in-typescript</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/added-server-sent-events-streaming-in-typescript</guid>
      <pubDate>Mon, 13 Jul 2026 00:00:00 GMT</pubDate>
      <description>TypeScript SDKs now support streaming API responses. Operations with a text/event-stream response return a typed, async-iterable stream that yields decoded events as they arrive.</description>
      <content:encoded><![CDATA[<p>Generated TypeScript SDKs now support streaming API responses over Server-Sent Events (SSE). When an operation streams its response instead of returning a single buffered body, the SDK exposes it as a typed, async-iterable stream that you consume with a familiar <code>for await...of</code> loop.</p>
<h2>What&#39;s New?</h2>
<p>Previously, an operation whose response was streamed could only be consumed as an unstructured, buffered body, leaving developers to read the raw stream, split it into events, and decode each payload themselves. Generated TypeScript SDKs now do all of this for you.</p>
<p>Any operation whose success response declares a <code>text/event-stream</code> media type is automatically detected as a streaming endpoint. No special specification extension is required. The schema associated with the media type describes each event&#39;s payload, and the SDK decodes every incoming frame into that type.</p>
<p>Such an endpoint now returns a <code>Promise&lt;ApiResponse&lt;SseStream&lt;T&gt;&gt;&gt;</code>, where <code>T</code> is the decoded event type. The <code>SseStream&lt;T&gt;</code> is a single-use, asynchronously-iterable stream:</p>
<pre><code class="language-ts">const response = await chatController.createChatCompletion(body);

// Iterate decoded events of type `T` as they arrive.
for await (const event of response.result) {
  console.log(event);
}

console.log(response.statusCode);
console.log(response.headers);
</code></pre>
<h3>Event metadata</h3>
<p>Iterating the stream directly yields decoded payloads. To also read the SSE frame metadata (the <code>id</code>, <code>event</code>, and <code>retry</code> fields), iterate via <code>withMetadata()</code>, which yields full <code>SseEvent&lt;T&gt;</code> objects:</p>
<pre><code class="language-ts">for await (const event of response.result.withMetadata()) {
  console.log(event.data, event.id, event.event, event.retry);
}
</code></pre>
<h3>Configurable read timeout</h3>
<p>A new <code>streamReadTimeout</code> client configuration option (default <code>60000</code> ms) bounds the idle window allowed between two consecutive frames, so a stalled server can&#39;t hang the stream indefinitely. Exceeding it raises an <code>SseTimeoutError</code>.</p>
<pre><code class="language-ts">const client = new Client({ streamReadTimeout: 30000 });
</code></pre>
<h3>SSE-specific error handling</h3>
<p>Alongside the usual <code>ApiError</code>, streaming endpoints can surface two SSE-specific errors while the stream is consumed:</p>
<ul>
<li><strong><code>SseTimeoutError</code></strong>: the server stalled between frames longer than <code>streamReadTimeout</code> (exposes <code>idleTimeoutMs</code>).</li>
<li><strong><code>SseDecodeError</code></strong>: a frame&#39;s payload couldn&#39;t be decoded into the expected type (exposes <code>rawFrame</code> and <code>cause</code>).</li>
</ul>
<p>Both extend the <code>SseError</code> base type. Breaking out of the loop, or calling <code>result.close()</code>, aborts the underlying connection so it&#39;s never left open.</p>
<h2>Why This Matters</h2>
<ul>
<li><strong>Typed, incremental responses.</strong> Consume streamed responses as decoded, typed events instead of hand-parsing a raw byte stream.</li>
<li><strong>A familiar interface.</strong> The stream is a standard async-iterable, consumed with an ordinary <code>for await...of</code> loop, with no new programming model to learn.</li>
<li><strong>Zero configuration.</strong> Streaming is applied automatically to any operation with a <code>text/event-stream</code> response.</li>
<li><strong>Safe by default.</strong> A configurable read timeout guards against stalled connections, and the connection is aborted as soon as iteration stops.</li>
</ul>
<p>For more details, see the <a href="https://docs.apimatic.io/generate-sdks/sdk-features/server-sent-events-streaming">Server-Sent Events (SSE) Streaming</a> feature documentation.</p>
]]></content:encoded>
      <category>New Feature</category>
      <category>SDKs</category>
      <category>TypeScript</category>
    </item>
    <item>
      <title>Adding Support for Pagination in C# v4 SDKs (Beta)</title>
      <link>https://docs.apimatic.io/changelog/added-pagination-support-in-csharp-v4</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/added-pagination-support-in-csharp-v4</guid>
      <pubDate>Fri, 10 Jul 2026 00:00:00 GMT</pubDate>
      <description>The new C# v4 SDKs now support pagination, covering the four widely-used strategies: Offset, Page, Cursor, and Link based pagination. This provides a seamless and unified way to consume paginated API responses, regardless of the underlying mechanism.</description>
      <content:encoded><![CDATA[<p>The new C# v4 SDKs now support pagination, covering the four widely-used strategies: Offset, Page, Cursor, and Link based pagination. This provides a seamless and unified way to consume paginated API responses, regardless of the underlying mechanism.</p>
<h2>Details</h2>
<p>Paginated responses are common in REST APIs to improve performance and manage large datasets. With the pagination support, C# v4 SDKs automatically detect and handle paginated data based on the OpenAPI specification. This removes the need for manual pagination logic and gives developers a consistent interface to work with.</p>
<p>Each pagination type can be enabled independently using the <a href="https://docs.apimatic.io/specification-extensions/swagger-codegen-extensions#pagination-extension">pagination OpenAPI extension</a> in the OpenAPI specification. Each pagination configuration allows customization of request and response fields using JSON Pointers, giving you full control over how pagination is applied for your specific API format.</p>
<h2>Usage Example</h2>
<p>The C# SDK provides a consistent interface across all pagination types. The endpoint function returns a <code>Pageable</code> that you consume asynchronously with <code>await foreach</code>. Iterate it directly to walk every item across all pages:</p>
<pre><code class="language-csharp">var transactions = client.ListTransactions(pageSize: 25);

try
{
    // Iterate over every transaction across all pages.
    await foreach (var transaction in transactions)
    {
        Console.WriteLine(transaction.Id);
    }
}
catch (SdkException&lt;RawError&gt; ex)
{
    Console.WriteLine(ex.Error.ReadAsString());
}
</code></pre>
<p>Alternatively, go page by page when you need per-page data or metadata:</p>
<pre><code class="language-csharp">var transactions = client.ListTransactions(pageSize: 25);

try
{
    // Iterate one page at a time, reading each page&#39;s items and metadata.
    await foreach (var page in transactions.AsPages())
    {
        Console.WriteLine($&quot;Fetched {page.Data.Count} transactions in this page.&quot;);
    }
}
catch (SdkException&lt;RawError&gt; ex)
{
    Console.WriteLine(ex.Error.ReadAsString());
}
</code></pre>
<p>Regardless of the pagination type used in the API, the SDK standardizes the developer experience:</p>
<ol>
<li><code>transactions</code> yields every item across all pages when iterated with <code>await foreach</code>.</li>
<li><code>transactions.AsPages()</code> yields one page at a time, each exposing its items and any metadata the response returns, such as a next cursor or links.</li>
</ol>
<p>Pagination tokens, page numbers, offsets, or links are automatically managed by the SDK, and pages are fetched only as you iterate over the results. This makes integration with paginated APIs straightforward, clean, and idiomatic.</p>
<p>Learn more about pagination <a href="https://docs.apimatic.io/generate-sdks/sdk-features/pagination">feature</a></p>
<p>This feature is available in the C# v4 SDK (beta). Generate it from the APIMatic CLI:</p>
<pre><code class="language-bash">apimatic sdk generate --language=csharp --codegen-version=v4 --stability=beta
</code></pre>
<p>For the full set of flags and options, see the <a href="https://docs.apimatic.io/apimatic-cli/commands/#generate-sdks">APIMatic CLI documentation</a>.</p>
]]></content:encoded>
      <category>New Feature</category>
      <category>SDKs</category>
      <category>C#</category>
    </item>
    <item>
      <title>SDK Identification Headers and Automatic Idempotency Keys in C# v4 SDKs (Beta)</title>
      <link>https://docs.apimatic.io/changelog/added-sdk-identification-headers-and-idempotency-key-in-csharp-v4</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/added-sdk-identification-headers-and-idempotency-key-in-csharp-v4</guid>
      <pubDate>Fri, 10 Jul 2026 00:00:00 GMT</pubDate>
      <description>Generated C# v4 SDKs now send a User-Agent and structured X-APIMatic-* identification headers on every request, plus an automatic, retry-safe Idempotency-Key on non-GET requests.</description>
      <content:encoded><![CDATA[<p>Generated C# v4 SDKs now identify themselves on every API call. Each request carries a short <code>User-Agent</code> plus a set of structured <code>X-APIMatic-*</code> headers, and non-GET requests automatically include a retry-safe <code>Idempotency-Key</code>.</p>
<h2>What&#39;s New?</h2>
<p>Previously, v4 C# SDKs sent no identification headers, so API providers had no reliable way to attribute incoming traffic to the SDK, its version, the generator, or the runtime it ran on. Generated SDKs now send this information on every request as clean, machine-parseable headers.</p>
<h3>SDK identification headers</h3>
<p>Every request now includes a short, human-readable <code>User-Agent</code> alongside structured <code>X-APIMatic-*</code> headers, so providers can query attribution by language, version, OS, and runtime as separate fields rather than parsing one packed string.</p>
<table>
<thead>
<tr>
<th>Header</th>
<th>Example</th>
<th>Source</th>
</tr>
</thead>
<tbody><tr>
<td><code>User-Agent</code></td>
<td><code>PaymentClient/1.0.0 CSharp</code></td>
<td>baked (per client)</td>
</tr>
<tr>
<td><code>X-APIMatic-Lang</code></td>
<td><code>CSharp</code></td>
<td>baked</td>
</tr>
<tr>
<td><code>X-APIMatic-Package-Version</code></td>
<td><code>1.0.0</code></td>
<td>baked (per client)</td>
</tr>
<tr>
<td><code>X-APIMatic-Gen-Version</code></td>
<td><code>4.0.0</code></td>
<td>baked (generator)</td>
</tr>
<tr>
<td><code>X-APIMatic-OS</code></td>
<td><code>Microsoft Windows 10.0.x X64</code></td>
<td>runtime</td>
</tr>
<tr>
<td><code>X-APIMatic-Runtime</code></td>
<td><code>.NET 8.0.4</code></td>
<td>runtime</td>
</tr>
</tbody></table>
<p>Baked values are rendered as literal constants at generation time, so they cost nothing at runtime. The OS and runtime values resolve once at client construction and are reused for the client&#39;s lifetime.</p>
<h3>Automatic, retry-safe <code>Idempotency-Key</code></h3>
<p>Non-GET requests now include an <code>Idempotency-Key</code> header. The SDK mints a UUIDv4 once per logical request and <strong>reuses the same key across every retry</strong>, so the server can safely detect and drop duplicate retried calls. GET requests are left untouched.</p>
<h3>The caller always wins</h3>
<p>Consumer-supplied and per-request headers override the generated defaults by key (case-insensitive). If you pass your own <code>User-Agent</code>, any <code>X-APIMatic-*</code> header, or your own <code>Idempotency-Key</code>, the SDK uses yours instead of generating one. If the API spec already declares its own <code>Idempotency-Key</code>, the SDK doesn&#39;t add one.</p>
<h2>Why This Matters</h2>
<ul>
<li><strong>Clean attribution for providers.</strong> API providers can attribute traffic to the SDK, its version, the generator, and the runtime using discrete headers they can query, instead of guesswork.</li>
<li><strong>Safer retries out of the box.</strong> Automatic, retry-stable idempotency keys let servers detect and drop duplicate retried non-GET requests without any extra work from the consumer.</li>
<li><strong>No configuration required.</strong> The headers are sent automatically with fixed names, and consumers retain full control by overriding any header per request.</li>
</ul>
<p>This feature is available in the C# v4 SDK (beta). Generate it from the APIMatic CLI:</p>
<pre><code class="language-bash">apimatic sdk generate --language=csharp --codegen-version=v4 --stability=beta
</code></pre>
<p>For the full set of flags and options, see the <a href="https://docs.apimatic.io/apimatic-cli/commands/#generate-sdks">APIMatic CLI documentation</a>.</p>
]]></content:encoded>
      <category>New Feature</category>
      <category>SDKs</category>
      <category>C#</category>
    </item>
    <item>
      <title>Enable Context Plugins Without SDK Publishing</title>
      <link>https://docs.apimatic.io/changelog/self-hosted-sdk-support-in-ai-coding-tools</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/self-hosted-sdk-support-in-ai-coding-tools</guid>
      <pubDate>Fri, 19 Jun 2026 00:00:00 GMT</pubDate>
      <description>Context Plugins now support self-hosted SDKs — the AI agent downloads, installs, and sets up your SDK directly from your portal, no package-manager publishing required.</description>
      <content:encoded><![CDATA[<p>Previously, in order for an API provider to use Context Plugins for their API, their SDKs had to be published to a public package manager such as npm, NuGet, or PyPI. That left teams whose SDKs live behind a private host — internal APIs, partner integrations, or APIs that aren&#39;t yet ready for public distribution — without a way to offer the same AI-assisted integration experience.</p>
<p>We&#39;ve now added <strong>self-hosted SDK support in Context Plugins</strong>. Instead of pulling the SDK from a package manager, the AI agent downloads the SDK package from your portal, installs it locally in the developer&#39;s workspace, and wires it into their project — all without the SDK ever needing to be published.</p>
<blockquote>
<p><strong>Caution</strong></p>
<p>Self-hosted SDK support in Context Plugins is intended for exploring and evaluating the feature. It is not recommended for production use today.</p>
</blockquote>
<h2>What&#39;s New</h2>
<p>Self-hosted SDKs work exactly like the existing Context Plugins flow once configured — same AI-assisted integration entry point, same supported IDEs (Cursor, VS Code, Claude Code), same end result. The only difference is where the SDK comes from: instead of <code>npm install</code>, <code>pip install</code>, or the equivalent for your language, the agent fetches the SDK artifact directly from the URL where you host it, installs it locally, and then writes the integration code against it.</p>
<h2>How to Try It Out</h2>
<p>You can try this flow end-to-end using the <a href="https://docs.apimatic.io/v4/apimatic-cli/getting-started">APIMatic CLI</a>. Once your build file is configured (see <a href="#configuration">Configuration</a> below), generate your portal and deploy it to the host that matches the <code>baseUrl</code> you configured — the SDK artifacts must actually be reachable at that URL for the agent to download them:</p>
<pre><code class="language-bash">apimatic portal generate
</code></pre>
<p>Then deploy the generated portal output to your hosting provider (Netlify, S3, internal server, etc.) at the absolute <code>baseUrl</code> you specified in the build file. Once it&#39;s live, open the deployed portal, go to the <strong>AI-Assisted Integration</strong> tab on the Getting Started page, pick a language, connect your IDE of choice, and let the agent handle the SDK download, install, and integration.</p>
<h2>Configuration</h2>
<p>The self-hosted SDK flow is triggered automatically when your APIMatic build file meets all of the following conditions for a given language. If any of them are missing, the portal falls back to the standard published-SDK Context Plugins flow.</p>
<blockquote>
<p><strong>Note</strong></p>
<p>The build file uses two different key formats for languages. The <code>languageConfig</code> block is keyed by <strong>language name</strong> (<code>java</code>, <code>python</code>, <code>csharp</code>, etc.), while <code>portalSettings.languageSettings</code> is keyed by <strong>SDK template name</strong> (<code>java_eclipse_jre_lib</code>, <code>python_generic_lib</code>, <code>cs_net_standard_lib</code>, etc.). Both refer to the same language — the template name selects a specific SDK flavor for that language.</p>
</blockquote>
<h3>1. Absolute Base URL where your artifacts are hosted</h3>
<p>Set an absolute <code>baseUrl</code> either at the root of <code>generatePortal</code> or under <code>portalSettings</code>. This is the URL where your SDK artifacts will be sourced from, so make sure the server hosting that URL is reachable and serving the artifacts — the agent will fetch the SDK from there.</p>
<pre><code class="language-json">{
  &quot;generatePortal&quot;: {
    &quot;baseUrl&quot;: &quot;https://your-portal-host.example.com&quot;,
    &quot;...&quot;: &quot;...&quot;
  }
}
</code></pre>
<h3>2. No publishing settings for that language</h3>
<p>In the <code>languageConfig</code> block, the entry for the language you want to use self-hosted SDKs for must be left empty — no <code>publishSettings</code> or publishing info. When publishing settings are present for a language, that language is treated as a published SDK and the standard Context Plugins flow is used instead.</p>
<pre><code class="language-json">{
  &quot;generatePortal&quot;: {
    &quot;languageConfig&quot;: {
      &quot;java&quot;: {},
      &quot;csharp&quot;: {},
      &quot;php&quot;: {},
      &quot;python&quot;: {},
      &quot;ruby&quot;: {},
      &quot;typescript&quot;: {}
    }
  }
}
</code></pre>
<h3>3. At least one AI integration enabled per language</h3>
<p>Under <code>generatePortal.portalSettings.languageSettings</code>, the language must have at least one of <code>cursor</code>, <code>vscode</code>, or <code>claudeCode</code> enabled in its <code>aiIntegration</code> block.</p>
<pre><code class="language-json">{
  &quot;generatePortal&quot;: {
    &quot;portalSettings&quot;: {
      &quot;languageSettings&quot;: {
        &quot;python_generic_lib&quot;: {
          &quot;aiIntegration&quot;: {
            &quot;cursor&quot;:     { &quot;isEnabled&quot;: true },
            &quot;vscode&quot;:     { &quot;isEnabled&quot;: true },
            &quot;claudeCode&quot;: { &quot;isEnabled&quot;: true }
          }
        }
      }
    }
  }
}
</code></pre>
<h3>4. A valid API Copilot key in the build file</h3>
<p>Context Plugins are powered by API Copilot infrastructure, so a valid <code>apiCopilotConfig.key</code> is required.</p>
<pre><code class="language-json">{
  &quot;apiCopilotConfig&quot;: {
    &quot;isEnabled&quot;: true,
    &quot;key&quot;: &quot;your-api-copilot-key&quot;
  }
}
</code></pre>
<h3>Putting it all together</h3>
<p>A minimal build file enabling the self-hosted SDK flow for several languages looks like this:</p>
<pre><code class="language-json">{
  &quot;$schema&quot;: &quot;https://titan.apimatic.io/api/build/schema&quot;,
  &quot;buildFileVersion&quot;: &quot;1&quot;,
  &quot;generatePortal&quot;: {
    &quot;baseUrl&quot;: &quot;https://your-portal-host.example.com&quot;,
    &quot;languageConfig&quot;: {
      &quot;java&quot;: {},
      &quot;csharp&quot;: {},
      &quot;php&quot;: {},
      &quot;python&quot;: {},
      &quot;ruby&quot;: {},
      &quot;typescript&quot;: {}
    },
    &quot;portalSettings&quot;: {
      &quot;languageSettings&quot;: {
        &quot;python_generic_lib&quot;: {
          &quot;aiIntegration&quot;: {
            &quot;cursor&quot;:     { &quot;isEnabled&quot;: true },
            &quot;vscode&quot;:     { &quot;isEnabled&quot;: true },
            &quot;claudeCode&quot;: { &quot;isEnabled&quot;: true }
          }
        },
        &quot;java_eclipse_jre_lib&quot;: {
          &quot;aiIntegration&quot;: {
            &quot;cursor&quot;:     { &quot;isEnabled&quot;: true },
            &quot;vscode&quot;:     { &quot;isEnabled&quot;: true },
            &quot;claudeCode&quot;: { &quot;isEnabled&quot;: true }
          }
        }
      }
    }
  },
  &quot;apiCopilotConfig&quot;: {
    &quot;isEnabled&quot;: true,
    &quot;key&quot;: &quot;your-api-copilot-key&quot;
  }
}
</code></pre>
<h2>A Note on Reliability and Model Choice</h2>
<p>The self-hosted SDK flow asks the AI agent to perform real setup work on the developer&#39;s machine — downloading, installing, and wiring the SDK into a project. Because AI agents are inherently non-deterministic, the agent may not approach the same setup the same way every time, and behavior depends on the capabilities of the underlying model.</p>
<p><strong>This feature is intended for exploring and evaluating Context Plugins. It is not recommended for production use today.</strong></p>
<p>To get the most consistent results, we recommend running Context Plugins with <strong>frontier-class models at higher reasoning effort levels</strong>. These models are more likely to execute the full install-and-integrate sequence end to end on their own. Smaller or lower-effort models may instead produce a setup script for the developer to run themselves rather than carrying every step out autonomously — still useful, but a different experience.</p>
<p>As model capabilities continue to improve, we expect this flow to become more reliable across a wider range of setups.</p>
]]></content:encoded>
      <category>AI</category>
      <category>SDKs</category>
      <category>Developer Portal</category>
      <category>Developer Experience</category>
      <category>New Feature</category>
    </item>
    <item>
      <title>Major Improvements to the C# v4 SDK (Beta)</title>
      <link>https://docs.apimatic.io/changelog/major-improvements-csharp-v4-sdk</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/major-improvements-csharp-v4-sdk</guid>
      <pubDate>Fri, 19 Jun 2026 00:00:00 GMT</pubDate>
      <description>The C# v4 SDK (beta) gains SSE streaming, ASP.NET Core dependency injection, inline XML docs, range-based error handling, and more.</description>
      <content:encoded><![CDATA[<p>The C# v4 SDK (beta) has picked up a wave of improvements over the past few weeks, spanning streaming, dependency injection, documentation, error handling, and file handling.</p>
<h2>What&#39;s New?</h2>
<p>Here is a roundup of what has landed in the C# v4 SDK:</p>
<ul>
<li><strong>Server-Sent Events (SSE) Streaming</strong>: Operations that return a <code>text/event-stream</code> response are generated as streaming methods, so you read events incrementally as they arrive instead of waiting for the full response body.</li>
<li><strong>Inline XML Documentation</strong>: Endpoints, models, and their properties now carry XML doc comments, so descriptions, parameters, and return types surface as IntelliSense tooltips right in your IDE.</li>
<li><strong>License Support</strong>: Each SDK ships with a <code>LICENSE</code> file and reflects the chosen license in the generated README, so distribution terms are clear from the start.</li>
<li><strong>Parameter Defaults and Constants</strong>: Endpoint parameters and model properties carry their spec-defined default values, so you only set what you intend to override. Values fixed by the spec are generated as constants, so they are always sent correctly without any input from you.</li>
<li><strong>ASP.NET Core Dependency Injection</strong>: A service-collection extension registers the client in a single call with the <code>HttpClient</code> managed by <code>IHttpClientFactory</code>, making the SDK a first-class citizen in ASP.NET Core apps.</li>
<li><strong>Status Code Range Error Handling</strong>: Error responses can be matched by status-code ranges such as <code>4XX</code> and <code>5XX</code>, so the SDK maps responses to the right error type even when the API returns a code that is not individually documented.</li>
<li><strong>Tag-Based API Grouping</strong>: Endpoints are organized by their OpenAPI tags. With multiple tags, the SDK creates a controller per tag and exposes those controllers from the main client. With a single tag or no tags, the endpoints live directly on the main client.</li>
<li><strong>Generated README and API Reference</strong>: Every SDK includes a README covering installation, configuration, and quick-start usage, plus a separate API reference documenting each operation&#39;s parameters, responses, and errors.</li>
<li><strong>File Type Support</strong>: Endpoints that accept or return files support uploads and downloads, taking common inputs such as byte arrays, streams, and file info for multipart/form-data requests and handling binary responses.</li>
</ul>
<p>All of this is available in the C# v4 SDK (beta). Generate it from the APIMatic CLI:</p>
<pre><code class="language-bash">apimatic sdk generate --language=csharp --codegen-version=v4 --stability=beta
</code></pre>
<p>For the full set of flags and options, see the <a href="https://docs.apimatic.io/apimatic-cli/commands/#generate-sdks">APIMatic CLI documentation</a>.</p>
]]></content:encoded>
      <category>Improvement</category>
      <category>C#</category>
      <category>SDKs</category>
    </item>
    <item>
      <title>Reimagined API Copilot, Plus the New API Copilot Home (Beta)</title>
      <link>https://docs.apimatic.io/changelog/api-copilot-home</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/api-copilot-home</guid>
      <pubDate>Fri, 19 Jun 2026 00:00:00 GMT</pubDate>
      <description>API Copilot is now a first-class panel reachable from more places, and your portal can open straight into it with API Copilot Home (Beta).</description>
      <content:encoded><![CDATA[<p>We&#39;ve made <strong>API Copilot</strong> a first-class part of your portal. It has moved out of a floating overlay and into a dedicated panel beside your docs, and it&#39;s now reachable from more places than ever. On top of that, your portal can now open directly into it: with the new <strong>API Copilot Home</strong> <em>(Beta)</em>, developers land in a conversation and start integrating by asking a question instead of browsing the docs for where to begin.</p>
<h2>API Copilot UX Improvements</h2>
<p>Previously, <strong>API Copilot</strong> opened as a floating panel that sat on top of the documentation, covering the content while the conversation was open. We&#39;ve moved it into a dedicated panel alongside the docs, so developers can read an endpoint and ask about it side by side without losing their place.</p>
<p><strong>Before</strong></p>
<p><img src="https://docs.apimatic.io/images/changelog/api-copilot-home/copilot-before.png" alt="API Copilot as a floating overlay panel covering the documentation"></p>
<p><strong>After</strong></p>
<p><img src="https://docs.apimatic.io/images/changelog/api-copilot-home/copilot-after.png" alt="API Copilot as a dedicated panel sitting alongside the documentation"></p>
<h3>More Ways to Open It</h3>
<p>We&#39;ve added several entry points so developers can reach <strong>API Copilot</strong> from wherever they already are:</p>
<ul>
<li><strong>Sparkle icon in the navbar</strong>: a sparkle icon now sits next to the search input. Clicking it opens <strong>API Copilot</strong> instantly.</li>
<li><strong>Quick Prompt input field</strong>: a Quick Prompt input always sits in the center of the main content area. Type a question into it and <strong>API Copilot</strong> opens with that question already in flight.</li>
<li><strong>From Search</strong>: when <strong>API Copilot</strong> is enabled and a developer types in the search modal, an <strong>Ask Assistant</strong> option appears alongside the results; selecting it hands the query straight to <strong>API Copilot</strong>.</li>
<li><strong>Keyboard shortcut</strong>: press <kbd>Ctrl</kbd> + <kbd>I</kbd> on Windows or <kbd>⌘</kbd> + <kbd>I</kbd> on macOS to open and close <strong>API Copilot</strong> at any time.</li>
</ul>
<blockquote>
<p><strong>Note</strong></p>
<p>The <strong>API Copilot</strong> UX improvements will be automatically applied the next time your portal is published.</p>
</blockquote>
<h2>API Copilot Home (Beta)</h2>
<p>A portal can now use <strong>API Copilot</strong> as its landing page. Instead of arriving at a static overview, developers are greeted by API Copilot&#39;s welcome message and assistive prompts and can begin integrating immediately, while the rest of the documentation stays one click away in the navigation.</p>
<p><img src="https://docs.apimatic.io/images/changelog/api-copilot-home/api-copilot-home.png" alt="API Copilot Home, where the portal opens directly into API Copilot with a welcome message and assistive prompts"></p>
<p>This is a good fit for portals where developers usually arrive with a goal in mind rather than a section to read. It shortens the path from landing on the portal to writing working code.</p>
<h3>Enabling It</h3>
<p>API Copilot Home is opt-in and set up through the <strong>Docs as Code</strong> workflow. It requires <strong>API Copilot</strong> to already be enabled for your portal. In short: add a non-empty <code>ai-assist.md</code> file to your build file&#39;s <code>content</code> folder and reference it as a page in your <code>toc.yaml</code>. For the full configuration, see <a href="https://docs.apimatic.io/platform-api/#/http/guides/generating-on-prem-api-portal/api-copilot-home">API Copilot Home</a>.</p>
]]></content:encoded>
      <category>Improvement</category>
      <category>Developer Portal</category>
      <category>API Copilot</category>
    </item>
    <item>
      <title>Bring Your API Into Every Developer's AI Coding Tool</title>
      <link>https://docs.apimatic.io/changelog/ai-assisted-integration-tab</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/ai-assisted-integration-tab</guid>
      <pubDate>Wed, 17 Jun 2026 00:00:00 GMT</pubDate>
      <description>Load your API's always-current context into Claude Code, Cursor, or VS Code straight from your portal — so their AI coding tool writes working integration code from the first prompt.</description>
      <content:encoded><![CDATA[<p>Developers increasingly don&#39;t read API documentation page by page — they build with AI coding tools like <strong>Claude Code</strong>, <strong>Cursor</strong>, and <strong>VS Code</strong>. And these tools are only as good as the context they have. Without accurate, current knowledge of your API, they guess: invented endpoints, stale parameters, and integration code that takes hours to hand-fix.</p>
<p>We&#39;ve brought your API into that workflow. Right from your developer portal, developers can now load your full API context — docs, SDKs, code samples, and setup instructions — into their AI coding environments in a single step, using Context Plugins.</p>
<h2>Why It Matters</h2>
<p>Connect once, and the tool stops guessing. It writes integration code against your real API surface from the first prompt — hallucinating less, needing less hand-fixing, and burning fewer tokens. For your team, that means developers reach a working integration faster, with less support load on you.</p>
<p>This is a shift in <em>how</em> your API gets adopted: the path from &quot;found your docs&quot; to &quot;shipping with your API&quot; now runs straight through the tools developers already build in.</p>
<h2>What&#39;s Included</h2>
<h3>A New AI-Assisted Integration Experience on Getting Started</h3>
<p>The Getting Started page now opens with two clearly labeled paths:</p>
<ol>
<li><strong>AI-Assisted Integration</strong> (selected by default) — a guided, in-page flow that loads your API context into an AI coding tool.</li>
<li><strong>Manual Integration</strong> — the existing, authored Getting Started content, for developers who prefer to wire things up themselves.</li>
</ol>
<p><img src="https://docs.apimatic.io/images/changelog/ai-assisted-integration-tab.png" alt="The Getting Started page showing the AI-Assisted Integration and Manual Integration path selector with the AI-assisted setup steps"></p>
<h3>Works With the Tools Developers Already Use</h3>
<p>From the AI-Assisted Integration path, developers pick an SDK language and connect their tool of choice:</p>
<ol>
<li><strong>Claude Code</strong></li>
<li><strong>Cursor</strong></li>
<li><strong>VS Code</strong></li>
</ol>
<blockquote>
<p><strong>Note</strong></p>
<p>No additional portal configuration is required beyond enabling AI-assisted integration for your SDK languages.</p>
</blockquote>
<h2>Where This Is Headed</h2>
<p>This is the first step toward onboarding built natively for AI. We&#39;re working to make the AI-Assisted Integration path richer and more customizable — starter prompts tuned to your API, use-case-driven flows, and guidance an AI tool can follow end to end — so that &quot;integrate this API&quot; becomes a single, well-grounded prompt.</p>
]]></content:encoded>
      <category>AI</category>
      <category>Developer Portal</category>
      <category>Developer Experience</category>
      <category>Improvement</category>
    </item>
    <item>
      <title>Introducing Idiomatic Code Samples for Models, Enums, and Errors</title>
      <link>https://docs.apimatic.io/changelog/ai-ready-sdks-and-model-page-code-samples</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/ai-ready-sdks-and-model-page-code-samples</guid>
      <pubDate>Mon, 15 Jun 2026 00:00:00 GMT</pubDate>
      <description>Model reference docs now show language-specific code samples (initialization code for structures, value references for enums, and error-handling examples for error types) across all seven SDK languages, making SDKs and Model pages more AI ready.</description>
      <content:encoded><![CDATA[<p>Our SDKs are now more AI ready than ever. Model reference docs now show idiomatic, language-specific code samples, complete with imports, instead of serialized payloads. They cover how to initialize a structure, reference an enum value, and catch errors across all seven SDK languages.</p>
<h2>What&#39;s New?</h2>
<p>Previously, the Example block on a model reference always showed a serialized JSON/XML payload, regardless of the type. That&#39;s a good wire example, but a poor &quot;how do I use this in code&quot; example. You never construct an error type by hand, and you reference an enum value rather than building a JSON object. The Example block is now tailored to the kind of type it describes. AI tools can pull these idiomatic samples directly from the portal using the <a href="https://docs.apimatic.io/v4/changelog#ai-assist-menu">AI Assist Menu</a>.</p>
<h3>Idiomatic initialization code for structures</h3>
<p>Structure models now show language-native initialization code (for example, <code>new Foo { ... }</code>) instead of a JSON payload, along with the import or <code>using</code> statements the snippet depends on, so the example is ready to paste and run rather than just illustrative. When no code sample can be rendered, the docs fall back to the JSON/XML payload as before, so nothing is lost.</p>
<p><strong>Before</strong></p>
<pre><code class="language-json">{
  &quot;capture_id&quot;: &quot;capture_id0&quot;,
  &quot;notify_payer&quot;: false,
  &quot;tracking_number&quot;: &quot;tracking_number6&quot;,
  &quot;carrier&quot;: &quot;ZELERIS&quot;,
  &quot;carrier_name_other&quot;: &quot;carrier_name_other0&quot;,
  &quot;items&quot;: [
    {
      &quot;name&quot;: &quot;name8&quot;,
      &quot;quantity&quot;: &quot;quantity4&quot;,
      &quot;sku&quot;: &quot;sku6&quot;,
      &quot;url&quot;: &quot;url2&quot;,
      &quot;image_url&quot;: &quot;image_url4&quot;
    },
    {
      &quot;name&quot;: &quot;name8&quot;,
      &quot;quantity&quot;: &quot;quantity4&quot;,
      &quot;sku&quot;: &quot;sku6&quot;,
      &quot;url&quot;: &quot;url2&quot;,
      &quot;image_url&quot;: &quot;image_url4&quot;
    }
  ]
}
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-java">import com.paypal.sdk.models.OrderTrackerItem;
import com.paypal.sdk.models.OrderTrackerRequest;
import com.paypal.sdk.models.ShipmentCarrier;
import java.util.Arrays;

OrderTrackerRequest orderTrackerRequest = new OrderTrackerRequest.Builder(
    &quot;capture_id2&quot;
)
.trackingNumber(&quot;tracking_number8&quot;)
.carrier(ShipmentCarrier.ECHO)
.carrierNameOther(&quot;carrier_name_other2&quot;)
.notifyPayer(false)
.items(Arrays.asList(
        new OrderTrackerItem.Builder()
            .name(&quot;name8&quot;)
            .quantity(&quot;quantity4&quot;)
            .sku(&quot;sku6&quot;)
            .url(&quot;url2&quot;)
            .imageUrl(&quot;image_url4&quot;)
            .build(),
        new OrderTrackerItem.Builder()
            .name(&quot;name8&quot;)
            .quantity(&quot;quantity4&quot;)
            .sku(&quot;sku6&quot;)
            .url(&quot;url2&quot;)
            .imageUrl(&quot;image_url4&quot;)
            .build()
    ))
.build();
</code></pre>
<h3>Value references for enums</h3>
<p>Enum models now show how to reference an element the idiomatic way for each language (for example, <code>Foo foo = Foo.VALUE;</code>) instead of a bare example value. Every language gained these new enum examples with correct language-native syntax.</p>
<p><strong>Before</strong></p>
<pre><code class="language-txt">&quot;E&quot;
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-ts">import { CvvCode } from &#39;paypal-server-sdklib&#39;;

const cvvCode = CvvCode.CvvP;
</code></pre>
<h3>Error-handling examples for error types</h3>
<p>Error and exception types now show a <code>try</code>/<code>catch</code> example demonstrating how to handle the error an endpoint throws, which is far more useful than constructing the type yourself. The error&#39;s properties are already described elsewhere in the documentation, so the example focuses on how to catch it. For SDKs that don&#39;t throw on HTTP error status codes (configurable in PHP, Python, and Ruby), the sample adapts: it&#39;s omitted where it wouldn&#39;t apply, and PHP instead shows the <code>ApiResponse</code>-based typed-error sample when error type mapping is enabled.</p>
<p><strong>Before</strong></p>
<pre><code class="language-json">{
  &quot;name&quot;: &quot;name8&quot;,
  &quot;message&quot;: &quot;message8&quot;,
  &quot;debug_id&quot;: &quot;debug_id6&quot;,
  &quot;information_link&quot;: &quot;information_link0&quot;,
  &quot;details&quot;: [
    {
      &quot;field&quot;: &quot;field4&quot;,
      &quot;value&quot;: &quot;value2&quot;,
      &quot;location&quot;: &quot;location4&quot;,
      &quot;issue&quot;: &quot;issue6&quot;,
      &quot;description&quot;: &quot;description0&quot;
    }
  ],
  &quot;links&quot;: [
    {
      &quot;href&quot;: &quot;href6&quot;,
      &quot;rel&quot;: &quot;rel0&quot;,
      &quot;method&quot;: &quot;HEAD&quot;
    }
  ],
  &quot;total_items&quot;: 20,
  &quot;maximum_items&quot;: 206
}
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-php">try {
    // make the API call
} catch (SearchErrorException $exp) {
    echo &#39;Caught SearchErrorException:&#39;, $exp;
} catch (ApiException $exp) {
    echo &#39;Caught ApiException:&#39;, $exp;
}
</code></pre>
<h3>Full code samples on Model pages</h3>
<p>The same examples flow through to the Model pages in the developer portal. Developers can read about a model and copy working initialization, enum-reference, or error-handling code from the same page, without switching context.</p>
<p>All of this works across the seven SDK languages: C#, Java, Go, Python, Ruby, PHP, and TypeScript.</p>
<h2>Why This Matters</h2>
<p>Previously, developers and AI tools often had to infer how to initialize a model, set an enum value, or handle a failed API call from a serialized payload that didn&#39;t reflect real code. That guesswork led to snippets that didn&#39;t compile or that missed important error cases.</p>
<p>With this update:</p>
<ul>
<li>Structures, enums, and error types each come with the right kind of idiomatic, copy-ready example.</li>
<li>Error handling is shown explicitly with <code>try</code>/<code>catch</code>, so the expected error types and usage are clear.</li>
<li>AI tools reading the SDK docs and Model pages have complete, accurate examples to ground their answers in.</li>
<li>Developers spend less time piecing together correct usage and more time building.</li>
</ul>
]]></content:encoded>
      <category>Enhancement</category>
      <category>SDKs</category>
      <category>Developer Portal</category>
      <category>Code Samples</category>
      <category>AI</category>
    </item>
    <item>
      <title>Introducing the AI Assist Menu for Instant Documentation Context</title>
      <link>https://docs.apimatic.io/changelog/ai-assist-menu</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/ai-assist-menu</guid>
      <pubDate>Mon, 18 May 2026 00:00:00 GMT</pubDate>
      <description>Introduces the AI Assist Menu — a one-click dropdown on every documentation page that sends the page to ChatGPT, Claude, Perplexity, Grok, or Google AI Studio as context.</description>
      <content:encoded><![CDATA[<p>Developers frequently switch between APIMatic documentation and external AI chat tools to understand APIs — a workflow that required manually copying page content and pasting it each time. This release eliminates that friction entirely.</p>
<p>We&#39;ve introduced the <strong>AI Assist Menu</strong>, a one-click dropdown available on every documentation page that sends the current page&#39;s content directly to your preferred AI tool as context.</p>
<h2>What&#39;s Included</h2>
<h3>AI Chat Tool Integrations</h3>
<p>The menu provides direct integrations with the following AI tools:</p>
<ul>
<li><strong>Open in ChatGPT</strong> — Launches ChatGPT with the current page loaded as context, ready for questions.</li>
<li><strong>Open in Claude</strong> — Opens Claude with the current page pre-loaded for instant assistance.</li>
<li><strong>Open in Perplexity</strong> — Sends the page to Perplexity for AI-powered research and answers.</li>
<li><strong>Open in Grok</strong> — Opens Grok with the current page as context.</li>
<li><strong>Open in Google AI Studio</strong> — Launches Google AI Studio with the documentation page loaded.</li>
</ul>
<h3>Utility Options</h3>
<ul>
<li><strong>Copy Page</strong> — Copies the current page as Markdown, formatted for use in any LLM.</li>
<li><strong>View as Markdown</strong> — Opens the current page in raw Markdown format in the browser.</li>
</ul>
<p><img src="https://docs.apimatic.io/images/changelog/ai-assist-menu.gif" alt="AI Assist Menu dropdown showing available AI tool options"></p>
<h2>Configuration</h2>
<p>The AI Assist Menu is enabled automatically the next time your portal is published — no explicit configuration is required to get started. To customize which tools appear or to disable the menu entirely, use the <code>aiAssistMenu</code> key under <code>generatePortal.portalSettings</code> in your portal configuration:</p>
<pre><code class="language-json">{
  &quot;generatePortal&quot;: {
    &quot;portalSettings&quot;: {
      &quot;aiAssistMenu&quot;: {
        &quot;enable&quot;: true,
        &quot;tools&quot;: {
          &quot;chatgpt&quot;: true,
          &quot;claude&quot;: true,
          &quot;perplexity&quot;: true,
          &quot;grok&quot;: true,
          &quot;googleAiStudio&quot;: true
        },
        &quot;showCopyPage&quot;: true,
        &quot;showViewAsMarkdown&quot;: true
      }
    }
  }
}
</code></pre>
<table>
<thead>
<tr>
<th>Property</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody><tr>
<td><code>enable</code></td>
<td><code>boolean</code></td>
<td>Enables or disables the AI Assist Menu.</td>
</tr>
<tr>
<td><code>tools</code></td>
<td><code>object</code></td>
<td>Map of AI tools to booleans (<code>true</code> to show, <code>false</code> to hide). Supported keys: <code>chatgpt</code>, <code>claude</code>, <code>perplexity</code>, <code>grok</code>, <code>googleAiStudio</code>. See <strong>Validation Rules</strong> below for defaults.</td>
</tr>
<tr>
<td><code>showCopyPage</code></td>
<td><code>boolean</code></td>
<td>Shows the <strong>Copy Page</strong> option in the menu.</td>
</tr>
<tr>
<td><code>showViewAsMarkdown</code></td>
<td><code>boolean</code></td>
<td>Shows the <strong>View as Markdown</strong> option in the menu.</td>
</tr>
</tbody></table>
<h3>Validation Rules</h3>
<ul>
<li><strong>Empty <code>aiAssistMenu</code></strong> — Setting <code>aiAssistMenu</code> to <code>{}</code> is shorthand for &quot;use all defaults&quot;: every option, including every entry in <code>tools</code>, is treated as <code>true</code>.</li>
<li><strong><code>tools</code> behavior</strong> — Each tool key is shown when set to <code>true</code>, and hidden when set to <code>false</code>. If <code>tools</code> is <code>{}</code> or omitted, every supported tool defaults to <code>true</code> and is shown.</li>
</ul>
<h2>Availability</h2>
<blockquote>
<p><strong>Note</strong></p>
<p>The AI Assist Menu is currently available only in portals generated via the Docs-as-Code workflow.</p>
</blockquote>
<p>To disable the AI Assist Menu, add the following to your portal settings:</p>
<pre><code class="language-json">{
  &quot;generatePortal&quot;: {
    &quot;portalSettings&quot;: {
      &quot;aiAssistMenu&quot;: {
        &quot;enable&quot;: false
      }
    }
  }
}
</code></pre>
<p>For full configuration details, see the <a href="https://docs.apimatic.io/platform-api/#/http/guides/generating-on-prem-api-portal/build-file-reference/generateportal-portalsettings-aiassistmenu">AI Assist Menu Documentation</a>.</p>
]]></content:encoded>
      <category>New Feature</category>
      <category>Developer Portal</category>
      <category>Developer Experience</category>
    </item>
    <item>
      <title>New C# SDK Now Available in Beta</title>
      <link>https://docs.apimatic.io/changelog/added-csharp-sdk-v4-beta</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/added-csharp-sdk-v4-beta</guid>
      <pubDate>Fri, 15 May 2026 00:00:00 GMT</pubDate>
      <description>A new C# SDK is now available in beta. Use the new --codegen-version and --stability flags in the APIMatic CLI to generate it.</description>
      <content:encoded><![CDATA[<p>The new C# SDK is now available in beta. You can generate it today using the <a href="https://docs.apimatic.io/v4/apimatic-cli/getting-started">APIMatic CLI</a>. Try it out and share your feedback with us.</p>
<h2>What&#39;s New?</h2>
<ul>
<li><strong>Redesigned Core Architecture</strong>: Single-orchestrator pipeline with dedicated, fully decoupled components for auth, resilience, serialization, and error handling</li>
<li><strong>Predictable Endpoint Structure</strong>: Every endpoint maps directly to its HTTP call, making the full request lifecycle visible and predictable across all methods</li>
<li><strong>Type-Safe Models</strong>: Response models enforce optionality and presence contracts at compile time, eliminating runtime surprises</li>
<li><strong>Per-Endpoint Typed Errors</strong>: Each endpoint exposes its own error type, fully navigable in the IDE without consulting documentation</li>
<li><strong>Broad Runtime Compatibility</strong>: Targets <code>netstandard2.0</code> with full C# 14 language features and native <code>IHttpClientFactory</code> and DI support</li>
</ul>
<h2>Generating the SDK</h2>
<p>The <code>apimatic sdk generate</code> command now supports two new flags for selecting the code generator version and stability level:</p>
<table>
<thead>
<tr>
<th>Flag</th>
<th>Options</th>
<th>Description</th>
</tr>
</thead>
<tbody><tr>
<td><code>--codegen-version</code></td>
<td><code>v3</code> (default), <code>v4</code></td>
<td>Version of the code generator to use.</td>
</tr>
<tr>
<td><code>--stability</code></td>
<td><code>stable</code> (default), <code>beta</code></td>
<td>Stability level of the generated SDK.</td>
</tr>
</tbody></table>
<p>Pass <code>--codegen-version=v4</code> and <code>--stability=beta</code> to generate the new SDK:</p>
<pre><code class="language-bash">apimatic sdk generate --language=csharp --codegen-version=v4 --stability=beta
</code></pre>
<blockquote>
<p><strong>Note</strong></p>
<p>v4 beta is currently available for <strong>C#</strong>, <strong>Python</strong>, and <strong>TypeScript</strong>. While the <code>--codegen-version</code> and <code>--stability</code> flags are accepted for all languages, using <code>--codegen-version=v4</code> with any other language will result in a generation error.</p>
</blockquote>
]]></content:encoded>
      <category>CLI</category>
      <category>SDKs</category>
      <category>C#</category>
      <category>Feature</category>
    </item>
    <item>
      <title>Added Support for Custom URL Slugs in Developer Portals</title>
      <link>https://docs.apimatic.io/changelog/added-support-for-slug-in-toc</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/added-support-for-slug-in-toc</guid>
      <pubDate>Thu, 14 May 2026 00:00:00 GMT</pubDate>
      <description>Adds a `slug` option to `toc.yml` so you can define custom URL path segments for any documentation item, instead of using the segment derived from the item's text label.</description>
      <content:encoded><![CDATA[<p>The Developer Portal&#39;s <code>toc.yml</code> now supports a custom <code>slug</code> option, giving you full control over the URL paths generated for your documentation pages.</p>
<p><img src="https://docs.apimatic.io/images/changelog/slug.png" alt="Browser URL bar showing a custom slug path used as the URL segment instead of the segment derived from the page title"></p>
<h2>What&#39;s Changed?</h2>
<p>You can now define a custom <code>slug</code> for any item in your <code>toc.yml</code>. When a <code>slug</code> is provided, it&#39;s used as the URL path segment instead of the one derived from the sidebar navigation items. This is particularly useful when the item&#39;s text contains special characters that would produce undesirable URL segments.</p>
<p>To add custom slugs, update your <code>toc.yml</code> file as shown below:</p>
<pre><code class="language-yaml">toc:
  - group: Custom Content
    items:
      - group: Release Notes
        items:
          - page: What&#39;s New &amp; What&#39;s Changed?
            slug: changelog
            file: release-notes/changelog.md
</code></pre>
<p>In the example above, the page titled <code>What&#39;s New &amp; What&#39;s Changed?</code> will be accessible using the slug <code>changelog</code> in the URL, instead of a segment derived from the title.</p>
<blockquote>
<p><strong>Note</strong></p>
<p>This feature is only supported for portals generated via Docs as Code. Slugs are optional and can be added to any item in <code>toc.yml</code> (groups, pages, and generated items).</p>
</blockquote>
<p>For detailed instructions on configuring custom slugs in <code>toc.yml</code>, refer to the documentation <a href="https://docs.apimatic.io/platform-api/#/http/guides/generating-on-prem-api-portal/toc-customization/how-to-add-slugs-in-toc-yml">here</a>.</p>
]]></content:encoded>
      <category>Developer Portal</category>
      <category>New Feature</category>
    </item>
    <item>
      <title>New Validation Rules for API Entity Names Exceeding 100 Characters</title>
      <link>https://docs.apimatic.io/changelog/added-max-name-length-validation-rules</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/added-max-name-length-validation-rules</guid>
      <pubDate>Thu, 14 May 2026 00:00:00 GMT</pubDate>
      <description>We've added new validation and linting rules that flag API entity names exceeding 100 characters in OpenAPI specifications. Names exceeding 100 characters now produce an Error-severity violation that blocks Code Generation, Docs Generation, and Portal Generation.</description>
      <content:encoded><![CDATA[<p>We&#39;ve added new validation and linting rules that flag API entity names exceeding 100 characters in OpenAPI specifications. Names exceeding 100 characters now produce an <strong>Error</strong>-severity violation that blocks Code Generation, Docs Generation, and Portal Generation.</p>
<h2>Details</h2>
<p>Entity names in API specifications are used to generate class names, method names, file names, and documentation titles across multiple SDK languages. When these names are excessively long, they can cause failures during SDK generation and degrade the developer experience in generated portals.</p>
<p>Based on our analysis of real-world customer specifications and SDK generation constraints across 7 programming languages, we&#39;ve set the maximum allowed name length at <strong>100 characters</strong>. This threshold provides sufficient flexibility for descriptive naming while preventing the issues described below.</p>
<h2>Why This Matters</h2>
<p>Using entity names longer than 100 characters in your API specification can lead to the following issues:</p>
<h3>SDK Generation Failures</h3>
<ul>
<li><strong>File path length errors</strong>: SDK generators create files and directories derived from entity names. Excessively long names combined with nested directory structures can exceed the operating system&#39;s maximum path length (e.g., 260 characters on Windows), resulting in <code>PathTooLongException</code> errors that block SDK generation entirely.</li>
<li><strong>Compilation errors</strong>: Some programming languages and compilers impose limits on identifier lengths. Names that are too long may cause generated code to fail to compile.</li>
</ul>
<h3>Poor Developer Experience</h3>
<ul>
<li><strong>Unreadable code</strong>: Generated class names, method names, and variable names derived from overly long entity names become difficult to read and use in application code.</li>
<li><strong>Truncated display</strong>: Documentation portals, IDE tooltips, and auto-complete suggestions may truncate long names, making it harder for developers to discover and understand API entities.</li>
<li><strong>Inconsistent naming across languages</strong>: Different SDK languages apply different naming conventions (PascalCase, snake_case, camelCase). Long names combined with these transformations can produce inconsistent or unwieldy identifiers.</li>
</ul>
<h3>Documentation and Portal Issues</h3>
<ul>
<li><strong>Layout problems</strong>: Extremely long names can break the layout of generated developer portals, causing overflow in navigation menus, table of contents, and endpoint listings.</li>
<li><strong>Reduced searchability</strong>: Long, compound names are harder to search for and remember, reducing the overall usability of the API documentation.</li>
</ul>
<h2>Affected Entities</h2>
<p>The following entities are now validated against the 100-character limit:</p>
<h3>OpenAPI 3.0 (13 new rules in <code>openapi-v3-codegen-linting</code>)</h3>
<table>
<thead>
<tr>
<th>Entity</th>
<th>Rule ID</th>
</tr>
</thead>
<tbody><tr>
<td>Info Title</td>
<td><a href="https://docs.apimatic.io/rulesets/openapi-v3-codegen-linting/info-title-exceeds-maximum-allowed-length/"><code>OPENAPI3CODEGEN_L051</code></a></td>
</tr>
<tr>
<td>Environment Name</td>
<td><a href="https://docs.apimatic.io/rulesets/openapi-v3-codegen-linting/environment-name-exceeds-maximum-allowed-length/"><code>OPENAPI3CODEGEN_L099</code></a></td>
</tr>
<tr>
<td>Server Name</td>
<td><a href="https://docs.apimatic.io/rulesets/openapi-v3-codegen-linting/server-name-exceeds-maximum-allowed-length/"><code>OPENAPI3CODEGEN_L100</code></a></td>
</tr>
<tr>
<td>Server Variables Key</td>
<td><a href="https://docs.apimatic.io/rulesets/openapi-v3-codegen-linting/server-variables-key-exceeds-maximum-allowed-length/"><code>OPENAPI3CODEGEN_L101</code></a></td>
</tr>
<tr>
<td>Server Parameter Name</td>
<td><a href="https://docs.apimatic.io/rulesets/openapi-v3-codegen-linting/server-parameter-name-exceeds-maximum-allowed-length/"><code>OPENAPI3CODEGEN_L102</code></a></td>
</tr>
<tr>
<td>Schema Component Key</td>
<td><a href="https://docs.apimatic.io/rulesets/openapi-v3-codegen-linting/schema-component-key-exceeds-maximum-allowed-length/"><code>OPENAPI3CODEGEN_L138</code></a></td>
</tr>
<tr>
<td>Path Item Parameter Name</td>
<td><a href="https://docs.apimatic.io/rulesets/openapi-v3-codegen-linting/path-item-parameter-name-exceeds-maximum-allowed-length/"><code>OPENAPI3CODEGEN_L174</code></a></td>
</tr>
<tr>
<td>Operation ID</td>
<td><a href="https://docs.apimatic.io/rulesets/openapi-v3-codegen-linting/operation-id-exceeds-maximum-allowed-length/"><code>OPENAPI3CODEGEN_L205</code></a></td>
</tr>
<tr>
<td>Operation Tag Name</td>
<td><a href="https://docs.apimatic.io/rulesets/openapi-v3-codegen-linting/operation-tag-name-exceeds-maximum-allowed-length/"><code>OPENAPI3CODEGEN_L206</code></a></td>
</tr>
<tr>
<td>Operation Parameter Name</td>
<td><a href="https://docs.apimatic.io/rulesets/openapi-v3-codegen-linting/operation-parameter-name-exceeds-maximum-allowed-length/"><code>OPENAPI3CODEGEN_L207</code></a></td>
</tr>
<tr>
<td>Tag Name</td>
<td><a href="https://docs.apimatic.io/rulesets/openapi-v3-codegen-linting/tag-name-exceeds-maximum-allowed-length/"><code>OPENAPI3CODEGEN_L585</code></a></td>
</tr>
<tr>
<td>Schema Title</td>
<td><a href="https://docs.apimatic.io/rulesets/openapi-v3-codegen-linting/schema-title-exceeds-maximum-allowed-length/"><code>OPENAPI3CODEGEN_L624</code></a></td>
</tr>
<tr>
<td>Schema Property Name</td>
<td><a href="https://docs.apimatic.io/rulesets/openapi-v3-codegen-linting/schema-property-name-exceeds-maximum-allowed-length/"><code>OPENAPI3CODEGEN_L625</code></a></td>
</tr>
</tbody></table>
<blockquote>
<p><strong>Note</strong></p>
<p>The existing 50-character <strong>Warning</strong>-severity rules remain unchanged. Names between 51 and 100 characters will still produce a warning, while names exceeding 100 characters will now produce a blocking error.</p>
</blockquote>
<h2>What You Should Do</h2>
<p>If your API specification contains entity names longer than 100 characters, you will see new Error-severity messages during validation. To resolve these:</p>
<ol>
<li><strong>Shorten the affected names</strong> to 100 characters or fewer while keeping them descriptive.</li>
<li>Use the <strong>rule ID</strong> from the validation message to locate the exact entity in your specification.</li>
<li>If you need to temporarily bypass these rules, you can adjust your <a href="https://docs.apimatic.io/validate-lint-apis/configuring-validation/">Validation Configuration</a> to change the severity or skip specific rules.</li>
</ol>
]]></content:encoded>
      <category>New Feature</category>
      <category>Validation</category>
      <category>Linting</category>
    </item>
    <item>
      <title>Revamping LLM Context Files and Adding Per-Page Markdown Exports</title>
      <link>https://docs.apimatic.io/changelog/revamped-llm-context-files-and-added-per-page-markdown-exports</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/revamped-llm-context-files-and-added-per-page-markdown-exports</guid>
      <pubDate>Thu, 14 May 2026 00:00:00 GMT</pubDate>
      <description>Improves LLM context files for developer portals and adds per-page Markdown exports.</description>
      <content:encoded><![CDATA[<p>We&#39;ve improved <code>llms.txt</code> and <code>llms-full.txt</code> for developer portals and added per-page Markdown exports. These updates make the documentation easier for AI tools to read and help them return answers that are more accurate, relevant, and grounded in the same content users see in the portal.</p>
<h2>What&#39;s New?</h2>
<h3>Easier navigation for AI tools</h3>
<p><code>llms-full.txt</code> is now easier for AI tools to follow, so they can move through the documentation in a way that better matches how users explore the portal.</p>
<h3>Clearer page-level documentation</h3>
<p>Each portal page can now be available as its own Markdown document. This gives AI tools a cleaner page-level source to read from, which helps them find the right topic faster and answer with better context.</p>
<h3>Better <code>llms.txt</code> structure and links</h3>
<p><code>llms.txt</code> now follows the portal structure more closely and points to page-level Markdown documents instead of raw portal URLs.</p>
<p>Before:</p>
<pre><code class="language-md">### Models

- [Order](https://www.example.com/docs/#/http/x-redirect/JTI0bSUyRk9yZGVy) 
- [Category](https://www.example.com/docs/#/http/x-redirect/JTI0bSUyRkNhdGVnb3J5) 
- [User](https://www.example.com/docs/#/http/x-redirect/JTI0bSUyRlVzZXI) 
- [Tag](https://www.example.com/docs/#/http/x-redirect/JTI0bSUyRlRhZw) 
</code></pre>
<p>After:</p>
<pre><code class="language-md">## Models
- Structures
  - [Order](https://www.example.com/docs/llms-pages/http/models/structures/order.md)
  - [Category](https://www.example.com/docs/llms-pages/http/models/structures/category.md)
  - [User](https://www.example.com/docs/llms-pages/http/models/structures/user.md)
  - [Tag](https://www.example.com/docs/llms-pages/http/models/structures/tag.md)
</code></pre>
<p>These Markdown documents are organized in a folder structure that matches the portal, and each one includes a Source link back to the corresponding portal page.</p>
<p>For example, a generated page-level Markdown file can include:</p>
<pre><code class="language-md"># Order

Source: https://www.example.com/docs/#/http/x-redirect/JTI0bSUyRk9yZGVy
</code></pre>
<h3>More complete answers from portal content</h3>
<p><code>llms-full.txt</code> now gives AI tools access to more of the information users expect to find in the portal.</p>
<p>This includes better coverage for:</p>
<ul>
<li>Authentication details for endpoints that require auth.</li>
<li>Success response descriptions.</li>
<li>Request parameters, errors, usage examples, and server information.</li>
<li>Model descriptions.</li>
<li>Initialization examples for <code>OneOf</code> and <code>AnyOf</code> schemas when available.</li>
<li>Custom guide content and richer rendered structures such as tabs, callouts, code blocks, and linked resources.</li>
</ul>
<p>Overall, these tools can now use a fuller and more helpful view of the documentation, which should lead to better answers for developers.</p>
<h2>Why This Matters</h2>
<p>Previously, AI tools could miss useful page details or pick up less helpful summaries when working from generated documentation.</p>
<p>With this update:</p>
<ul>
<li>They can navigate the docs more effectively.</li>
<li>Page summaries are clearer and less noisy.</li>
<li>Page-level Markdown gives AI workflows a cleaner input source.</li>
<li>More portal content is available to support better answers.</li>
</ul>
<p>To learn more, see the <a href="https://docs.apimatic.io/ai-capabilities/llms-txt">LLM context generation documentation</a>.</p>
]]></content:encoded>
      <category>Enhancement</category>
      <category>Developer Portal</category>
      <category>AI</category>
    </item>
    <item>
      <title>CLI: New SDK Publish and Publishing Profile List Commands</title>
      <link>https://docs.apimatic.io/changelog/cli-sdk-publish-and-publishing-profile-list</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/cli-sdk-publish-and-publishing-profile-list</guid>
      <pubDate>Mon, 27 Apr 2026 00:00:00 GMT</pubDate>
      <description>We've added two new commands to the @apimatic/cli that make it easy to publish SDKs and list your publishing profiles directly from the CLI.</description>
      <content:encoded><![CDATA[<p>We&#39;ve added two new commands to the <a href="https://www.npmjs.com/package/@apimatic/cli"><code>@apimatic/cli</code></a> that make it easy to publish SDKs and list your publishing profiles directly from the CLI.</p>
<h2>New Commands</h2>
<h3>1. SDK Publish</h3>
<p>Generate and publish an SDK to a <strong>package registry</strong> (for example npm, PyPI, NuGet) or a <strong>source code repository</strong> (on GitHub) using a publishing profile configured in the APIMatic App.</p>
<pre><code class="language-bash">apimatic sdk publish
</code></pre>
<p>Run without flags for a step-by-step guided experience, or supply all flags for CI/CD automation:</p>
<pre><code class="language-bash">apimatic sdk publish --profile-id=a1b2c3d4e5f6a1b2c3d4e5f6 --language=typescript --version=1.0.0 --publish-type=package --publish-type=sourcecode
</code></pre>
<h4>Flags</h4>
<table>
<thead>
<tr>
<th>Flag</th>
<th>Description</th>
</tr>
</thead>
<tbody><tr>
<td><code>--profile-id</code>, <code>-p</code></td>
<td>ID of the publishing profile to use.</td>
</tr>
<tr>
<td><code>--language</code>, <code>-l</code></td>
<td>SDK language to generate and publish.</td>
</tr>
<tr>
<td><code>--version</code>, <code>-v</code></td>
<td>Semantic version of the SDK (e.g. <code>1.0.0</code>).</td>
</tr>
<tr>
<td><code>--publish-type</code></td>
<td>Publishing target(s): <code>package</code> for a package registry, <code>sourcecode</code> for a git repository. Can be specified multiple times.</td>
</tr>
<tr>
<td><code>--input</code></td>
<td>Path to the parent directory containing the &#39;src&#39; directory, which includes API specification. Defaults to <code>./</code>.</td>
</tr>
<tr>
<td><code>--destination</code></td>
<td>Directory where the generated SDK will be saved locally.</td>
</tr>
<tr>
<td><code>--dry-run</code></td>
<td>Generate the SDK locally for review without publishing.</td>
</tr>
<tr>
<td><code>--force</code></td>
<td>Overwrite existing output without prompting.</td>
</tr>
</tbody></table>
<h4>Publish Types</h4>
<p>You can target one or both publishing targets in a single command by passing <code>--publish-type</code> multiple times:</p>
<pre><code class="language-bash"># Publish to package registry only
apimatic sdk publish --profile-id=a1b2c3d4e5f6a1b2c3d4e5f6 --language=java --version=2.0.0 --publish-type=package

# Publish to both package registry and source repository
apimatic sdk publish --profile-id=b2c3d4e5f6a1b2c3d4e5f6a1 --language=typescript --version=1.0.0 --publish-type=package --publish-type=sourcecode
</code></pre>
<blockquote>
<p><strong>Note</strong></p>
<p>The language and publish type(s) specified must be configured in the publishing profile.</p>
</blockquote>
<h4>Dry Run</h4>
<p>Use <code>--dry-run</code> to only generate the SDK locally and inspect the output before publishing:</p>
<pre><code class="language-bash">apimatic sdk publish --dry-run --profile-id=c3d4e5f6a1b2c3d4e5f6a1b2 --language=python --version=1.0.0 --publish-type=package
</code></pre>
<hr>
<h3>2. Publishing Profile List</h3>
<p>Display all publishing profiles associated with your account, including each profile&#39;s name, ID, and enabled languages.</p>
<pre><code class="language-bash">apimatic publishing profile list
</code></pre>
<p>Use this command to look up the profile ID required for <code>sdk publish</code>:</p>
<pre><code class="language-bash"># Find your profile ID
apimatic publishing profile list

┌   Publishing Profile List
│
◇  Publishing profiles fetched successfully.
│
●  Publishing Profiles (3 profiles)
│
│  Apimatic API
│  ┌──────────────────────────┬────────────────────────────┬─────────────┐
│  │ Name                     │ ID                         │ Languages   │
│  ├──────────────────────────┼────────────────────────────┼─────────────┤
│  │ New Publishing Profile   │ a1b2c3d4e5f6a1b2c3d4e5f6   │ csharp      │
│  └──────────────────────────┴────────────────────────────┴─────────────┘
│
│  APIMATIC Calculator
│  ┌────────────────────────────────────────┬────────────────────────────┬──────────────────────────────┐
│  │ Name                                   │ ID                         │ Languages                    │
│  ├────────────────────────────────────────┼────────────────────────────┼──────────────────────────────┤
│  │ Test Package Publishing - Calculator   │ b2c3d4e5f6a1b2c3d4e5f6a1   │ typescript                   │
│  ├────────────────────────────────────────┼────────────────────────────┼──────────────────────────────┤
│  │ Another Publishing Profile             │ c3d4e5f6a1b2c3d4e5f6a1b2   │ csharp, python, typescript   │
│  └────────────────────────────────────────┴────────────────────────────┴──────────────────────────────┘
│
└  Succeeded
</code></pre>
<p>Then use the profile ID with <code>sdk publish</code>:</p>
<pre><code class="language-bash">apimatic sdk publish --profile-id=a1b2c3d4e5f6a1b2c3d4e5f6 --language=csharp --version=1.0.0 --publish-type=package
</code></pre>
<hr>
<h2>Upgrade Now</h2>
<p>Install the latest CLI version from NPM:</p>
<pre><code class="language-bash">npm install -g @apimatic/cli@latest
</code></pre>
<p>For full flag references and usage examples, see <a href="https://docs.apimatic.io/apimatic-cli/commands/#publish-an-sdk">Publish an SDK</a> and <a href="https://docs.apimatic.io/apimatic-cli/commands/#list-publishing-profiles">List Publishing Profiles</a>.</p>
]]></content:encoded>
      <category>CLI</category>
      <category>SDKs</category>
      <category>SDK Publishing</category>
    </item>
    <item>
      <title>Added Support for Disabling Try It Out per Environment in Developer Portal</title>
      <link>https://docs.apimatic.io/changelog/added-disable-try-it-out-per-environment</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/added-disable-try-it-out-per-environment</guid>
      <pubDate>Tue, 21 Apr 2026 00:00:00 GMT</pubDate>
      <description>A new boolean property disableTryItOut has been introduced at the environment level within the Server Configuration, allowing API providers to disable the interactive Try It Out functionality on the API portal for specific environments.</description>
      <content:encoded><![CDATA[<p>A new boolean property <code>disableTryItOut</code> has been introduced at the environment level within the <a href="https://docs.apimatic.io/manage-apis/apimatic-metadata/#server-configuration-override">Server Configuration</a>, allowing API providers to disable the interactive Try It Out functionality on the API portal for specific environments.</p>
<h2>Details</h2>
<p>If you want to prevent interactive testing on specific environments, such as production or internal staging, you can selectively disable Try It Out on a per-environment basis while keeping it available for other environments like sandbox or testing.</p>
<p>By default, Try It Out is enabled for all environments.</p>
<p><strong>Before</strong></p>
<p>  <img src="https://docs.apimatic.io/v4/images/changelog/portal-enabled-tryitout.png" alt="Try It Out Enabled on Portal"></p>
<p><strong>After</strong></p>
<p>  <img src="https://docs.apimatic.io/v4/images/changelog/portal-disabled-tryitout.png" alt="Try It Out Disabled on Portal"></p>
<table>
<thead>
<tr>
<th>Environment</th>
<th><code>disableTryItOut</code></th>
<th>Portal Behavior</th>
</tr>
</thead>
<tbody><tr>
<td>sandbox</td>
<td><code>false</code> (default)</td>
<td>Try It Out button is enabled</td>
</tr>
<tr>
<td>production</td>
<td><code>true</code></td>
<td>Try It Out button is disabled</td>
</tr>
</tbody></table>
<h2>Supported Formats</h2>
<p>This property is supported in OpenAPI 3.0, OpenAPI 3.1, and Swagger 2.0 via the <code>x-server-configuration</code> vendor extension, as well as in the APIMATIC-META.json file.</p>
<h3>Using the <code>x-server-configuration</code> Vendor Extension (OpenAPI / Swagger)</h3>
<p>Define <code>disableTryItOut</code> inside each environment object under the <code>x-server-configuration</code> extension at the <code>info</code> object level.</p>
<p><strong>OpenAPI 3.0</strong></p>
<pre><code class="language-yaml">openapi: &quot;3.0.0&quot;
info:
  title: Sample API
  version: &quot;1.0.0&quot;
  x-server-configuration:
    environments:
      - name: production
        disableTryItOut: true
        servers:
          - name: default
            url: https://api.example.com
</code></pre>
<p><strong>OpenAPI 3.1</strong></p>
<pre><code class="language-yaml">openapi: &quot;3.1.0&quot;
info:
  title: Sample API
  version: &quot;1.0.0&quot;
  x-server-configuration:
    environments:
      - name: production
        disableTryItOut: true
        servers:
          - name: default
            url: https://api.example.com
</code></pre>
<p><strong>Swagger 2.0</strong></p>
<pre><code class="language-yaml">swagger: &quot;2.0&quot;
info:
  title: Sample API
  version: &quot;1.0.0&quot;
  x-server-configuration:
    environments:
      - name: production
        disableTryItOut: true
        servers:
          - name: default
            url: https://api.example.com
</code></pre>
<h3>Using the APIMATIC-META.json File</h3>
<p>When importing your API specification as a ZIP archive with an <a href="https://docs.apimatic.io/manage-apis/apimatic-metadata/">APIMATIC-META.json</a> file, define <code>DisableTryItOut</code> on the environment object within the <code>ServerConfiguration</code>.</p>
<pre><code class="language-json">{
  &quot;ServerConfiguration&quot;: {
    &quot;Environments&quot;: [
      {
        &quot;Name&quot;: &quot;production&quot;,
        &quot;DisableTryItOut&quot;: true,
        &quot;Servers&quot;: [
          {
            &quot;Name&quot;: &quot;default&quot;,
            &quot;Url&quot;: &quot;https://api.example.com&quot;
          }
        ]
      }
    ]
  }
}
</code></pre>
]]></content:encoded>
      <category>New Feature</category>
      <category>Developer Portal</category>
    </item>
    <item>
      <title>Configurable Sidebar Width Now Available in the API Developer Portal</title>
      <link>https://docs.apimatic.io/changelog/wide-sidebar-support</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/wide-sidebar-support</guid>
      <pubDate>Thu, 16 Apr 2026 00:00:00 GMT</pubDate>
      <description>Configure the left navigation sidebar width using predefined size options in portal settings.</description>
      <content:encoded><![CDATA[<p>We&#39;ve added support for configurable sidebar widths in the <strong>API Developer Portal</strong>. You can now control the left navigation sidebar width using the <code>layout.sidebar.size</code> portal setting, with four predefined sizes to choose from.</p>
<h2>What&#39;s New</h2>
<ul>
<li><strong>Configurable sidebar width</strong>: Control the left navigation sidebar width via the <code>layout.sidebar.size</code> portal setting.</li>
<li><strong>Predefined sizes</strong>: Choose from four width options depending on your content needs.</li>
</ul>
<table>
<thead>
<tr>
<th>Size</th>
<th>Width</th>
<th>Description</th>
</tr>
</thead>
<tbody><tr>
<td><code>sm</code></td>
<td>272px</td>
<td>Default size, suitable for minimal layouts</td>
</tr>
<tr>
<td><code>md</code></td>
<td>290px</td>
<td>Slightly wider for balanced content</td>
</tr>
<tr>
<td><code>lg</code></td>
<td>320px</td>
<td>Comfortable width for most use cases</td>
</tr>
<tr>
<td><code>xl</code></td>
<td>355px</td>
<td>Maximum width for dense or content-heavy sidebars</td>
</tr>
</tbody></table>
<p><strong>Before</strong></p>
<p><img src="https://docs.apimatic.io/images/changelog/sidebar/default-sidebar.png" alt="Sidebar - Before"></p>
<p><strong>After</strong></p>
<p><img src="https://docs.apimatic.io/images/changelog/sidebar/wide-sidebar-lg.png" alt="Sidebar - After"></p>
<h2>Configuration Example</h2>
<p>Use the following structure to configure the sidebar width in your portal settings:</p>
<pre><code class="language-json">{
  &quot;generatePortal&quot;: {
    &quot;portalSettings&quot;: {
      &quot;theme&quot;: {
        &quot;layout&quot;: {
          &quot;sidebar&quot;: {
            &quot;size&quot;: &quot;lg&quot;
          }
        }
      }
    }
  }
}
</code></pre>
<ul>
<li><strong><code>layout.sidebar.size</code></strong>: Sets the width of the left navigation sidebar. Accepts <code>&quot;sm&quot;</code>, <code>&quot;md&quot;</code>, <code>&quot;lg&quot;</code>, or <code>&quot;xl&quot;</code>.</li>
</ul>
<p>For full configuration details, see the <a href="https://docs.apimatic.io/platform-api/#/http/guides/generating-on-prem-api-portal/build-file-reference/generateportal-portalsettings-theme-layout">theme layout configuration reference</a>.</p>
<h2>Backwards Compatibility</h2>
<ul>
<li>Portals with <strong>no <code>layout.sidebar.size</code> configured</strong> keep the existing sidebar width (<code>sm</code>) with <strong>no visual changes</strong>.</li>
<li>When <code>layout.sidebar.size</code> is configured, the sidebar width changes and the main content area adjusts to fit.</li>
</ul>
]]></content:encoded>
      <category>Enhancement</category>
      <category>Developer Portal</category>
    </item>
    <item>
      <title>Custom Code Injection: Add Your Own Logic to Generated SDKs</title>
      <link>https://docs.apimatic.io/changelog/cli-save-changes-flow</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/cli-save-changes-flow</guid>
      <pubDate>Wed, 15 Apr 2026 00:00:00 GMT</pubDate>
      <description>APIMatic's SDKs are now fully customizable. You can add your own code to any generated SDK, inluding new files, custom logic and extra dependencies. Your changes are preserved and persist across generations.</description>
      <content:encoded><![CDATA[<p>APIMatic&#39;s SDKs are now fully customizable. You can add your own code to any generated SDK, inluding new files, custom logic and extra dependencies. Your changes are preserved and persist across generations.</p>
<blockquote>
<p><strong>Note</strong></p>
<p>This entry describes APIMatic CLI v1, which tracked changes with <code>--track-changes</code> and <code>sdk save-changes</code>. APIMatic CLI v2 keeps your changes with <code>--git-init</code> instead: see <a href="https://docs.apimatic.io/v4/changelog#custom-code-in-v4-sdks">Customize v4 SDKs and Keep Your Changes When You Regenerate</a>.</p>
</blockquote>
<blockquote>
<p><strong>Supported languages</strong></p>
<p>Custom code injection is supported across <strong>all</strong> APIMatic SDK languages: <strong>C#, Java, TypeScript, PHP, Python, Ruby, and Go</strong>.</p>
</blockquote>
<h2>What this unlocks</h2>
<p>Generated SDKs are now a starting point you can build on, not a finished artifact you have to work around. APIMatic tracks the difference between generated code and your modifications, and reapplies your customizations automatically every time you regenerate. If your changes conflict with updates to the generated code, the CLI walks you through resolving them. Its the same way you&#39;d resolve a Git merge conflict.</p>
<p>With custom code injection, you can:</p>
<ul>
<li>Add custom authentication providers, utility files, or helper methods</li>
<li>Extend generated models with business logic</li>
<li>Modify <code>package.json</code>, <code>.csproj</code>, or other config files to add dependencies</li>
<li>Integrate with internal systems or third-party libraries</li>
</ul>
<p>All of this survives regeneration. No manual patching required.</p>
<h2>How it works</h2>
<p><strong>1. Generate your SDK with change tracking enabled</strong></p>
<pre><code class="language-bash">apimatic sdk generate --language=typescript --track-changes
</code></pre>
<p><strong>2. Add your custom code</strong></p>
<p>Modify any generated file or add new ones; custom flows, business logic, extra dependencies, whatever your project needs.</p>
<p><img src="https://docs.apimatic.io/images/changelog/cli-save-changes-flow/custom-logic-sdk.png" alt="Custom Logic in TypeScript SDK"></p>
<p><strong>3. Save your customizations</strong></p>
<pre><code class="language-bash">apimatic sdk save-changes --language=typescript
</code></pre>
<p><strong>4. Regenerate anytime</strong></p>
<pre><code class="language-bash">apimatic sdk generate --language=typescript
</code></pre>
<p>Your customizations are reapplied automatically. If there are conflicts between your changes and the newly generated code, the CLI prompts you to resolve them interactively.</p>
<p>For the full guide, including conflict resolution, CI/CD considerations, and how to revert customizations, see the <a href="https://docs.apimatic.io/generate-sdks/customize-sdks/custom-code-injection">Custom Code Injection</a> documentation.</p>
]]></content:encoded>
      <category>New</category>
      <category>SDKs</category>
      <category>Customization</category>
      <category>CLI</category>
    </item>
    <item>
      <title>API Copilot Now Supports HTTP</title>
      <link>https://docs.apimatic.io/changelog/added-http-support-in-api-copilot</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/added-http-support-in-api-copilot</guid>
      <pubDate>Mon, 30 Mar 2026 00:00:00 GMT</pubDate>
      <description>API Copilot now supports HTTP(also known as REST) in addition to the existing SDK-based languages. Developers can ask integration questions and receive accurate cURL code samples directly within the chat interface.</description>
      <content:encoded><![CDATA[<p>API Copilot now supports HTTP(also known as REST) in addition to the existing SDK-based languages. Developers can ask integration questions and receive accurate cURL code samples directly within the chat interface.</p>
<h2>Details</h2>
<p>Previously, API Copilot generated code exclusively for SDK-based languages — C#, Python, Java, TypeScript, PHP, Ruby, and Go. With this update, developers who prefer working with raw HTTP requests using cURL can now use API Copilot to get precise cURL code samples for their integration scenarios.</p>
<h3>What&#39;s New</h3>
<ul>
<li><strong>cURL Code Generation</strong>: API Copilot can now generate cURL request examples tailored to your query, just like it does for SDK languages.</li>
<li><strong>Full Feature Parity</strong>: All existing API Copilot capabilities — natural language query processing, multi-endpoint scenarios, and step-by-step explanations — are available when using HTTP.</li>
</ul>
<p><img src="https://docs.apimatic.io/v4/images/changelog/http-copilot.gif" alt="API Copilot"></p>
<h3>Supported Languages</h3>
<p>API Copilot now supports the following languages:</p>
<ul>
<li>C# (.NET)</li>
<li>Python</li>
<li>Java</li>
<li>TypeScript</li>
<li>PHP</li>
<li>Ruby</li>
<li>Go</li>
<li><strong>HTTP</strong> <em>(New)</em></li>
</ul>
]]></content:encoded>
      <category>API Co-Pilot</category>
      <category>Developer Portal</category>
    </item>
    <item>
      <title>Updated UI for Custom Components in the API Developer Portal</title>
      <link>https://docs.apimatic.io/changelog/custom-components-ui-update</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/custom-components-ui-update</guid>
      <pubDate>Thu, 26 Mar 2026 00:00:00 GMT</pubDate>
      <description>We've updated the UI for custom components in the API Developer Portal. Components including Callouts, Card/Card Group, Accordion/Accordion Group, Frame Image, Frame Video, Mermaid, and Table have been updated with a cleaner, more polished look — making your documentation feel...</description>
      <content:encoded><![CDATA[<p>We&#39;ve updated the UI for custom components in the <strong>API Developer Portal</strong>. Components including <strong>Callouts</strong>, <strong>Card/Card Group</strong>, <strong>Accordion/Accordion Group</strong>, <strong>Frame Image</strong>, <strong>Frame Video</strong>, <strong>Mermaid</strong>, and <strong>Table</strong> have been updated with a cleaner, more polished look — making your documentation feel more cohesive and professional.</p>
<p>This is a visual-only update. The syntax and behavior of all components remain exactly the same, so no changes to your existing documentation are needed.</p>
<h2>Callouts</h2>
<p><strong>Before</strong></p>
<p><img src="https://docs.apimatic.io/images/changelog/custom-components-updated/callouts-before.png" alt="Callouts - Before"></p>
<p><strong>After</strong></p>
<p><img src="https://docs.apimatic.io/images/changelog/custom-components-updated/callouts-after.png" alt="Callouts - After"></p>
<h2>Card &amp; Card Group</h2>
<p><strong>Before</strong></p>
<p><img src="https://docs.apimatic.io/images/changelog/custom-components-updated/card-and-card-group-before.png" alt="Card & Card Group - Before"></p>
<p><strong>After</strong></p>
<p><img src="https://docs.apimatic.io/images/changelog/custom-components-updated/card-and-card-group-after.png" alt="Card & Card Group - After"></p>
<h2>Accordion / Accordion Group</h2>
<p><strong>Before</strong></p>
<p><img src="https://docs.apimatic.io/images/changelog/custom-components-updated/accordian-and-accordian-group-before.png" alt="Accordion - Before"></p>
<p><strong>After</strong></p>
<p><img src="https://docs.apimatic.io/images/changelog/custom-components-updated/accordian-and-accordian-group-after.png" alt="Accordion - After"></p>
<h2>Frame</h2>
<p><strong>Before</strong></p>
<p><img src="https://docs.apimatic.io/images/changelog/custom-components-updated/frame-image-before.png" alt="Frame Image - Before"></p>
<p><strong>After</strong></p>
<p><img src="https://docs.apimatic.io/images/changelog/custom-components-updated/frame-image-after.png" alt="Frame Image - After"></p>
<h2>Video</h2>
<p><strong>Before</strong></p>
<p><img src="https://docs.apimatic.io/images/changelog/custom-components-updated/frame-video-before.png" alt="Frame Video - Before"></p>
<p><strong>After</strong></p>
<p><img src="https://docs.apimatic.io/images/changelog/custom-components-updated/frame-video-after.png" alt="Frame Video - After"></p>
<h2>Mermaid</h2>
<p><strong>Before</strong></p>
<p><img src="https://docs.apimatic.io/images/changelog/custom-components-updated/mermaid-before.png" alt="Mermaid - Before"></p>
<p><strong>After</strong></p>
<p><img src="https://docs.apimatic.io/images/changelog/custom-components-updated/mermaid-after.png" alt="Mermaid - After"></p>
<h2>Table</h2>
<p><strong>Before</strong></p>
<p><img src="https://docs.apimatic.io/images/changelog/custom-components-updated/table-before.png" alt="Table - Before"></p>
<p><strong>After</strong></p>
<p><img src="https://docs.apimatic.io/images/changelog/custom-components-updated/table-after.png" alt="Table - After"></p>
<blockquote>
<p><strong>Note</strong></p>
<p>No changes to your existing documentation are required. All components will automatically reflect the updated styling upon the next portal publish.</p>
</blockquote>
]]></content:encoded>
      <category>Improvement</category>
      <category>Developer Portal</category>
    </item>
    <item>
      <title>Adding Custom Text Support to the API Recipe Finish Modal</title>
      <link>https://docs.apimatic.io/changelog/api-recipe-customizable-completion-text</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/api-recipe-customizable-completion-text</guid>
      <pubDate>Tue, 24 Mar 2026 00:00:00 GMT</pubDate>
      <description>We've added the ability for recipe authors to customize the completion message, suggested next recipe label, and next recipe button text shown in the finish modal, giving you full control over how users are greeted at the end of a recipe.</description>
      <content:encoded><![CDATA[<p>We&#39;ve added the ability for recipe authors to customize the completion message, suggested next recipe label, and next recipe button text shown in the finish modal, giving you full control over how users are greeted at the end of a recipe.</p>
<p><img src="https://docs.apimatic.io/images/changelog/enhanced-finish-api-recipe/custom-text-in-finish-modal.png" alt="Custom text in the API Recipe finish modal"></p>
<h2>What&#39;s Changed?</h2>
<p>Building on the <a href="https://docs.apimatic.io/v4/changelog#api-recipe-finish-experience">Enhanced API Recipe Completion Flow</a>, the finish modal now supports three additional text customizations:</p>
<h4>Custom Completion Message</h4>
<p>The modal description was previously fixed to <em>&quot;You&#39;ve successfully completed <code>&lt;recipe name&gt;</code> recipe.&quot;</em> — can now be replaced with any message that fits your recipe&#39;s tone or context.</p>
<p>The modal description initially displays up to <strong>170 characters</strong>. If the message exceeds this limit, the text is truncated and a &quot;<strong>...more</strong>&quot; button appears inline, allowing users to expand the completion message. </p>
<h4>Custom Next Recipe Label</h4>
<p>The label above the suggested next recipe card, previously hardcoded as <em>&quot;Suggested Next Recipe&quot;</em>, can now be set to any text. This is useful when the relationship between recipes isn&#39;t strictly sequential — for example, <em>&quot;Related Recipe&quot;</em> or <em>&quot;Continue Your Journey&quot;</em>.</p>
<p>The label text displays up to <strong>170 characters</strong>. If the label exceeds this limit, the text is truncated and a &quot;<strong>...more</strong>&quot; button appears inline, allowing users to expand the label. </p>
<h4>Custom Next Recipe Button Text</h4>
<p>The button that navigates to the next recipe, previously labeled <em>&quot;Start Next Recipe&quot;</em>, can now display any text. This lets you match the button wording to the nature of the next step — for example, <em>&quot;Start Advanced SMS&quot;</em> or <em>&quot;Try OAuth 2.0&quot;</em>.</p>
<p>Button text is capped at <strong>25 characters</strong>. If the provided text exceeds this limit, it is automatically truncated with an ellipsis (e.g., <em>&quot;Start Your Next Inte...&quot;</em>) and the full text appears on hover.</p>
<h2>Configuring the Custom Text</h2>
<p>All options are set on the final step of a recipe alongside the existing <code>nextRecipe</code> and <code>showConfettiAnimation</code> fields.</p>
<pre><code class="language-js">&quot;Step 5&quot;: {
  name: &quot;Complete&quot;,
  stepCallback: async () =&gt; {
    return workflowCtx.showContent(&quot;Well done!&quot;);
  },
  showConfettiAnimation: true,
  completionMessage: &quot;You&#39;re all set! Your integration is ready to go.&quot;,
  nextRecipe: {
    name: &quot;OAuth 2.0 Authentication&quot;,
    link: &quot;page:recipes/oauth2-auth&quot;,
    label: &quot;Continue Your Journey&quot;,
    buttonText: &quot;Try OAuth 2.0&quot;,
  },
}
</code></pre>
<p>All three fields — <code>completionMessage</code>, <code>nextRecipe.label</code>, and <code>nextRecipe.buttonText</code> — are optional. When omitted, the modal falls back to the default text. For full details, see the <a href="https://docs.apimatic.io/platform-api/#/http/guides/generating-on-prem-api-portal/api-recipes/advanced-features">Advanced Features</a> reference. If you&#39;re new to API Recipes, start with the <a href="https://docs.apimatic.io/platform-api/#/http/guides/generating-on-prem-api-portal/api-recipes/overview">overview</a>.</p>
]]></content:encoded>
      <category>API Recipes</category>
      <category>UX Improvement</category>
      <category>Developer Experience</category>
    </item>
    <item>
      <title>Improved Title Generation in SDK Documentation</title>
      <link>https://docs.apimatic.io/changelog/improved-title-generation-in-sdk-docs-released</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/improved-title-generation-in-sdk-docs-released</guid>
      <pubDate>Mon, 16 Mar 2026 00:00:00 GMT</pubDate>
      <description>This release enhances SDK documentation title generation from your OpenAPI specifications. We now apply smarter casing rules to endpoint titles and model names. You'll see improved handling of prepositions, acronyms, and any words you've defined in the DoNotSplitWords list.</description>
      <content:encoded><![CDATA[<p>This release enhances SDK documentation title generation from your OpenAPI specifications. We now apply smarter casing rules to endpoint titles and model names. You&#39;ll see improved handling of prepositions, acronyms, and any words you&#39;ve defined in the DoNotSplitWords list.</p>
<h2>What’s Updated</h2>
<h3>1. Normalized casing for prepositions</h3>
<p>Prepositions are now lowercased when generating endpoint titles from OpenAPI <code>operationId</code> and model titles from schema names.</p>
<pre><code class="language-yaml">paths:
  /subscriptions/{subscriptionId}/coupons:
    delete:
      operationId: removeCouponFromSubscription
</code></pre>
<p><strong>Before</strong></p>
<p><img src="https://docs.apimatic.io/images/changelog/improved-title-generation-in-sdk-documentation/before_remove_coupon_from_subscription.png" alt="Remove Coupon From Subscription"></p>
<p><strong>After</strong></p>
<p><img src="https://docs.apimatic.io/images/changelog/improved-title-generation-in-sdk-documentation/after_remove_coupon_from_subscription.png" alt="Remove Coupon from Subscription"></p>
<h3>2. Improved acronym splitting</h3>
<p>The handling of acronyms and alphanumeric tokens has been enhanced, producing more accurate splits when generating titles from OpenAPI schema names and <code>operationId</code>.</p>
<pre><code class="language-yaml">components:
  schemas:
    &quot;AddressConfig IPv4&quot;:
      type: object
</code></pre>
<p><strong>Before</strong></p>
<p><img src="https://docs.apimatic.io/images/changelog/improved-title-generation-in-sdk-documentation/before_improved_acronym_splitting.png" alt="Address Config I Pv 4"></p>
<p><strong>After</strong></p>
<p><img src="https://docs.apimatic.io/images/changelog/improved-title-generation-in-sdk-documentation/after_improved_acronym_splitting.png" alt="Address Config IP V4"></p>
<blockquote>
<p><strong>Potential breaking change</strong></p>
<p>Improved acronym splitting may change the titles of some endpoints and models in your SDK documentation. If you have links pointing to those generated titles, you may need to update them after regenerating your SDK documentation.</p>
</blockquote>
<h3>3. Preserved casing for do-not-split words</h3>
<p>Terms defined in the <code>DoNotSplitWords</code> list now retain the exact casing from your OpenAPI schema names when generating model titles.</p>
<p>Example configuration:</p>
<pre><code class="language-yaml">info:
  x-codegen-settings:
    DoNotSplitWords:
      - ideal
components:
  schemas:
    iDEAL:
      type: object
</code></pre>
<p><strong>Before</strong></p>
<p><img src="https://docs.apimatic.io/images/changelog/improved-title-generation-in-sdk-documentation/before_preserved_casing-for_dnsw.png" alt="IDEAL"></p>
<p><strong>After</strong></p>
<p><img src="https://docs.apimatic.io/images/changelog/improved-title-generation-in-sdk-documentation/after_preserved_casing-for_dnsw.png" alt="iDEAL"></p>
<h2>Impact</h2>
<p>Titles for endpoints and models now appear more natural and consistent in SDK documentation, accurately reflecting intended naming while correctly handling prepositions, acronyms, and words defined in the <code>DoNotSplitWords</code> list.</p>
]]></content:encoded>
      <category>Documentation</category>
      <category>Improvement</category>
    </item>
    <item>
      <title>CLI: Updated SDK Generation Input Flag and Path Semantics</title>
      <link>https://docs.apimatic.io/changelog/cli-sdk-generate-input-flag-update</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/cli-sdk-generate-input-flag-update</guid>
      <pubDate>Thu, 12 Mar 2026 00:00:00 GMT</pubDate>
      <description>We are updating the SDK generation CLI command to make inputs for SDK and Portal generation CLI commands consistent. Now Portals and SDKs can be generated using the same input, simplifying CI/CD scripts.</description>
      <content:encoded><![CDATA[<p>We are updating the SDK generation CLI command to make inputs for SDK and Portal generation CLI commands consistent. Now Portals and SDKs can be generated using the same input, simplifying CI/CD scripts.</p>
<h2>What&#39;s Changed</h2>
<ol>
<li>The <code>--spec</code> flag for the <code>apimatic sdk generate</code> CLI command has been renamed to <code>--input</code>.</li>
<li>Default input path changed from <code>./src/spec</code> to <code>./</code>.</li>
<li>The input path now points to the parent directory containing the <code>src</code> directory that contains all the configurations along with the API specification files.</li>
<li>Added optional <code>--api-version</code> flag to allow selecting the API version for multi-versioned builds.</li>
</ol>
<p>The following example shows the directory structure required for <code>--spec</code> and <code>--input</code> flags.</p>
<p><strong>OLD: Spec Flag</strong></p>
<pre><code class="language-bash">apimatic sdk generate --langauge=php --spec=./spec
</code></pre>
<pre><code class="language-bash">spec
 ├─ APIMATIC-META.json # Defines customization for SDK generation
 └─ openapi.json
</code></pre>
<p><strong>NEW: Input Flag</strong></p>
<pre><code class="language-bash">apimatic sdk generate --langauge=php --input=./build
</code></pre>
<pre><code class="language-bash">build
 └─ src
   ├─ spec # Required; Contains all API definition files
   | ├─ APIMATIC-META.json # Defines customization for SDK generation
   | └─ openapi.json
   ├── APIMATIC-BUILD.json # Optional; Defines configurations for Portal generation
   ├── static # Optional; Contains all static files for the Portal
   └── content # Optional; Contains custom documentation pages for the Portal
</code></pre>
<h2>API Version Selection</h2>
<p>When generating SDKs for multi-versioned builds, you can now specify which API version to use with the <code>--api-version</code> flag. If not provided, you will be prompted to select from all available versions.</p>
<p><strong>Example:</strong></p>
<pre><code class="language-bash">apimatic sdk generate --language=csharp --input=./build --api-version=v2
</code></pre>
<p>This generates the SDK using the specification for <code>v2</code>. The specified version must exist within the versioned build.</p>
<h2>Migration Guidance</h2>
<p>If you are upgrading from a CLI version that only supports the <code>--spec</code> flag (for example, <code>1.1.0-beta.6</code>) to a version that supports the newer <code>--input</code> flag:</p>
<ol>
<li>No change is required in CI workflows if you are not using the <code>--spec</code> flag.</li>
<li>Replace <code>--spec</code> with <code>--input</code> in scripts and CI workflows and point <code>--input</code> to the project root (or other parent directory that contains <code>src</code>).</li>
</ol>
<p><strong>Replace:</strong></p>
<pre><code class="language-bash">apimatic sdk generate --language=csharp --spec=&quot;/path/to/spec/dir&quot;
</code></pre>
<p><strong>With:</strong></p>
<pre><code class="language-bash">apimatic sdk generate --language=csharp --input=&quot;path/to/root/dir/of/src&quot;
</code></pre>
]]></content:encoded>
      <category>CLI</category>
      <category>SDKs</category>
    </item>
    <item>
      <title>New OpenAPI Linting Rules for Pagination, Webhooks, and Callbacks</title>
      <link>https://docs.apimatic.io/changelog/added-openapi-linting-rules-for-pagination-webhooks-and-callbacks</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/added-openapi-linting-rules-for-pagination-webhooks-and-callbacks</guid>
      <pubDate>Thu, 12 Mar 2026 00:00:00 GMT</pubDate>
      <description>We've expanded the openapi-v3-apimatic-linting,openapi-v3-codegen-linting, openapi-v3-standard-linting, and openapi-v3-standards-validation rulesets with new linting and validation rules covering Pagination, Webhooks, and Callbacks.</description>
      <content:encoded><![CDATA[<p>We&#39;ve expanded the <a href="https://docs.apimatic.io/rulesets/openapi-v3-apimatic-linting/overview/"><code>openapi-v3-apimatic-linting</code></a>,<a href="https://docs.apimatic.io/rulesets/openapi-v3-codegen-linting/overview/"><code>openapi-v3-codegen-linting</code></a>, <a href="https://docs.apimatic.io/rulesets/openapi-v3-standards-linting/overview/"><code>openapi-v3-standard-linting</code></a>, and <a href="https://docs.apimatic.io/rulesets/openapi-v3-standard-validation/overview/"><code>openapi-v3-standards-validation</code></a> rulesets with new linting and validation rules covering Pagination, Webhooks, and Callbacks.</p>
<h2>Details</h2>
<p>As part of our continued investment in API quality tooling, the <code>openapi-v3-apimatic-linting</code>, <code>openapi-v3-codegen-linting</code>, <code>openapi-v3-standards-linting</code>, and <code>openapi-v3-standards-validation</code> rulesets now include dedicated rules for Pagination, Webhooks, and Callbacks. These additions help catch structural and semantic issues in your OpenAPI definitions early, before they result in incorrect SDK generation or documentation gaps.</p>
<h3>Pagination Rules</h3>
<p>12 new linting rules have been added to validate the use of APIMatic&#39;s <a href="https://docs.apimatic.io/specification-extensions/swagger-codegen-extensions#pagination-extension">pagination extension</a>:</p>
<ul>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-apimatic-linting/valid-pagination-type/">valid-pagination-type</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-apimatic-linting/pagination-type-required/">pagination-type-required</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-apimatic-linting/valid-pagination-json-pointer/">valid-pagination-json-pointer</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-apimatic-linting/pagination-result-points-to-array/">pagination-result-points-to-array</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-apimatic-linting/pagination-pointer-points-valid-property/">pagination-pointer-points-valid-property</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-apimatic-linting/pagination-input-must-point-to-integer-property/">pagination-input-must-point-to-integer-property</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-apimatic-linting/non-empty-pagination-input/">non-empty-pagination-input</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-apimatic-linting/non-empty-pagination-output/">non-empty-pagination-output</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-apimatic-linting/non-empty-pagination-result/">non-empty-pagination-result</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-apimatic-linting/non-empty-pagination-next/">non-empty-pagination-next</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-apimatic-linting/cursor-input-cursor-output-types-should-match/">cursor-input-cursor-output-types-should-match</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-apimatic-linting/link-pagination-next-must-be-string/">link-pagination-next-must-be-string</a></li>
</ul>
<h3>Webhook Rules</h3>
<p>24 new linting rules have been added to validate <a href="https://docs.apimatic.io/specification-extensions/swagger-codegen-extensions/#webhook-group-extension">OpenAPI Webhooks definitions</a>:</p>
<ul>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-apimatic-linting/webhook-only-post-method-allowed/">webhook-only-post-method-allowed</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-apimatic-linting/webhook-valid-key/">webhook-valid-key</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-apimatic-linting/webhook-valid-placeholder-delimiter/">webhook-valid-placeholder-delimiter</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-apimatic-linting/webhook-no-group-assigned/">webhook-no-group-assigned</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-apimatic-linting/webhook-group-non-empty-description/">webhook-group-non-empty-description</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-apimatic-linting/webhook-extension-group-must-exist-when-referenced/">webhook-extension-group-must-exist-when-referenced</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-apimatic-linting/webhook-payload-verification-algorithm-required/">webhook-payload-verification-algorithm-required</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-apimatic-linting/webhook-payload-verification-invalid-algorithm/">webhook-payload-verification-invalid-algorithm</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-apimatic-linting/webhook-payload-verification-signature-header-required/">webhook-payload-verification-signature-header-required</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-apimatic-linting/webhook-payload-verification-valid-digest-encoding/">webhook-payload-verification-valid-digest-encoding</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-apimatic-linting/webhook-payload-verification-digest-encoding-requires-hmac-algorithm/">webhook-payload-verification-digest-encoding-requires-hmac-algorithm</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-apimatic-linting/webhook-payload-verification-valid-message-template/">webhook-payload-verification-valid-message-template</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-apimatic-linting/webhook-payload-verification-valid-signature-value-template/">webhook-payload-verification-valid-signature-value-template</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-apimatic-linting/webhook-discriminator-property-pointer-required/">webhook-discriminator-property-pointer-required</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-apimatic-linting/webhook-discriminator-property-pointer-empty-path/">webhook-discriminator-property-pointer-empty-path</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-apimatic-linting/webhook-discriminator-property-pointer-invalid-format/">webhook-discriminator-property-pointer-invalid-format</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-apimatic-linting/webhook-discriminator-property-pointer-invalid-location/">webhook-discriminator-property-pointer-invalid-location</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-apimatic-linting/webhook-discriminator-property-pointer-points-to-valid-property/">webhook-discriminator-property-pointer-points-to-valid-property</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-apimatic-linting/webhook-discriminator-property-pointer-references-string-type/">webhook-discriminator-property-pointer-references-string-type</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-apimatic-linting/webhook-discriminator-property-pointer-missing-request-body/">webhook-discriminator-property-pointer-missing-request-body</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-apimatic-linting/webhook-discriminator-property-pointer-missing-request-body-content/">webhook-discriminator-property-pointer-missing-request-body-content</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-apimatic-linting/webhook-discriminator-mapping-value-empty/">webhook-discriminator-mapping-value-empty</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-apimatic-linting/webhook-discriminator-mapping-value-references-existing-definition/">webhook-discriminator-mapping-value-references-existing-definition</a></li>
<li><a href="https://docs.apimatic.io/rulesets/apimatic-codegen-validation/webhook-missing-request-body/">webhook-missing-request-body</a></li>
</ul>
<h3>Callback Rules</h3>
<p>26 new linting rules have been added to validate <a href="https://docs.apimatic.io/specification-extensions/swagger-codegen-extensions/#callback-group-extension">OpenAPI Callbacks definitions</a>:</p>
<ul>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-apimatic-linting/callback-only-post-method-allowed/">callback-only-post-method-allowed</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-apimatic-linting/callback-valid-key/">callback-valid-key</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-apimatic-linting/callback-valid-placeholder-delimiter/">callback-valid-placeholder-delimiter</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-apimatic-linting/callback-no-group-assigned-warning/">callback-no-group-assigned-warning</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-apimatic-linting/callback-group-non-empty-description/">callback-group-non-empty-description</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-apimatic-linting/callback-extension-group-must-exist-when-referenced/">callback-extension-group-must-exist-when-referenced</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-apimatic-linting/callback-payload-verification-algorithm-required/">callback-payload-verification-algorithm-required</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-apimatic-linting/callback-payload-verification-invalid-algorithm/">callback-payload-verification-invalid-algorithm</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-apimatic-linting/callback-payload-verification-signature-header-required/">callback-payload-verification-signature-header-required</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-apimatic-linting/callback-payload-verification-valid-digest-encoding/">callback-payload-verification-valid-digest-encoding</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-apimatic-linting/callback-payload-verification-digest-encoding-requires-hmac-algorithm/">callback-payload-verification-digest-encoding-requires-hmac-algorithm</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-apimatic-linting/callback-payload-verification-valid-message-template/">callback-payload-verification-valid-message-template</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-apimatic-linting/callback-payload-verification-valid-signature-value-template/">callback-payload-verification-valid-signature-value-template</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-apimatic-linting/callback-discriminator-property-pointer-required/">callback-discriminator-property-pointer-required</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-apimatic-linting/callback-discriminator-property-pointer-empty-path/">callback-discriminator-property-pointer-empty-path</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-apimatic-linting/callback-discriminator-property-pointer-invalid-format/">callback-discriminator-property-pointer-invalid-format</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-apimatic-linting/callback-discriminator-property-pointer-invalid-location/">callback-discriminator-property-pointer-invalid-location</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-apimatic-linting/callback-discriminator-property-pointer-points-to-valid-property/">callback-discriminator-property-pointer-points-to-valid-property</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-apimatic-linting/callback-discriminator-property-pointer-references-string-type/">callback-discriminator-property-pointer-references-string-type</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-apimatic-linting/callback-discriminator-property-pointer-missing-request-body/">callback-discriminator-property-pointer-missing-request-body</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-apimatic-linting/callback-discriminator-property-pointer-missing-request-body-content/">callback-discriminator-property-pointer-missing-request-body-content</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-apimatic-linting/callback-discriminator-mapping-value-empty/">callback-discriminator-mapping-value-empty</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-apimatic-linting/callback-discriminator-mapping-value-references-existing-definition/">callback-discriminator-mapping-value-references-existing-definition</a></li>
<li><a href="https://docs.apimatic.io/rulesets/apimatic-codegen-validation/callback-missing-request-body/">callback-missing-request-body</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-standards-linting/callback-operation-required-warning/">callback-operation-required-warning</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-standards-validation/valid-callback-url-expression/">valid-callback-url-expression</a></li>
</ul>
]]></content:encoded>
      <category>New Feature</category>
      <category>Validation</category>
      <category>Linting</category>
    </item>
    <item>
      <title>Success Notification for API Calls in API Recipes</title>
      <link>https://docs.apimatic.io/changelog/success-toast-notification-api-recipes</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/success-toast-notification-api-recipes</guid>
      <pubDate>Wed, 11 Mar 2026 00:00:00 GMT</pubDate>
      <description>We've introduced success notifications for API calls in API Recipes, allowing developers to confirm a successful response directly in the workflow.</description>
      <content:encoded><![CDATA[<p>We&#39;ve introduced success notifications for API calls in API Recipes, allowing developers to confirm a successful response directly in the workflow.</p>
<h2>What&#39;s New?</h2>
<p>Developers can now surface a success confirmation to users when an API call succeeds in API Recipes. A toast notification appears at the bottom of the screen with a message set by the developer.</p>
<p><img src="https://docs.apimatic.io/images/changelog/api-recipes/success-toast.gif" alt="Success toast notification in API Recipes"></p>
<h2>Success Message</h2>
<p>A new <code>setSuccessMessage</code> function is now available in the <code>verify</code> function. Use it to define the message shown to users on a successful API call:</p>
<pre><code class="language-js">verify: (response, setError, setSuccessMessage) =&gt; {
  if (response.status === 200) {
    setSuccessMessage(&quot;Your API key was verified successfully!&quot;);
    return true;
  }
  setError(&quot;Verification failed. Please check your credentials.&quot;);
  return false;
},
</code></pre>
<p>If <code>setSuccessMessage</code> is not called, a default message of &quot;API Call was successful&quot; is shown automatically, so users always receive confirmation of a successful call.</p>
]]></content:encoded>
      <category>Improvement</category>
      <category>Developer Portal</category>
      <category>API Recipes</category>
    </item>
    <item>
      <title>Organize Your Portal Sidebar with Webhook and Callback Groups</title>
      <link>https://docs.apimatic.io/changelog/toc-webhook-callback-grouping-support</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/toc-webhook-callback-grouping-support</guid>
      <pubDate>Tue, 10 Mar 2026 00:00:00 GMT</pubDate>
      <description>Managing event-driven APIs just got simpler. The Developer Portal now lets you include all webhooks or callbacks from a group directly in toc.yml with a single webhook-group or callback-group entry — no more listing every event by hand.</description>
      <content:encoded><![CDATA[<p>Managing event-driven APIs just got simpler. The Developer Portal now lets you <strong>include all webhooks or callbacks from a group directly in <code>toc.yml</code></strong> with a single <code>webhook-group</code> or <code>callback-group</code> entry — no more listing every event by hand.</p>
<h3>What&#39;s New?</h3>
<p>Instead of enumerating every individual webhook and callback, you can now point to an entire group with a single <strong>generate</strong> entry. Set <strong>from: webhook-group</strong> or <strong>from: callback-group</strong>, and every event belonging to that group in your API specification is pulled in automatically.</p>
<p><strong>Manual Configuration</strong></p>
<pre><code class="language-yaml">  - group: Ordering Events
    items:
      - group: Callbacks
        items:
          - group: Payment Callbacks
            items:
              - generate:
                from: callback-group-overview
                callback-group: paymentCallbacks
              - generate:
                from: callback
                callback-name: fulfillmentCallback
                callback-group: paymentCallbacks
      - group: Webhooks
        items:
          - group: Notification Events
            items:
              - generate:
                from: webhook-group-overview
                webhook-group: notificationEvents
              - generate:
                from: webhook
                webhook-name: userNotificationEvent
                webhook-group: notificationEvents
              - generate:
                from: webhook
                webhook-name: systemNotificationEvent
                webhook-group: notificationEvents
              - generate:
                from: webhook
                webhook-name: inventoryChangeEvent
                webhook-group: notificationEvents
          - group: Status Events
            items:
              - generate:
                from: webhook-group-overview
                webhook-group: statusEvents
              - generate:
                from: webhook
                webhook-name: paymentStatusUpdated
                webhook-group: statusEvents
              - generate:
                from: webhook
                webhook-name: paymentStatusCreated
                webhook-group: statusEvents
</code></pre>
<p><strong>Webhook &amp; Callback Group Reference</strong></p>
<pre><code class="language-yaml">toc:
  - group: Ordering Events
    items:
      - group: Callbacks
        items:
          - generate: Payment Callbacks
            from: callback-group
            callback-group: paymentCallbacks
      - group: Webhooks
        items:
          - generate: Notification Events
            from: webhook-group
            webhook-group: notificationEvents
          - generate: Status Events
            from: webhook-group
            webhook-group: statusEvents
</code></pre>
<p>The result is a leaner <code>toc.yml</code> that stays accurate as your API specification evolves.</p>
<p><img src="https://docs.apimatic.io/images/changelog/sidebar/toc-webhook-callback-grouping-after.gif" alt="Webhook and Callback Grouping"></p>
<p>With this change, you no longer need to manually maintain:</p>
<ul>
<li>Individual webhook or callback entries</li>
<li>Separate group overview pages</li>
<li>Repeated <code>webhook-name</code> or <code>callback-name</code> fields for every event</li>
</ul>
<h3>Benefits</h3>
<ul>
<li>Cut down on boilerplate configuration in <code>toc.yml</code></li>
<li>Keep your portal sidebar automatically in sync with the API specification</li>
<li>Reduce maintenance overhead when events are added, renamed, or removed</li>
<li>Achieve cleaner sidebar organization with less effort</li>
</ul>
<p>For full configuration details, see <a href="https://docs.apimatic.io/platform-api/#/http/guides/generating-on-prem-api-portal/toc-customization/generate-by-webhook-or-callback-group">this documentation</a>.</p>
]]></content:encoded>
      <category>DX Portal</category>
      <category>New Feature</category>
      <category>Enhancement</category>
    </item>
    <item>
      <title>Focus Authentication Inputs in the Developer Portal After Unauthorized Requests</title>
      <link>https://docs.apimatic.io/changelog/focus-auth-on-unauthorized-error</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/focus-auth-on-unauthorized-error</guid>
      <pubDate>Mon, 09 Mar 2026 00:00:00 GMT</pubDate>
      <description>We've updated the Developer Portal to automatically guide developers to the relevant authentication inputs when an API request returns a 401 Unauthorized response. This allows developers to quickly correct missing or invalid credentials and retry the request without leaving th...</description>
      <content:encoded><![CDATA[<p>We&#39;ve updated the Developer Portal to automatically guide developers to the relevant <strong>authentication inputs</strong> when an API request returns a <code>401 Unauthorized</code> response. This allows developers to quickly correct missing or invalid credentials and retry the request without leaving the API console.</p>
<h2>What Changed</h2>
<h3>Auto Authentication Focus on 401</h3>
<p>When a user clicks <strong>Send</strong> in the API console and the request returns a <strong>401 (Unauthorized)</strong> response:</p>
<ul>
<li>The <strong>Authentication section automatically expands</strong>.</li>
<li>The <strong>first authentication input field receives focus</strong>.</li>
<li>Developers can immediately enter credentials without manually scrolling or locating the authentication settings.</li>
</ul>
<p>This eliminates the need to manually scroll and open the auth section after a failed request.</p>
<p><img src="https://docs.apimatic.io/images/changelog/focus-auth-section-input-field/focus-auth-section-input-field.gif" alt="Auth section auto-expanding on 401 response"></p>
<h2>Availability</h2>
<h3>Hosted Portals</h3>
<p>This behavior is automatically applied the next time you <strong>publish your portal</strong>. No configuration is required.</p>
<h3>Docs as Code Portals</h3>
<p>This behavior is <strong>enabled by default</strong>. To disable it, add the following flag in your portal settings:</p>
<pre><code class="language-js">{
  focusAuthSectionOnUnauthorizedError: false;
}
</code></pre>
<p>For full configuration details, see the
<a href="https://docs.apimatic.io/platform-api/#/http/guides/generating-on-prem-api-portal/build-file-reference/generateportal-portalsettings-focusauthsectiononunauthorizederror">portal settings configuration reference</a>.</p>
]]></content:encoded>
      <category>DX Portal</category>
      <category>API Playground</category>
    </item>
    <item>
      <title>Enhanced Sorting Controls for API Portal Components</title>
      <link>https://docs.apimatic.io/changelog/enhanced-sort-resources-codegen-setting</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/enhanced-sort-resources-codegen-setting</guid>
      <pubDate>Thu, 05 Mar 2026 00:00:00 GMT</pubDate>
      <description>A new ConfigureComponentSorting codegen setting is now available, providing independent sorting control for each API component type in generated SDK docs and API Portals.</description>
      <content:encoded><![CDATA[<p>A new <code>ConfigureComponentSorting</code> codegen setting is now available, providing independent sorting control for each API component type in generated SDK docs and API Portals.</p>
<h2>What&#39;s New?</h2>
<ul>
<li><strong>Per-component sort control</strong>: Configure sorting independently for endpoint groups, endpoints, webhook groups, webhook events, callback groups, callback events, and models, all within a single <code>ConfigureComponentSorting</code> object</li>
<li><strong>Multiple sort modes</strong>: For endpoints, webhook events, and callback events, choose between <code>&quot;None&quot;</code>, <code>&quot;Alphabetical&quot;</code>, or <code>&quot;HttpMethod&quot;</code> ordering</li>
</ul>
<h2>Codegen Setting: ConfigureComponentSorting</h2>
<pre><code class="language-json">&quot;info&quot;: {
    ...,
    &quot;x-codegen-settings&quot;: {
        &quot;ConfigureComponentSorting&quot;: {
            &quot;SortEndpointGroups&quot;: true,
            &quot;EndpointSorting&quot;: &quot;HttpMethod&quot;, // Options: &quot;None&quot;, &quot;Alphabetical&quot;, &quot;HttpMethod&quot;
            &quot;SortWebhookGroups&quot;: true,
            &quot;WebhookEventsSorting&quot;: &quot;Alphabetical&quot;, // Options: &quot;None&quot;, &quot;Alphabetical&quot;, &quot;HttpMethod&quot;
            &quot;SortCallbackGroups&quot;: true,
            &quot;CallbackEventsSorting&quot;: &quot;Alphabetical&quot;, // Options: &quot;None&quot;, &quot;Alphabetical&quot;, &quot;HttpMethod&quot;
            &quot;SortModels&quot;: true
        }
    }
}
</code></pre>
<p>All fields are optional. Omitted fields preserve the order defined in the API specification.</p>
<h2>Before and After</h2>
<p><strong>Before</strong></p>
<p>  <img src="https://docs.apimatic.io/images/changelog/ConfigureComponentSorting/before_sorting.png" alt="Resources before sorting"></p>
<p><strong>After</strong></p>
<p>  <img src="https://docs.apimatic.io/images/changelog/ConfigureComponentSorting/after_sorting.png" alt="Resources after sorting"></p>
<p>For more information on <code>ConfigureComponentSorting</code>, see <a href="https://docs.apimatic.io/generate-sdks/customize-sdks/codegen-settings/docs-settings/#configure-component-sorting">Configure Component Sorting</a>.</p>
<h2>Impact</h2>
<p><code>ConfigureComponentSorting</code> gives fine-grained control over resource ordering across all SDK documentation output:</p>
<ul>
<li><strong>Endpoint groups and endpoints</strong> can be sorted alphabetically or by HTTP method, making large APIs easier to navigate</li>
<li><strong>Webhook and callback groups and events</strong> are fully supported with the same sorting options as endpoints</li>
<li><strong>Models</strong> can be sorted alphabetically for a predictable and uniform SDK structure</li>
<li><strong>Selective sorting</strong> lets you target only the components relevant to your workflow, giving you full control over what gets reordered across regenerations</li>
</ul>
]]></content:encoded>
      <category>Improvement</category>
      <category>Documentation</category>
    </item>
    <item>
      <title>Improved Portal Readability and Accessibility</title>
      <link>https://docs.apimatic.io/changelog/improved-spacing-and-accessability</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/improved-spacing-and-accessability</guid>
      <pubDate>Wed, 04 Mar 2026 00:00:00 GMT</pubDate>
      <description>We’ve enhanced the overall usability and accessibility of the API portal, making it faster to navigate and easier to consume across different workflows.</description>
      <content:encoded><![CDATA[<p>We’ve enhanced the overall usability and accessibility of the API portal, making it faster to navigate and easier to consume across different workflows.</p>
<h2>What’s Improved</h2>
<h3>More Efficient Page Layout</h3>
<p>Content is now presented in a more streamlined layout, reducing unnecessary scrolling and allowing developers to access key information more quickly.</p>
<p><strong>Before</strong></p>
<p><img src="https://docs.apimatic.io/images/changelog/improved-spacing/before-spacing.png" alt="left-left"></p>
<p><strong>After</strong></p>
<p><img src="https://docs.apimatic.io/images/changelog/improved-spacing/after-spacing.png" alt="left-left"></p>
<h3>Improved Accessibility Standards</h3>
<p>Enhanced keyboard navigation, clearer focus states, and improved screen reader compatibility make the portal more inclusive and usable across a wider range of developer environments.</p>
<blockquote>
<p><strong>Note</strong></p>
<p>No Action Required
These improvements are automatically available across all portals.</p>
</blockquote>
]]></content:encoded>
      <category>DX Portal</category>
      <category>Improvement</category>
      <category>UI/UX</category>
    </item>
    <item>
      <title>Organize Your Portal Sidebar with Endpoint Groups</title>
      <link>https://docs.apimatic.io/changelog/toc-endpoint-grouping-support</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/toc-endpoint-grouping-support</guid>
      <pubDate>Tue, 03 Mar 2026 00:00:00 GMT</pubDate>
      <description>You can now reference entire endpoint groups in toc.yml using endpoint-group, making it easier to organize large APIs and keep your documentation in sync with your API specification.</description>
      <content:encoded><![CDATA[<p>You can now <strong>reference entire endpoint groups in <code>toc.yml</code> using <code>endpoint-group</code></strong>, making it easier to organize large APIs and keep your documentation in sync with your API specification. </p>
<h3>What’s New?</h3>
<p>A new way to add endpoint groups to your <code>toc.yml</code>: use a <strong>generate</strong> entry with <strong>from: endpoint-group</strong>. All endpoints associated with that group in the API specification are included automatically.</p>
<p><strong>Manual Grouping</strong></p>
<pre><code class="language-yaml">toc:
  - group: Ordering APIs
    items:
      - group:  Item Details
        items:
          - group: Item APIs
            items:
              - generate:
                from: endpoint-group-overview
                endpoint-group: item
              - generate:
                from: endpoint
                endpoint-name: GetProductItem
                endpoint-group: item
          - group: Item Inventory APIs
            items:
              - generate:
                from: endpoint-group-overview
                endpoint-group: inventory
              - generate:
                from: endpoint
                endpoint-name: GetProductInventory
                endpoint-group: inventory
      - group: Pricing
        items:
          - group: Price Operations
            items:
              - generate:
                from: endpoint-group-overview
                endpoint-group: price
              - generate:
                from: endpoint
                endpoint-name: GetPriceDetails
                endpoint-group: price
</code></pre>
<p><strong>Endpoint Group Reference</strong></p>
<pre><code class="language-yaml">toc:
  - group: Ordering APIs
    items:
      - group:  Item Details
        items:
          - generate: Item APIs
            from: endpoint-group
            endpoint-group: item
          - generate: Item Inventory APIs
            from: endpoint-group
            endpoint-group: inventory
      - group: Pricing
        items:
          - generate: Price Operations
            from: endpoint-group
            endpoint-group: price
</code></pre>
<p>This approach streamlines your configuration and keeps your sidebar organized as your API evolves.</p>
<p><img src="https://docs.apimatic.io/images/changelog/sidebar/toc-endpoint-grouping-after.gif" alt="Endpoint Grouping"></p>
<h3>Benefits</h3>
<ul>
<li>Reduce repetitive configuration in <code>toc.yml</code></li>
<li>Keep documentation aligned automatically with the API specification</li>
<li>Simplify maintenance when endpoints are added or updated</li>
<li>Improve sidebar organization and navigation clarity</li>
</ul>
<p>For detailed configuration steps, refer to <a href="https://docs.apimatic.io/platform-api/#/http/guides/generating-on-prem-api-portal/toc-customization/generate-by-endpoint-group">this documentation</a>.</p>
]]></content:encoded>
      <category>DX Portal</category>
      <category>New Feature</category>
      <category>Enhancement</category>
    </item>
    <item>
      <title>Pre-Release Notice: Improved Title Generation in SDK Documentation</title>
      <link>https://docs.apimatic.io/changelog/improved-title-generation-in-sdk-docs</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/improved-title-generation-in-sdk-docs</guid>
      <pubDate>Mon, 02 Mar 2026 00:00:00 GMT</pubDate>
      <description>This release enhances SDK documentation title generation from your OpenAPI specifications. We now apply smarter casing rules to endpoint titles and model names. You'll see improved handling of prepositions, acronyms, and any words you've defined in the DoNotSplitWords list.</description>
      <content:encoded><![CDATA[<p>This release enhances SDK documentation title generation from your OpenAPI specifications. We now apply smarter casing rules to endpoint titles and model names. You&#39;ll see improved handling of prepositions, acronyms, and any words you&#39;ve defined in the DoNotSplitWords list.</p>
<blockquote>
<p><strong>Note</strong></p>
<p>This was a prerelease changelog. This change has now been released; see <a href="https://docs.apimatic.io/v4/changelog#improved-title-generation-in-sdk-docs-released">Improved Title Generation in SDK Documentation</a>.</p>
</blockquote>
<h2>What’s Updated</h2>
<h3>1. Normalized casing for prepositions</h3>
<p>Prepositions are now lowercased when generating endpoint titles from OpenAPI <code>operationId</code> and model titles from schema names.</p>
<pre><code class="language-yaml">paths:
  /subscriptions/{subscriptionId}/coupons:
    delete:
      operationId: removeCouponFromSubscription
</code></pre>
<p><strong>Before</strong></p>
<p><img src="https://docs.apimatic.io/images/changelog/improved-title-generation-in-sdk-documentation/before_remove_coupon_from_subscription.png" alt="Remove Coupon From Subscription"></p>
<p><strong>After</strong></p>
<p><img src="https://docs.apimatic.io/images/changelog/improved-title-generation-in-sdk-documentation/after_remove_coupon_from_subscription.png" alt="Remove Coupon from Subscription"></p>
<h3>2. Improved acronym splitting</h3>
<p>The handling of acronyms and alphanumeric tokens has been enhanced, producing more accurate splits when generating titles from OpenAPI schema names and <code>operationId</code>.</p>
<pre><code class="language-yaml">components:
  schemas:
    &quot;AddressConfig IPv4&quot;:
      type: object
</code></pre>
<p><strong>Before</strong></p>
<p><img src="https://docs.apimatic.io/images/changelog/improved-title-generation-in-sdk-documentation/before_improved_acronym_splitting.png" alt="Address Config I Pv 4"></p>
<p><strong>After</strong></p>
<p><img src="https://docs.apimatic.io/images/changelog/improved-title-generation-in-sdk-documentation/after_improved_acronym_splitting.png" alt="Address Config IP V4"></p>
<blockquote>
<p><strong>Potential breaking change</strong></p>
<p>Improved acronym splitting may change the titles of some endpoints and models in your SDK documentation. If you have links pointing to those generated titles, you may need to update them after regenerating your SDK documentation.</p>
</blockquote>
<h3>3. Preserved casing for do-not-split words</h3>
<p>Terms defined in the <code>DoNotSplitWords</code> list now retain the exact casing from your OpenAPI schema names when generating model titles.</p>
<p>Example configuration:</p>
<pre><code class="language-yaml">info:
  x-codegen-settings:
    DoNotSplitWords:
      - ideal
components:
  schemas:
    iDEAL:
      type: object
</code></pre>
<p><strong>Before</strong></p>
<p><img src="https://docs.apimatic.io/images/changelog/improved-title-generation-in-sdk-documentation/before_preserved_casing-for_dnsw.png" alt="IDEAL"></p>
<p><strong>After</strong></p>
<p><img src="https://docs.apimatic.io/images/changelog/improved-title-generation-in-sdk-documentation/after_preserved_casing-for_dnsw.png" alt="iDEAL"></p>
<h2>Impact</h2>
<p>Titles for endpoints and models now appear more natural and consistent in SDK documentation, accurately reflecting intended naming while correctly handling prepositions, acronyms, and words defined in the <code>DoNotSplitWords</code> list.</p>
]]></content:encoded>
      <category>Documentation</category>
      <category>Improvement</category>
    </item>
    <item>
      <title>Enhanced SDK Documentation for Enumeration</title>
      <link>https://docs.apimatic.io/changelog/enhanced-sdk-documentation-for-enums</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/enhanced-sdk-documentation-for-enums</guid>
      <pubDate>Wed, 04 Feb 2026 00:00:00 GMT</pubDate>
      <description>Enhanced SDK documentation for enumeration casing across all supported languages. This update ensures consistent and accurate environment enumeration representation in the Getting Started section for all languages. We also improved enum casing in the model documentation sectio...</description>
      <content:encoded><![CDATA[<p>Enhanced SDK documentation for enumeration casing across all supported languages. This update ensures consistent and accurate environment enumeration representation in the Getting Started section for all languages. We also improved enum casing in the model documentation section for Java.</p>
<h2>Key Enhancements</h2>
<h3>Getting Started Environment Section</h3>
<p>The SDK README&#39;s Getting Started section now displays environment enum values with correct casing, ensuring developers can copy and use the exact values required by the SDK.</p>
<p><strong>Compare how environment enums are now documented:</strong></p>
<p><strong>Java</strong></p>
<p><strong>Before</strong></p>
<p><strong>Environments</strong></p>
<p>The SDK can be configured to use a different environment for making API calls. Available environments are:</p>
<p><strong>Fields</strong></p>
<table>
<thead>
<tr>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody><tr>
<td>production</td>
<td>Production Environment</td>
</tr>
<tr>
<td>sandbox</td>
<td><strong>Default</strong> Sandbox Environment</td>
</tr>
</tbody></table>
<p><strong>After</strong></p>
<p><strong>Environments</strong></p>
<p>The SDK can be configured to use a different environment for making API calls. Available environments are:</p>
<p><strong>Fields</strong></p>
<table>
<thead>
<tr>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody><tr>
<td>PRODUCTION</td>
<td>Production Environment</td>
</tr>
<tr>
<td>SANDBOX</td>
<td><strong>Default</strong> Sandbox Environment</td>
</tr>
</tbody></table>
<p><strong>.NET</strong></p>
<p><strong>Before</strong></p>
<p><strong>Environments</strong></p>
<p>The SDK can be configured to use a different environment for making API calls. Available environments are:</p>
<p><strong>Fields</strong></p>
<table>
<thead>
<tr>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody><tr>
<td>production</td>
<td>Production Environment</td>
</tr>
<tr>
<td>sandbox</td>
<td><strong>Default</strong> Sandbox Environment</td>
</tr>
</tbody></table>
<p><strong>After</strong></p>
<p><strong>Environments</strong></p>
<p>The SDK can be configured to use a different environment for making API calls. Available environments are:</p>
<p><strong>Fields</strong></p>
<table>
<thead>
<tr>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody><tr>
<td>Production</td>
<td>Production Environment</td>
</tr>
<tr>
<td>Sandbox</td>
<td><strong>Default</strong> Sandbox Environment</td>
</tr>
</tbody></table>
<p><strong>Go</strong></p>
<p><strong>Before</strong></p>
<p><strong>Environments</strong></p>
<p>The SDK can be configured to use a different environment for making API calls. Available environments are:</p>
<p><strong>Fields</strong></p>
<table>
<thead>
<tr>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody><tr>
<td>production</td>
<td>Production Environment</td>
</tr>
<tr>
<td>sandbox</td>
<td><strong>Default</strong> Sandbox Environment</td>
</tr>
</tbody></table>
<p><strong>After</strong></p>
<p><strong>Environments</strong></p>
<p>The SDK can be configured to use a different environment for making API calls. Available environments are:</p>
<p><strong>Fields</strong></p>
<table>
<thead>
<tr>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody><tr>
<td>PRODUCTION</td>
<td>Production Environment</td>
</tr>
<tr>
<td>SANDBOX</td>
<td><strong>Default</strong> Sandbox Environment</td>
</tr>
</tbody></table>
<p><strong>TypeScript</strong></p>
<p><strong>Before</strong></p>
<p><strong>Environments</strong></p>
<p>The SDK can be configured to use a different environment for making API calls. Available environments are:</p>
<p><strong>Fields</strong></p>
<table>
<thead>
<tr>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody><tr>
<td>production</td>
<td>Production Environment</td>
</tr>
<tr>
<td>sandbox</td>
<td><strong>Default</strong> Sandbox Environment</td>
</tr>
</tbody></table>
<p><strong>After</strong></p>
<p><strong>Environments</strong></p>
<p>The SDK can be configured to use a different environment for making API calls. Available environments are:</p>
<p><strong>Fields</strong></p>
<table>
<thead>
<tr>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody><tr>
<td>Production</td>
<td>Production Environment</td>
</tr>
<tr>
<td>Sandbox</td>
<td><strong>Default</strong> Sandbox Environment</td>
</tr>
</tbody></table>
<p><strong>Ruby</strong></p>
<p><strong>Before</strong></p>
<p><strong>Environments</strong></p>
<p>The SDK can be configured to use a different environment for making API calls. Available environments are:</p>
<p><strong>Fields</strong></p>
<table>
<thead>
<tr>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody><tr>
<td>production</td>
<td>Production Environment</td>
</tr>
<tr>
<td>sandbox</td>
<td><strong>Default</strong> Sandbox Environment</td>
</tr>
</tbody></table>
<p><strong>After</strong></p>
<p><strong>Environments</strong></p>
<p>The SDK can be configured to use a different environment for making API calls. Available environments are:</p>
<p><strong>Fields</strong></p>
<table>
<thead>
<tr>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody><tr>
<td>PRODUCTION</td>
<td>Production Environment</td>
</tr>
<tr>
<td>SANDBOX</td>
<td><strong>Default</strong> Sandbox Environment</td>
</tr>
</tbody></table>
<p><strong>Python</strong></p>
<p><strong>Before</strong></p>
<p><strong>Environments</strong></p>
<p>The SDK can be configured to use a different environment for making API calls. Available environments are:</p>
<p><strong>Fields</strong></p>
<table>
<thead>
<tr>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody><tr>
<td>production</td>
<td>Production Environment</td>
</tr>
<tr>
<td>sandbox</td>
<td><strong>Default</strong> Sandbox Environment</td>
</tr>
</tbody></table>
<p><strong>After</strong></p>
<p><strong>Environments</strong></p>
<p>The SDK can be configured to use a different environment for making API calls. Available environments are:</p>
<p><strong>Fields</strong></p>
<table>
<thead>
<tr>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody><tr>
<td>PRODUCTION</td>
<td>Production Environment</td>
</tr>
<tr>
<td>SANDBOX</td>
<td><strong>Default</strong> Sandbox Environment</td>
</tr>
</tbody></table>
<p><strong>PHP</strong></p>
<p><strong>Before</strong></p>
<p><strong>Environments</strong></p>
<p>The SDK can be configured to use a different environment for making API calls. Available environments are:</p>
<p><strong>Fields</strong></p>
<table>
<thead>
<tr>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody><tr>
<td>production</td>
<td>Production Environment</td>
</tr>
<tr>
<td>sandbox</td>
<td><strong>Default</strong> Sandbox Environment</td>
</tr>
</tbody></table>
<p><strong>After</strong></p>
<p><strong>Environments</strong></p>
<p>The SDK can be configured to use a different environment for making API calls. Available environments are:</p>
<p><strong>Fields</strong></p>
<table>
<thead>
<tr>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody><tr>
<td>PRODUCTION</td>
<td>Production Environment</td>
</tr>
<tr>
<td>SANDBOX</td>
<td><strong>Default</strong> Sandbox Environment</td>
</tr>
</tbody></table>
<h3>Enumeration Model Documentation (Java)</h3>
<p>The Java SDK README&#39;s model documentation section now displays enumeration values with correct casing in the enumeration documentation, ensuring consistency with the actual SDK implementation.</p>
<p><strong>Compare how enumeration models are now documented:</strong></p>
<p><strong>Before</strong></p>
<p><strong>Days Enum</strong></p>
<p>A string enum representing days of the week</p>
<p><strong>Enumeration</strong></p>
<p><code>DaysEnum</code></p>
<p><strong>Fields</strong></p>
<table>
<thead>
<tr>
<th>Name</th>
</tr>
</thead>
<tbody><tr>
<td><code>Monday</code></td>
</tr>
<tr>
<td><code>Tuesday</code></td>
</tr>
<tr>
<td><code>Wednesday</code></td>
</tr>
<tr>
<td><code>Thursday</code></td>
</tr>
<tr>
<td><code>Friday</code></td>
</tr>
</tbody></table>
<p><strong>After</strong></p>
<p><strong>Days Enum</strong></p>
<p>A string enum representing days of the week</p>
<p><strong>Enumeration</strong></p>
<p><code>DaysEnum</code></p>
<p><strong>Fields</strong></p>
<table>
<thead>
<tr>
<th>Name</th>
</tr>
</thead>
<tbody><tr>
<td><code>MONDAY</code></td>
</tr>
<tr>
<td><code>TUESDAY</code></td>
</tr>
<tr>
<td><code>WEDNESDAY</code></td>
</tr>
<tr>
<td><code>THURSDAY</code></td>
</tr>
<tr>
<td><code>FRIDAY</code></td>
</tr>
</tbody></table>
<h2>Impact</h2>
<p>Developers working with enumerations will benefit from:</p>
<ul>
<li>Accurate enum casing in documentation that matches the SDK&#39;s actual implementation</li>
<li>Reduced integration errors caused by incorrect enum casing</li>
</ul>
<p>These improvements are automatically applied when regenerating your SDK, ensuring your documentation stays synchronized with the underlying implementation without requiring any changes to your existing integration code.</p>
]]></content:encoded>
      <category>Java</category>
      <category>.NET</category>
      <category>Go</category>
      <category>TypeScript</category>
      <category>Ruby</category>
      <category>Python</category>
      <category>PHP</category>
      <category>SDK README</category>
      <category>Improvement</category>
    </item>
    <item>
      <title>Enhanced SDK Documentation for Collected Parameters</title>
      <link>https://docs.apimatic.io/changelog/enhanced-sdk-documentation-for-collected-parameters</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/enhanced-sdk-documentation-for-collected-parameters</guid>
      <pubDate>Mon, 02 Feb 2026 00:00:00 GMT</pubDate>
      <description>We've enhanced SDK documentation completeness and alignment with the actual implementation for Java, .NET, and Go SDKs. This update includes model documentation for parameter collection classes and updated endpoint documentation that presents collected parameters as unified mo...</description>
      <content:encoded><![CDATA[<p>We&#39;ve enhanced SDK documentation completeness and alignment with the actual implementation for Java, .NET, and Go SDKs. This update includes model documentation for parameter collection classes and updated endpoint documentation that presents collected parameters as unified model references, resulting in clearer and more accurate SDK documentation.</p>
<h2>Key Enhancements</h2>
<h3>Model Documentation Section</h3>
<p>The SDK README&#39;s model documentation section now includes dedicated entries for parameter collection classes, making it easier for developers to understand and utilize these structured input models.</p>
<h3>Endpoint Documentation Section</h3>
<p>The SDK README&#39;s endpoint documentation section now presents collected parameters as unified model references rather than displaying individual inner parameters separately.</p>
<p><strong>Compare how endpoint parameters are now documented:</strong></p>
<p><strong>Java</strong></p>
<p><strong>Before</strong></p>
<h4>Create User Profile</h4>
<p>Creates a new user profile with personal information and preferences</p>
<h5>Parameters</h5>
<table>
<thead>
<tr>
<th>Parameter</th>
<th>Type</th>
<th>Tags</th>
<th>Description</th>
</tr>
</thead>
<tbody><tr>
<td><code>firstName</code></td>
<td><code>String</code></td>
<td>Form, Required</td>
<td>User&#39;s first name</td>
</tr>
<tr>
<td><code>lastName</code></td>
<td><code>String</code></td>
<td>Form, Required</td>
<td>User&#39;s last name</td>
</tr>
<tr>
<td><code>email</code></td>
<td><code>String</code></td>
<td>Form, Required</td>
<td>User&#39;s email address</td>
</tr>
<tr>
<td><code>phoneNumber</code></td>
<td><code>String</code></td>
<td>Form, Optional</td>
<td>User&#39;s contact number</td>
</tr>
<tr>
<td><code>address</code></td>
<td><code>Address</code></td>
<td>Form, Optional</td>
<td>User&#39;s physical address</td>
</tr>
<tr>
<td><code>preferences</code></td>
<td><code>UserPreferences</code></td>
<td>Form, Optional</td>
<td>User notification and privacy preferences</td>
</tr>
</tbody></table>
<p><strong>After</strong></p>
<h4>Create User Profile</h4>
<p>Creates a new user profile with personal information and preferences</p>
<h5>Parameters</h5>
<table>
<thead>
<tr>
<th>Parameter</th>
<th>Type</th>
<th>Tags</th>
<th>Description</th>
</tr>
</thead>
<tbody><tr>
<td><code>input</code></td>
<td><code>CreateUserProfileInput</code></td>
<td>Required</td>
<td>Input structure for the method CreateUserProfileAsync</td>
</tr>
</tbody></table>
<p><strong>Net</strong></p>
<p><strong>Before</strong></p>
<h4>Create User Profile</h4>
<p>Creates a new user profile with personal information and preferences</p>
<h5>Parameters</h5>
<table>
<thead>
<tr>
<th>Parameter</th>
<th>Type</th>
<th>Tags</th>
<th>Description</th>
</tr>
</thead>
<tbody><tr>
<td><code>firstName</code></td>
<td><code>string</code></td>
<td>Form, Required</td>
<td>User&#39;s first name</td>
</tr>
<tr>
<td><code>lastName</code></td>
<td><code>string</code></td>
<td>Form, Required</td>
<td>User&#39;s last name</td>
</tr>
<tr>
<td><code>email</code></td>
<td><code>string</code></td>
<td>Form, Required</td>
<td>User&#39;s email address</td>
</tr>
<tr>
<td><code>phoneNumber</code></td>
<td><code>string</code></td>
<td>Form, Optional</td>
<td>User&#39;s contact number</td>
</tr>
<tr>
<td><code>address</code></td>
<td><code>models.Address</code></td>
<td>Form, Optional</td>
<td>User&#39;s physical address</td>
</tr>
<tr>
<td><code>preferences</code></td>
<td><code>models.UserPreferences</code></td>
<td>Form, Optional</td>
<td>User notification and privacy preferences</td>
</tr>
</tbody></table>
<p><strong>After</strong></p>
<h4>Create User Profile</h4>
<p>Creates a new user profile with personal information and preferences</p>
<h5>Parameters</h5>
<table>
<thead>
<tr>
<th>Parameter</th>
<th>Type</th>
<th>Tags</th>
<th>Description</th>
</tr>
</thead>
<tbody><tr>
<td><code>input</code></td>
<td><code>CreateUserProfileInput</code></td>
<td>Required</td>
<td>Input structure for the method CreateUserProfileAsync</td>
</tr>
</tbody></table>
<p><strong>Go</strong></p>
<p><strong>Before</strong></p>
<h4>Create User Profile</h4>
<p>Creates a new user profile with personal information and preferences</p>
<h5>Parameters</h5>
<table>
<thead>
<tr>
<th>Parameter</th>
<th>Type</th>
<th>Tags</th>
<th>Description</th>
</tr>
</thead>
<tbody><tr>
<td><code>firstName</code></td>
<td><code>string</code></td>
<td>Form, Required</td>
<td>User&#39;s first name</td>
</tr>
<tr>
<td><code>lastName</code></td>
<td><code>string</code></td>
<td>Form, Required</td>
<td>User&#39;s last name</td>
</tr>
<tr>
<td><code>email</code></td>
<td><code>string</code></td>
<td>Form, Required</td>
<td>User&#39;s email address</td>
</tr>
<tr>
<td><code>phoneNumber</code></td>
<td><code>string</code></td>
<td>Form, Optional</td>
<td>User&#39;s contact number</td>
</tr>
<tr>
<td><code>address</code></td>
<td><code>models.Address</code></td>
<td>Form, Optional</td>
<td>User&#39;s physical address</td>
</tr>
<tr>
<td><code>preferences</code></td>
<td><code>models.UserPreferences</code></td>
<td>Form, Optional</td>
<td>User notification and privacy preferences</td>
</tr>
</tbody></table>
<p><strong>After</strong></p>
<h4>Create User Profile</h4>
<p>Creates a new user profile with personal information and preferences</p>
<h5>Parameters</h5>
<table>
<thead>
<tr>
<th>Parameter</th>
<th>Type</th>
<th>Tags</th>
<th>Description</th>
</tr>
</thead>
<tbody><tr>
<td><code>input</code></td>
<td><code>models.CreateUserProfileInput</code></td>
<td>Required</td>
<td>Input structure for the method CreateUserProfileAsync</td>
</tr>
</tbody></table>
<h2>Impact</h2>
<p>Developers working with endpoints that use parameter collection will benefit from:</p>
<ul>
<li>Clear visibility into the model classes used for parameter grouping</li>
<li>Streamlined endpoint documentation that matches the SDK&#39;s actual interface</li>
</ul>
<p>These improvements are automatically applied when regenerating your SDK, ensuring your documentation stays synchronized with the underlying implementation without requiring any changes to your existing integration code.</p>
]]></content:encoded>
      <category>Java</category>
      <category>.NET</category>
      <category>Go</category>
      <category>SDK README</category>
      <category>Improvement</category>
    </item>
    <item>
      <title>Enhanced Error Handling in Code Samples Across SDKs</title>
      <link>https://docs.apimatic.io/changelog/enhanced-error-handling-across-sdks</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/enhanced-error-handling-across-sdks</guid>
      <pubDate>Thu, 29 Jan 2026 00:00:00 GMT</pubDate>
      <description>We have improved error handling in PHP, TypeScript, Java, .NET, and Go code samples to make it clearer, more consistent, and easier to handle typed errors, while still exposing response metadata like status codes and headers.</description>
      <content:encoded><![CDATA[<p>We have improved error handling in PHP, TypeScript, Java, .NET, and Go code samples to make it clearer, more consistent, and easier to handle typed errors, while still exposing response metadata like status codes and headers.</p>
<h2>What&#39;s New</h2>
<p>We have improved error handling in code samples across our SDKs and Developer Portal, making success and failure paths clearer, more consistent, and idiomatic for each language. Key enhancements include:</p>
<ul>
<li>Prominent exposure of response status codes and headers.</li>
<li>Typed error handling where supported, enabling precise, branchable error flows.</li>
<li>Concise and idiomatic success and error handling aligned with each language’s best practices.</li>
</ul>
<p>Below are examples using the <code>getTransactions</code> API, that may return <code>CustomAlphaException</code> or <code>CustomBetaException</code> for error status codes. This is how the SDKs and the Developer Portal now showcase error handling in code samples, enhancing the end-user experience when consuming the SDKs.</p>
<h3>PHP</h3>
<p>PHP code samples now show typed error handling for each error type defined in your OpenAPI specification, providing more granular control.</p>
<blockquote>
<p><strong>Note</strong></p>
<p>The following new behavior is only available when <a href="https://docs.apimatic.io/generate-sdks/customize-sdks/codegen-settings/endpoint-settings/#map-error-types-in-complete-response-for-php"><code>Map Error Types in Complete Response for PHP</code></a> setting is enabled.</p>
</blockquote>
<p><strong>Old</strong></p>
<pre><code class="language-php">$apiResponse = $client-&gt;getPaymentsApi()-&gt;getTransactions();

if ($apiResponse-&gt;isSuccess()) {
    $data = $apiResponse-&gt;getResult();
    var_dump($data);
} else {
    $errors = $apiResponse-&gt;getResult();
    var_dump($errors);
}

// Getting more response information
var_dump($apiResponse-&gt;getStatusCode());
var_dump($apiResponse-&gt;getHeaders());
</code></pre>
<p><strong>New</strong></p>
<pre><code class="language-php">$apiResponse = $client-&gt;getPaymentsApi()-&gt;getTransactions();

// Extracting response status code
var_dump($apiResponse-&gt;getStatusCode());
// Extracting response headers
var_dump($apiResponse-&gt;getHeaders());

if ($apiResponse-&gt;isSuccess()) {
    $data = $apiResponse-&gt;getResult();
    echo &quot;ResponseType: &quot;;
    var_dump($data);
} else {
    $error = $apiResponse-&gt;getResult();
    if ($error instanceof CustomAlphaException) {
        echo &quot;CustomAlphaException: $error&quot;;
    } elseif ($error instanceof CustomBetaException) {
        echo &quot;CustomBetaException: $error&quot;;
    }
}
</code></pre>
<h3>TypeScript</h3>
<p>Previously, in TypeScript code samples, <code>ApiError</code> handling only logged status, headers, and the raw body. The new approach preserves error metadata logging and adds typed error branches that expose a structured <code>result</code> for targeted handling.</p>
<p><strong>Old</strong></p>
<pre><code class="language-typescript">try {
  const response = await paymentsApi.getTransactions();
  // Extracting fully parsed response body.
  console.log(response.result);
  // Extracting response status code.
  console.log(response.statusCode);
  // Extracting response headers.
  console.log(response.headers);
  // Extracting response body of type `string | Stream`
  console.log(response.body);
} catch (error) {
  if (error instanceof ApiError) {
    // Extracting response error status code.
    console.log(error.statusCode);
    // Extracting response error headers.
    console.log(error.headers);
    // Extracting response error body of type `string | Stream`.
    console.log(error.body);
  }
}
</code></pre>
<p><strong>New</strong></p>
<pre><code class="language-typescript">try {
  const response = await paymentsApi.getTransactions();
  // Extracting fully parsed response body.
  console.log(response.result);
  // Extracting response status code.
  console.log(response.statusCode);
  // Extracting response headers.
  console.log(response.headers);
  // Extracting response body of type `string | Stream`
  console.log(response.body);
} catch (error) {
  if (error instanceof ApiError) {
    // Extracting response error status code.
    console.log(error.statusCode);
    // Extracting response error headers.
    console.log(error.headers);
    // Extracting response error body of type `string | Stream`.
    console.log(error.body);
    if (error instanceof CustomAlphaError) {
      console.log(error.result);
    } else if (error instanceof CustomBetaError) {
      console.log(error.result);
    }
  }
}
</code></pre>
<h3>Go</h3>
<p>In Go code samples, the old code terminated on error using <code>log.Fatalln</code>. The new version switches between error types defined in the openapi specification to handle known cases explicitly, with a safe fallback, while keeping the success path unchanged.</p>
<p><strong>Old</strong></p>
<pre><code class="language-go">ctx := context.Background()
apiResponse, err := paymentsApi.GetTransactions(ctx)
if err != nil {
    log.Fatalln(err)
} else {
    // Printing the result and response
    fmt.Println(apiResponse.Data)
    fmt.Println(apiResponse.Response.StatusCode)
}
</code></pre>
<p><strong>New</strong></p>
<pre><code class="language-go">ctx := context.Background()
apiResponse, err := paymentsApi.GetTransactions(ctx)
if err != nil {
	switch typedErr := err.(type) {
	case *errors.CustomAlpha:
		log.Fatalln(&quot;CustomAlphaException: &quot;, typedErr)
	case *errors.CustomBeta:
		log.Fatalln(&quot;CustomBetaException: &quot;, typedErr)
	default:
		log.Fatalln(err)
	}
} else {
    // Printing the result and response
    fmt.Println(apiResponse.Data)
    fmt.Println(apiResponse.Response.StatusCode)
}
</code></pre>
<h3>Java</h3>
<p>In Java code samples, the old <code>exceptionally</code> handler printed stack traces generically. The new sample inspects <code>exception.getCause()</code> and branches to typed exceptions to enable focused recovery and messaging, with a generic fallback.</p>
<p><strong>Old</strong></p>
<pre><code class="language-java">paymentsApi.getTransactions().thenAccept(result -&gt; {
    // TODO success callback handler
    System.out.println(result);
}).exceptionally(exception -&gt; {
    // TODO failure callback handler
    exception.printStackTrace();
    return null;
});
</code></pre>
<p><strong>New</strong></p>
<pre><code class="language-java">paymentsApi.getTransactions().thenAccept(result -&gt; {
    // TODO success callback handler
    System.out.println(result);
}).exceptionally(exception -&gt; {
    // TODO failure callback handler
    Throwable cause = exception.getCause();

    if (cause instanceof CustomAlphaException) {
        CustomAlphaException e = (CustomAlphaException) cause;
        e.printStackTrace();
    } else if (cause instanceof CustomBetaException) {
        CustomBetaException e = (CustomBetaException) cause;
        e.printStackTrace();
    } else {
        // fallback for unexpected errors
        exception.printStackTrace();
    }

    return null;
});
</code></pre>
<h3>.NET</h3>
<p>Previously, .NET code samples used a single <code>ApiException</code> catch that printed the message. The new sample adds type checks for each error type defined in your OpenAPI specification to enable targeted handling blocks while retaining message logging.</p>
<p><strong>Old</strong></p>
<pre><code class="language-csharp">try
{
    List&lt;Transaction&gt; result = await paymentsApi.GetTransactions();
}
catch (ApiException e)
{
    Console.WriteLine(e.Message);
}
</code></pre>
<p><strong>New</strong></p>
<pre><code class="language-csharp">try
{
    List&lt;Transaction&gt; result = await paymentsApi.GetTransactions();
}
catch (ApiException e)
{
    Console.WriteLine(e.Message);
    if (e is CustomAlphaException)
    {
        // TODO: Handle CustomAlphaException exception here
    }
    if (e is CustomBetaException)
    {
        // TODO: Handle CustomBetaException exception here
    }
}
</code></pre>
]]></content:encoded>
      <category>Improvement</category>
      <category>Error Handling</category>
      <category>Code Samples</category>
      <category>PHP</category>
      <category>TypeScript</category>
      <category>Java</category>
      <category>.NET</category>
      <category>Golang</category>
    </item>
    <item>
      <title>Better Readability with Customizable Custom Content Layouts</title>
      <link>https://docs.apimatic.io/changelog/customizable-guides-layout-collapsible-toc</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/customizable-guides-layout-collapsible-toc</guid>
      <pubDate>Mon, 26 Jan 2026 00:00:00 GMT</pubDate>
      <description>We've added custom content page layouts to give you better readability and control over how on-page navigation elements are displayed. Choose the layout that works best for your content and readers.</description>
      <content:encoded><![CDATA[<p>We&#39;ve added custom content page layouts to give you better readability and control over how on-page navigation elements are displayed. Choose the layout that works best for your content and readers.</p>
<h2>What&#39;s New?</h2>
<p>The new <strong>pageMode</strong> configuration offers three layout options designed to optimise readability for different content types and reading preferences.</p>
<h3>Choose Your Layout</h3>
<ul>
<li><strong>default</strong>: The familiar three-column layout with content in the centre and Table of Contents in the right sidebar.</li>
<li><strong>wide</strong>: Expands content for easier reading while keeping the ToC accessible as a floating panel. Perfect for technical documentation where you need both spacious layouts and quick navigation.</li>
<li><strong>custom</strong>: Maximises content space by hiding the ToC entirely, creating a distraction-free reading environment. Ideal for narrative content, tutorials, and long-form documentation.</li>
</ul>
<p><strong>Default</strong></p>
<p><img src="https://docs.apimatic.io/images/changelog/third-column-customization/pageMode-default.png" alt="Default"></p>
<p><strong>Wide</strong></p>
<p><img src="https://docs.apimatic.io/images/changelog/third-column-customization/pageMode-wide.png" alt="Wide"></p>
<p><strong>Custom</strong></p>
<p><img src="https://docs.apimatic.io/images/changelog/third-column-customization/pageMode-custom.png" alt="Custom">‎‎</p>
<blockquote>
<p><strong>Note</strong></p>
<p>This feature is only supported for portals generated via Docs as Code. When <strong>pageMode</strong> is not specified, the default layout is used.</p>
</blockquote>
<h2>Configuration</h2>
<h3>Set Portal-Wide Defaults</h3>
<p>Configure the default layout for your entire portal using <code>globalPageMetaData</code>.</p>
<pre><code class="language-json">{
  &quot;generatePortal&quot;: {
    &quot;portalSettings&quot;: {
      &quot;globalPageMetaData&quot;: {
        &quot;pageMode&quot;: &quot;default&quot; // Options: default, wide, custom
      }
    }
  }
}
</code></pre>
<p>See <a href="https://docs.apimatic.io/platform-api/#/http/guides/generating-on-prem-api-portal/build-file-reference/generateportal-portalsettings-globalpagemetadata"><code>globalPageMetaData</code> documentation</a> for details.</p>
<h3>Customise Individual Pages</h3>
<p>Override the portal default for specific pages using frontmatter.</p>
<pre><code class="language-markdown">---
pageMode: wide
---
</code></pre>
<p>This flexibility lets you tailor the reading experience to each page&#39;s content and purpose. See the <a href="https://docs.apimatic.io/platform-api/#/http/guides/generating-on-prem-api-portal/custom-content/page-metadata-and-configurations"><code>pageMode</code> documentation</a> for more details.</p>
<blockquote>
<p><strong>Frontmatter Requirements</strong></p>
<ul>
<li>Must be the very first block in the file (no preceding content or whitespace)</li>
<li>Opening and closing <code>---</code> fences must be on their own lines with no indentation</li>
</ul>
</blockquote>
]]></content:encoded>
      <category>API Portal</category>
      <category>UX Improvement</category>
      <category>Custom Content</category>
    </item>
    <item>
      <title>Added Support for Icons in the Developer Portal Sidebar</title>
      <link>https://docs.apimatic.io/changelog/sidebar-menu-icons-support</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/sidebar-menu-icons-support</guid>
      <pubDate>Wed, 14 Jan 2026 00:00:00 GMT</pubDate>
      <description>Sidebar navigation items in the Developer Portal now support icons, helping users scan and navigate documentation more quickly through clear visual cues.</description>
      <content:encoded><![CDATA[<p>Sidebar navigation items in the Developer Portal now support icons, helping users scan and navigate documentation more quickly through clear visual cues.</p>
<p><img src="https://docs.apimatic.io/images/changelog/sidebar/icons-in-sidebar.gif" alt="Icons in Sidebar Menu Items"></p>
<h3>What’s Changed?</h3>
<p>You can now display icons alongside text labels in the sidebar navigation, making it easier for users to identify and access frequently used sections.</p>
<p>To add icons, update your <code>toc.yml</code> file as shown below:</p>
<pre><code class="language-yaml">- group: Getting Started
  icon: rocket
  items:
    - generate: How to Get Started
      icon: book-open
      from: getting-started
- generate: API Endpoints
  icon: code
  from: endpoints
</code></pre>
<blockquote>
<p><strong>Note</strong></p>
<p>This feature is only supported for portals generated via Docs as Code. Icons are supported at all levels.</p>
</blockquote>
<p>For detailed instructions on configuring icons in the sidebar navigation using toc.yml, refer to the documentation <a href="https://docs.apimatic.io/platform-api/#/http/guides/generating-on-prem-api-portal/toc-customization/how-to-add-icons-in-toc-yml">here</a>.</p>
<h3>Supported Icon Library</h3>
<p>Icons must be sourced from <code>lucide-react</code> (version <code>v0.517.0</code> or any earlier compatible version). Other icon libraries are not supported.</p>
<p>Use the icon name exactly as listed on the <a href="https://lucide.dev/icons/">lucide.dev icon library</a>, for example <code>rocket</code>, <code>code</code>, <code>settings</code>, or <code>folder-input</code>.</p>
]]></content:encoded>
      <category>DX Portal</category>
      <category>Feature</category>
      <category>Enhancement</category>
    </item>
    <item>
      <title>Enhanced API Recipe Completion Flow</title>
      <link>https://docs.apimatic.io/changelog/api-recipe-finish-experience</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/api-recipe-finish-experience</guid>
      <pubDate>Tue, 13 Jan 2026 00:00:00 GMT</pubDate>
      <description>We've enhanced API Recipe completions to provide clear success confirmation and guide developers toward their next learning step.</description>
      <content:encoded><![CDATA[<p>We&#39;ve enhanced API Recipe completions to provide clear success confirmation and guide developers toward their next learning step.</p>
<p><img src="https://docs.apimatic.io/images/changelog/enhanced-finish-api-recipe/finish-popup-confetti-next-recipe.gif" alt="Completion popup with confetti and next recipe"></p>
<h2>What&#39;s Changed?</h2>
<h4>Completion Modal</h4>
<p>A confirmation modal now appears when you complete a recipe, allowing users to navigate back to the API documentation or proceed to the next available recipe, if configured.</p>
<h4>Optional Celebration</h4>
<p>Recipe authors can enable confetti animation for milestone recipes or complex walkthroughs to reinforce achievement.</p>
<h2>Configuring the Finish Experience</h2>
<p>Recipe authors can customize the completion experience by adding configuration options to the <a href="https://docs.apimatic.io/platform-api/#/http/guides/generating-on-prem-api-portal/api-recipes/advanced-features">final step</a> of a recipe.</p>
<p>Here is a quick example: </p>
<pre><code class="language-js">&quot;Step 5&quot;: {
  name: &quot;Complete&quot;,
  stepCallback: async () =&gt; {
    return workflowCtx.showContent(&quot;Well done!&quot;);
  },
  showConfettiAnimation: true,
  nextRecipe: {
    name: &quot;Next Recipe&quot;,
    link: &quot;page:recipes/next-recipe&quot;,
  },
}
</code></pre>
<p>If you’re not familiar with API Recipes, refer to the <a href="https://docs.apimatic.io/platform-api/#/http/guides/generating-on-prem-api-portal/api-recipes/overview">documentation</a></p>
]]></content:encoded>
      <category>API Recipes</category>
      <category>UX Improvement</category>
      <category>Developer Experience</category>
    </item>
    <item>
      <title>Reimagined API Playground Experience</title>
      <link>https://docs.apimatic.io/changelog/reimagined-api-playground</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/reimagined-api-playground</guid>
      <pubDate>Mon, 12 Jan 2026 00:00:00 GMT</pubDate>
      <description>We've moved the API playground and code samples into a drawer interface that opens on demand. This reduces clutter on endpoint pages, particularly for endpoints with deeply nested fields, and keeps documentation visible while developers explore your API.</description>
      <content:encoded><![CDATA[<p>We&#39;ve moved the API playground and code samples into a drawer interface that opens on demand. This reduces clutter on endpoint pages, particularly for endpoints with deeply nested fields, and keeps documentation visible while developers explore your API.</p>
<blockquote>
<p><strong>Note</strong></p>
<p>The updated UI will appear automatically on your next publish. Existing published portals will continue using the current layout until republished.</p>
</blockquote>
<h2>What Changed</h2>
<h3>From inline to drawer</h3>
<p>The API playground, code samples, and authentication have moved from the main page into a drawer that opens when you click <strong>Try It</strong>. This keeps endpoint documentation visible and reduces scrolling on complex pages.</p>
<h3>What&#39;s in the drawer</h3>
<ul>
<li>API playground with request parameters</li>
<li>Code samples with language selector</li>
<li>Authentication configuration</li>
<li>Endpoint switcher for navigation</li>
<li>Response tab (appears after execution)</li>
<li>Response examples</li>
</ul>
<p><img src="https://docs.apimatic.io/images/changelog/reimagined-api-playground/reimagined-api-playground.gif" alt="New drawer-based API playground interface"></p>
<h3>What stayed on the page</h3>
<p>Endpoint documentation and response examples remain visible in the main content area.</p>
<p><img src="https://docs.apimatic.io/images/changelog/reimagined-api-playground/legacy-api-playground.png" alt="Legacy inline API playground layout"></p>
<h2>Using the Legacy API Playground</h2>
<p>The new drawer-based API playground is enabled by default. If you prefer to keep the previous inline experience, you can opt out using the following methods:</p>
<h3>1. Docs as Code Users</h3>
<p>If you manage your portal using <strong>Docs as Code</strong>, set this flag in your portal settings:</p>
<pre><code class="language-js">{
  useLegacyApiPlayground: true;
}
</code></pre>
<p>For full configuration details, see the
<a href="https://docs.apimatic.io/platform-api/#/http/guides/generating-on-prem-api-portal/build-file-reference/generateportal-portalsettings-uselegacyapiplayground">API Playground configuration reference</a>.</p>
<h3>2. Hosted Portal Users</h3>
<p>If you&#39;re using a <strong>Hosted portal</strong>, enable the legacy mode from the Portal Editor:</p>
<ol>
<li>Open the <strong>Portal Editor</strong></li>
<li>Navigate to <strong>API Playground</strong> settings</li>
<li>Toggle <strong>Use Legacy API Playground</strong> to <strong>On</strong></li>
<li>Publish your portal</li>
</ol>
<p><img src="https://docs.apimatic.io/images/changelog/reimagined-api-playground/use-legacy-playground-toggle.png" alt="Toggle for legacy API playground in Portal Editor"></p>
]]></content:encoded>
      <category>DX Portal</category>
      <category>Improvement</category>
      <category>API Playground</category>
    </item>
    <item>
      <title>Improved Messaging for Docs as Code - Async API</title>
      <link>https://docs.apimatic.io/changelog/improved-messaging-for-docs-as-code-api-status-endpoint</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/improved-messaging-for-docs-as-code-api-status-endpoint</guid>
      <pubDate>Thu, 01 Jan 2026 00:00:00 GMT</pubDate>
      <description>The Docs as Code - Async API now provides improved messaging regarding validation and subscription related errors encountered while generating a portal.</description>
      <content:encoded><![CDATA[<p>The <a href="https://docs.apimatic.io/platform-api/#/http/api-endpoints/docs-portal-generation-async/get-portal-generation-status">status endpoint</a> of the <strong>Docs as Code</strong> - Async API now provides granular error messaging that clearly distinguishes between subscription issues and validation problems, complete with actionable details for faster troubleshooting.</p>
<h3>What has Changed?</h3>
<p>Previously, the response returned from the status endpoint contained a single property, which is <code>status</code> that indicated whether the portal generation was <code>InProgress</code>, <code>Completed</code> or had <code>Failed</code>. The <code>status</code> property now also returns:</p>
<ol>
<li><code>SubscriptionError</code>: Indicates features missing from your subscription that require an upgrade.</li>
<li><code>ValidationError</code>: Indicates problems in your request or build file for easier debugging.</li>
</ol>
<p>In addition to this, a new <code>errors</code> property is now included when the status is <code>SubscriptionError</code> or <code>ValidationError</code>. This property provides detailed information about the specific issue encountered.</p>
<p>Below are examples of each scenario.</p>
<h3>Subscription Error</h3>
<pre><code class="language-json">{
    &quot;status&quot;: &quot;SubscriptionError&quot;,
    &quot;errors&quot;: {
        &quot;features&quot;: [
            &quot;The following features are not allowed on your subscription: Callbacks, Webhooks&quot;
        ]
    }
}
</code></pre>
<h3>Validation Error</h3>
<pre><code class="language-json">{
    &quot;status&quot;: &quot;ValidationError&quot;,
    &quot;errors&quot;: {
        &quot;generatePortal.baseUrl&quot;: [
            &quot;generatePortal.baseUrl cannot be null or empty when generatePortal.indexable is enabled.&quot;
        ]
    }
}
</code></pre>
<p>Additionally, the <a href="https://docs.apimatic.io/platform-api/#/http/api-endpoints/docs-portal-generation-async/generate-on-prem-portal-via-build-input-async">async portal generation endpoint</a> no longer returns a <code>403</code> for subscription-related errors.</p>
]]></content:encoded>
      <category>APIMatic API</category>
      <category>Developer Portal</category>
      <category>Docs-as-Code</category>
    </item>
    <item>
      <title>Improved Python SDK Code Quality and Language Alignment</title>
      <link>https://docs.apimatic.io/changelog/improved-python-sdk-code-quality</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/improved-python-sdk-code-quality</guid>
      <pubDate>Thu, 01 Jan 2026 00:00:00 GMT</pubDate>
      <description>This release delivers comprehensive code quality improvements to our Python SDKs. Generated SDKs now produce Ruff-compatible code that adheres to PEP 8 and PEP 257 style guidelines.</description>
      <content:encoded><![CDATA[<p>This release delivers comprehensive code quality improvements to our Python SDKs. Generated SDKs now produce Ruff-compatible code that adheres to PEP 8 and PEP 257 style guidelines.</p>
<p><strong>Key outcomes:</strong></p>
<ul>
<li><strong>Cleaner, more maintainable SDK code</strong> that follows modern Python best practices, with properly formatted docstrings, organized imports, and consistent styling</li>
<li><strong>CI/CD integration ready</strong> with included <code>ruff.toml</code> configuration for automated linting</li>
</ul>
<p>The improvements span string literal consistency, import organization, docstring formatting, line length management, and formatter-friendly structure. Where linting rules could potentially impact existing consumer code, they are intentionally bypassed to preserve behavior.</p>
<p><strong>Zero-Downtime Upgrade</strong></p>
<ul>
<li><strong>No action required.</strong> These improvements maintain full backward compatibility with existing SDK implementations. No breaking changes are included.</li>
<li>Simply regenerate your Python SDKs to take advantage of these enhancements</li>
</ul>
<h2>Quick Reference</h2>
<table>
  <thead>
    <tr>
      <th>Improvement</th>
      <th>What Changed</th>
      <th>Why It Matters</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>[Line Length & Formatting Standards](#line-length--formatting-standards)</td>
      <td>Consistent line wrapping with trailing commas in multi-line constructs</td>
      <td>Cleaner git diffs and formatter compatibility</td>
    </tr>
    <tr>
      <td>[Docstring Standardization](#docstring-standardization)</td>
      <td>All docstrings now follow <code>PEP 257</code> with imperative mood and complete Args/Returns sections</td>
      <td>Better IDE autocomplete and auto-generated documentation</td>
    </tr>
    <tr>
      <td>[Import Organization & Cleanup](#import-organization--cleanup)</td>
      <td>Imports grouped by type (stdlib, third-party, local) and alphabetically sorted</td>
      <td>Faster module loading and clearer dependencies</td>
    </tr>
    <tr>
      <td>[String Literal Standardization](#string-literal-standardization)</td>
      <td>All strings use double quotes throughout</td>
      <td>Eliminates escape sequences and improves readability</td>
    </tr>
    <tr>
      <td>[Whitespace Normalization](#whitespace-normalization)</td>
      <td>Removed trailing whitespace and standardized file endings</td>
      <td>Cleaner version control and formatter compatibility</td>
    </tr>
    <tr>
      <td>[Code Quality & Variable Management](#code-quality--variable-management)</td>
      <td>Removed unused variables, resolved naming conflicts, fixed mutable defaults</td>
      <td>Prevents bugs and improves code safety</td>
    </tr>
    <tr>
      <td>[Return Statement Optimization](#return-statement-optimization)</td>
      <td>Eliminated redundant else clauses and intermediate variables</td>
      <td>Simpler control flow and reduced complexity</td>
    </tr>
    <tr>
      <td>[Python 3 Modernization](#python-3-modernization)</td>
      <td>Migrated to f-strings and removed obsolete encoding declarations</td>
      <td>Improved performance and cleaner syntax</td>
    </tr>
    <tr>
      <td>[Code Simplification & Readability](#code-simplification--readability)</td>
      <td>Converted complex ternary expressions to <code>bool()</code> and normalized comparisons</td>
      <td>More readable and Pythonic code</td>
    </tr>
    <tr>
      <td>[Module Export Standards](#module-export-standards)</td>
      <td>Alphabetically sorted <code>__all__</code> exports</td>
      <td>Predictable and maintainable public APIs</td>
    </tr>
    <tr>
      <td>[Code Maintenance & Best Practices](#code-maintenance--best-practices)</td>
      <td>Removed redundant <code>pass</code>, clarified boolean expressions, added missing <code>__init__.py</code></td>
      <td>Better maintainability and fewer edge cases</td>
    </tr>
    <tr>
      <td>[Linting with Ruff](#linting-with-ruff)</td>
      <td>Included <code>ruff.toml</code> configuration in every generated SDK</td>
      <td>Ready for CI/CD linting enforcement</td>
    </tr>
  </tbody>
</table>

<h2>Details</h2>
<h3>Line Length &amp; Formatting Standards</h3>
<p>Applied line wrapping to maintain a unified line length and introduced trailing commas in multi-line constructs where applicable. These formatting standards facilitate cleaner version control diffs and improve compatibility with automatic code formatters.</p>
<p><strong>Before</strong></p>
<pre><code class="language-python"># Extract variables from the dictionary
frame_ctrl = dictionary.get(&quot;frame_ctrl&quot;) if dictionary.get(&quot;frame_ctrl&quot;) else APIHelper.SKIP
payload = dictionary.get(&quot;payload&quot;) if dictionary.get(&quot;payload&quot;) else APIHelper.SKIP
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-python"># Extract variables from the dictionary
frame_ctrl =\
    dictionary.get(&quot;frame_ctrl&quot;)\
    if dictionary.get(&quot;frame_ctrl&quot;)\
        else APIHelper.SKIP
payload =\
    dictionary.get(&quot;payload&quot;)\
    if dictionary.get(&quot;payload&quot;)\
        else APIHelper.SKIP
</code></pre>
<h3>Docstring Standardization</h3>
<p>Comprehensively refactored docstrings to achieve full PEP 257 and pydocstyle compliance. Key improvements include: imperative mood usage in summary lines, proper blank line placement, complete documentation coverage for all public modules/classes/methods, and correct positioning and spacing of triple-quote delimiters and section separators.</p>
<p><strong>Before</strong></p>
<pre><code class="language-python">def bundledetails(self,
                  apikey,
                  request_id,
                  body=None):
    &quot;&quot;&quot;Does a POST request to /fleetmanagement/v1/restriction/bundledetails.

    This API allows you to get the details of a specific card bundle. It
    returns the bundle basic details along with the cards in the bundle
    and restrictions applied on them.

    Returns:
        BundleDetailsResponse: Response from the API. OK

    &quot;&quot;&quot;

@classmethod
def from_dictionary(cls,
                    dictionary):
    &quot;&quot;&quot;Creates an instance of this model from a dictionary

    Returns:
        object: An instance of this structure class.

    &quot;&quot;&quot;
    
def __repr__(self):
return...
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-python">def bundledetails(self,
                  apikey,
                  request_id,
                  body=None):
    &quot;&quot;&quot;Perform a POST request to
    /fleetmanagement/v1/restriction/bundledetails.

    This API allows to get the details of a specific card bundle. It returns the
    bundle basic details along with the cards in the bundle and restrictions
    applied on them.

    Returns:
        BundleDetailsResponse: Response from the API. OK

    &quot;&quot;&quot;

@classmethod
def from_dictionary(cls,
                    dictionary):
    &quot;&quot;&quot;Create an instance of this model from a dictionary

    Args:
        dictionary (dictionary): A dictionary representation of the object
        as obtained from the deserialization of the server&#39;s response. The
        keys MUST match property names in the API description.

    Returns:
        object: An instance of this structure class.

    &quot;&quot;&quot;
    
def __repr__(self):
&quot;&quot;&quot;Return an unambiguous string representation.&quot;&quot;&quot;
return...
</code></pre>
<h3>Import Organization &amp; Cleanup</h3>
<p>Reorganized imports according to standard Python conventions with proper grouping (standard library, third-party packages, local modules) and alphabetical sorting within each group. Eliminated all unused import statements across the codebase. These changes reduce module loading overhead and improve dependency transparency.</p>
<p><strong>Before</strong></p>
<pre><code class="language-python">import json

from apimatic_core.utilities.comparison_helper import ComparisonHelper
from mistapi.api_helper import APIHelper
from mistapi.models.upgrade_bios_multi import UpgradeBiosMulti
from mistapi.models.utils_clear_bpdu import UtilsClearBpdu
from mistapi.models.utils_clear_macs import UtilsClearMacs
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-python">from apimatic_core.utilities.comparison_helper import (
    ComparisonHelper,
)

from mistapi.api_helper import APIHelper
from mistapi.models.utils_clear_macs import (
    UtilsClearMacs,
)
</code></pre>
<h3>String Literal Standardization</h3>
<p>Implemented consistent double-quote formatting for all string literals throughout the SDK codebase, eliminating unnecessary escape sequences within quoted strings.</p>
<p><strong>Before</strong></p>
<pre><code class="language-python">&quot;last_status&quot;: &#39;last_status&#39;,
&quot;linked_by&quot;: &#39;linked_by&#39;,
&quot;max_daily_api_requests&quot;: &#39;max_daily_api_requests&#39;
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-python">&quot;last_status&quot;: &quot;last_status&quot;,
&quot;linked_by&quot;: &quot;linked_by&quot;,
&quot;max_daily_api_requests&quot;: &quot;max_daily_api_requests&quot;,
</code></pre>
<h3>Whitespace Normalization</h3>
<p>Eliminated trailing whitespace characters, sanitized blank lines containing only whitespace, and standardized file termination with a single newline character. These corrections minimize version control noise and ensure compatibility with automated code formatters.</p>
<p><strong>Before</strong></p>
<pre><code class="language-python">    def test_get_date(self):

        # Perform the API call through the SDK function
        result = self.controller.get_date()

        # Test response code
        assert &#39;5147483647&#39; == self.response_catcher.response.text
        
        # Test whether the captured response is as we expected
        assert result is not None
        assert &#39;1994-02-13&#39; == self.response_catcher.response.text
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-python">    def test_get_date(self):
        &quot;&quot;&quot;
        Api call test for `test_get_date`.
        &quot;&quot;&quot;
        # Perform the API call through the SDK function
        result = self.controller.get_date()
        # Test response code
        assert self.response_catcher.response.text ==\
            &quot;5147483647&quot;
        # Test whether the captured response is as we expected
        assert result is not None
        assert self.response_catcher.response.text ==\
            &quot;1994-02-13&quot;
</code></pre>
<h3>Code Quality &amp; Variable Management</h3>
<ul>
<li>Eliminated unused variable assignments and redundant f-string literals without interpolation placeholders.</li>
<li>Resolved naming conflicts including shadowed imports and redefined variables, and removed unused parameters from static methods.</li>
<li>Refactored default argument patterns to prevent mutable default issues by replacing function calls with constant values or <code>None</code>, with initialization logic moved into the function body.</li>
</ul>
<p><strong>Before</strong></p>
<pre><code class="language-python">@staticmethod
def _make_request(body_obj, add_signature_header = True) -&gt; Request:
    raw = TestWebhooks1Handler._json_bytes(body_obj)
    url=f&quot;https://example.test/callbacks&quot;,
    headers={&quot;Content-Type&quot;: &quot;application/json&quot;},
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-python">@staticmethod
def _make_request(body_obj) -&gt; Request:
    &quot;&quot;&quot;
     Create a webhook HTTP request with the given payload.

    :param body_obj: The body object to serialize as JSON.
    &quot;&quot;&quot;
    raw = TestWebhooks1Handler._json_bytes(body_obj)

    url=&quot;https://example.test/callbacks&quot;,
    headers={
        &quot;Content-Type&quot;: &quot;application/json&quot;,
    },
</code></pre>
<h3>Return Statement Optimization</h3>
<p>Simplified control flow by eliminating redundant <code>else</code> clauses after <code>return</code> statements and removing superfluous variable assignments immediately preceding return operations. These refinements enhance code readability and reduce unnecessary complexity.</p>
<p><strong>Before</strong></p>
<pre><code class="language-python">@staticmethod
def _make_request(body_obj) -&gt; Request:
    raw = TestWebhooks1Handler._json_bytes(body_obj)
    request = Request(
        method=&quot;POST&quot;,
        raw_body=raw,
    )
    return request
    
@staticmethod
def _compute_signature(
    secret_key: str,
) -&gt; str:
    signature_value_template = &quot;{digest}&quot;
    if &quot;{digest}&quot; in signature_value_template:
        return signature_value_template.replace(&quot;{digest}&quot;, secret_key)
    else:
        return signature_value_template
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-python">@staticmethod
def _make_request(body_obj) -&gt; Request:
    raw = TestWebhooks1Handler._json_bytes(body_obj)
    return Request(
        method=&quot;POST&quot;,
        raw_body=raw,
    )

@staticmethod
def _compute_signature(
    secret_key: str,
) -&gt; str:
    signature_value_template = &quot;{digest}&quot;
    if &quot;{digest}&quot; in signature_value_template:
        return signature_value_template.replace(&quot;{digest}&quot;, secret_key)
    return signature_value_template
</code></pre>
<h3>Python 3 Modernization</h3>
<p>Removed obsolete UTF-8 encoding declarations (<code># -*- coding: utf-8 -*-</code>), which are unnecessary in Python 3, and migrated from <code>str.format()</code> method calls to f-string literals for improved readability and runtime performance.</p>
<p><strong>Before</strong></p>
<pre><code class="language-python"># -*- coding: utf-8 -*-

class BearerAuth(HeaderAuth):
    def __init__(self, bearer_auth_credentials):
        auth_params = {}
        if self._access_token:
            auth_params = {&quot;Authorization&quot;: &quot;Bearer {}&quot;.format(self._access_token)}
        super().__init__(auth_params=auth_params)
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-python">class BearerAuth(HeaderAuth):
    def __init__(self, auth_credentials_model):
        auth_params = {}
        if self._access_token:
            auth_params = {&quot;Authorization&quot;: f&quot;Bearer {self._access_token}&quot;}
        super().__init__(auth_params=auth_params)
</code></pre>
<h3>Code Simplification &amp; Readability</h3>
<p>Refactored ternary expressions of the form <code>True if condition else False</code> to use the more concise <code>bool(condition)</code> construct, and normalized comparison ordering by converting Yoda conditions (literal-first comparisons) to conventional variable-first syntax.</p>
<p><strong>Before</strong></p>
<pre><code class="language-python">    def test_get_date(self):

        # Perform the API call through the SDK function
        result = self.controller.get_date()

        # Test response code
        assert &#39;5147483647&#39; == self.response_catcher.response.text
        
        # Test whether the captured response is as we expected
        assert result is not None
        assert &#39;1994-02-13&#39; == self.response_catcher.response.text
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-python">    def test_get_date(self):
        &quot;&quot;&quot;
        Api call test for `test_get_date`.
        &quot;&quot;&quot;
        # Perform the API call through the SDK function
        result = self.controller.get_date()
        # Test response code
        assert self.response_catcher.response.text ==\
            &quot;5147483647&quot;
        # Test whether the captured response is as we expected
        assert result is not None
        assert self.response_catcher.response.text ==\
            &quot;1994-02-13&quot;
</code></pre>
<h3>Module Export Standards</h3>
<p>Removed redundant TODO comments and implemented alphabetical sorting of <code>__all__</code> module exports to ensure predictable and maintainable public API definitions.</p>
<p><strong>Before</strong></p>
<pre><code class="language-python"># Todo: Add description for __all__
__all__ = [
    &#39;base_controller&#39;,
    &#39;api_controller&#39;,
]
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-python">__all__ = [
    &quot;api_controller&quot;,
    &quot;base_controller&quot;,
]
</code></pre>
<h3>Code Maintenance &amp; Best Practices</h3>
<ul>
<li>Eliminated redundant <code>pass</code> statements that serve no functional purpose.</li>
<li>Replaced typographically ambiguous Unicode quotation marks (RIGHT SINGLE QUOTATION MARK: &#39; ) with standard ASCII single quotes for consistency.</li>
<li>Added explicit parentheses to complex boolean expressions mixing <code>and</code>/<code>or</code> operators to clarify operator precedence and prevent logical errors.</li>
<li>Introduced missing <code>__init__.py</code> files in implicit namespace packages to establish explicit package boundaries where appropriate.</li>
</ul>
<p><strong>Before</strong></p>
<pre><code class="language-python">class Foo:
    @classmethod
    def setUpClass(cls):
        assert isinstance(event, str) or isinstance(event, int) or isinstance(event, list) and all(isinstance(x, str) for x in event) or isinstance(event, list) and all(isinstance(x, int) for x in event)
    
    # Use this method to submit a specific call recording for transcription. Depending on the length of the call and the number of other recordings in the queue, it may take different time for the transcription to be completed. Typically, the majority of calls are transcribed within 10 minutes. To receive an update once the transcription is completed, you can specify a webhook address in the `webhook_url` parameter to which the status update will be sent.
    #
    #
    #The method returns an empty response with the “HTTP 200 OK” status code.  Once the transcription is completed you’ll receive a POST callback to the provided webhook address: 
    #```
    #{
    #   &quot;uuid&quot;: &quot;123&quot;,
    #   &quot;status&quot;: &quot;completed&quot;
    #}
    #```
    #
    #* uuid - the unique identifier of the recorded call 
    #* status - status of the operation. Can be either `completed` meaning the recorded call was successfully transcribed or `failed` which means that there was an error while transcribing the call.

    pass
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-python">class Foo:
    @classmethod
    def setUpClass(cls):
        assert (
            isinstance(event, str) or
            isinstance(event, int) or
            (isinstance(event, list) and all(isinstance(x, str) for x in event)) or
            (isinstance(event, list) and all(isinstance(x, int) for x in event))
        ) 
    
</code></pre>
<h3>Linting with Ruff</h3>
<p>Each generated SDK now includes a <code>ruff.toml</code> configuration file that codifies these quality standards. You can integrate Ruff linting into your development workflow:</p>
<pre><code class="language-bash">ruff check . --config ruff.toml
</code></pre>
<p>Optionally apply auto-fixes and formatting:</p>
<pre><code class="language-bash">ruff check . --fix --config ruff.toml
</code></pre>
<p>You can add this as a pipeline checkpoint (for example, fail the build if <code>ruff check</code> reports violations) to ensure ongoing adherence to the configured rules without impacting backward compatibility.</p>
]]></content:encoded>
      <category>Python</category>
      <category>Linting</category>
      <category>Ruff</category>
      <category>Docstrings</category>
      <category>Improvement</category>
    </item>
    <item>
      <title>Introducing exports Module in TypeScript SDKs</title>
      <link>https://docs.apimatic.io/changelog/released-typescript-sdk-exports</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/released-typescript-sdk-exports</guid>
      <pubDate>Wed, 31 Dec 2025 00:00:00 GMT</pubDate>
      <description>The TypeScript SDK module export changes announced earlier are now live across all generated SDKs. These updates align with modern TypeScript best practices and improve cross-environment compatibility.</description>
      <content:encoded><![CDATA[<p>The TypeScript SDK module export changes announced <a href="https://docs.apimatic.io/v4/changelog#changed-typescript-sdk-exports">earlier</a> are now live across all generated SDKs. These updates align with modern TypeScript best practices and improve cross-environment compatibility.</p>
<h2>What’s New</h2>
<ul>
<li>New <code>exports</code> field in <code>package.json</code> for clear ESM/CommonJS resolution and typings.</li>
<li>Updated internal imports to use the <code>.js</code> extension per TypeScript guidance.</li>
</ul>
<p>For full technical details and examples, see the earlier pre-release notice: <a href="https://docs.apimatic.io/v4/changelog#changed-typescript-sdk-exports">Pre-Release Notice: TypeScript module export changes</a>.</p>
<h2>Availability</h2>
<p>Effective today (December 31, 2025), newly generated TypeScript SDKs include these changes. Regenerate your SDK to apply these changes.</p>
<h2>Impact &amp; Guidance</h2>
<blockquote>
<p><strong>Note</strong></p>
<p>If the TypeScript&#39;s best practices of the import patterns are being followed, <strong>no action is required</strong>.</p>
</blockquote>
<p>Most users require no changes. Only the following 2 edge cases need updates where older import patterns are being followed.</p>
<ul>
<li>Node.js ESM default imports: <strong>prefer namespace or named imports</strong>.</li>
</ul>
<pre><code class="language-ts">// Replace
import sdk from @company/some-sdk;
const client = new sdk.Client();

// With
import { Client } from &quot;@company/some-sdk&quot;;
const client = new Client();
</code></pre>
<ul>
<li>CommonJS deep imports (e.g., into <code>dist</code>): <strong>import from the package root</strong>.</li>
</ul>
<pre><code class="language-ts">// Replace
const { Client } = require(&quot;@company/some-sdk/dist/cjs/index&quot;);

// With
const { Client } = require(&quot;@company/some-sdk&quot;);
</code></pre>
<h2>Action Required</h2>
<ul>
<li><strong>Inform your SDK users</strong>: Notify SDK users of this change in your next SDK release Changelog.</li>
<li><strong>Audit internal integrations</strong>: Review internal integrations using your TypeScript SDK for non-standard import patterns and update them accordingly.</li>
</ul>
<p>If you have questions or run into issues, contact your APIMatic representative or email <a href="mailto:support@apimatic.io">support@apimatic.io</a>.</p>
]]></content:encoded>
      <category>SDKs</category>
      <category>TypeScript</category>
    </item>
    <item>
      <title>Improved .NET SDK Code Quality and Language Alignment</title>
      <link>https://docs.apimatic.io/changelog/improved-csharp-sdk-code-quality</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/improved-csharp-sdk-code-quality</guid>
      <pubDate>Tue, 23 Dec 2025 00:00:00 GMT</pubDate>
      <description>Enhancements have been applied to improve code quality and align the generated .NET SDKs with established C# conventions and best practices. Updates include consistent naming, reduced code noise, and elimination of unnecessary build-time warnings, resulting in cleaner and more...</description>
      <content:encoded><![CDATA[<p>Enhancements have been applied to improve code quality and align the generated .NET SDKs with established C# conventions and best practices. Updates include consistent naming, reduced code noise, and elimination of unnecessary build-time warnings, resulting in cleaner and more maintainable SDKs.</p>
<h2>Non-Breaking Changes</h2>
<h3>Removed and Organized Imports</h3>
<p>  Eliminated unused <code>using</code> directives across the generated SDKs to reduce noise, improve readability, and prevent unnecessary build-time warnings.<br>  Additionally, all remaining imports are now <strong>sorted in alphabetical order</strong>, ensuring consistent and cleaner file structure.</p>
<h4>Example from a Controller class</h4>
<p><strong>Before</strong></p>
<pre><code class="language-csharp">using System; // Unused import
using System.Collections.Generic; // Unused import
using System.Dynamic; // Unused import
using System.Globalization; // Unused import
using System.IO; // Unused import
using System.Linq; // Unused import
using System.Text; // Unused import
using System.Threading;
using System.Threading.Tasks;
using APIMatic.Core;
using APIMatic.Core.Types;
using APIMatic.Core.Utilities;
using APIMatic.Core.Utilities.Date.Xml; // Unused import
using Newtonsoft.Json.Converters; // Unused import
using ServerSdk.Standard; // Unused import
using ServerSdk.Standard.Exceptions;
using ServerSdk.Standard.Http.Client; // Unused import
using ServerSdk.Standard.Http.Response;
using ServerSdk.Standard.Utilities; // Unused import
using System.Net.Http;

...
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-csharp">using APIMatic.Core;
using APIMatic.Core.Types;
using APIMatic.Core.Utilities;
using ServerSdk.Standard.Exceptions;
using ServerSdk.Standard.Http.Response;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;

...
</code></pre>
<h3>Improved Parameter Naming</h3>
<p>Updated automatically generated parameter names to follow standard <strong>C# naming conventions</strong> (camelCase for parameters).<br>This enhances code clarity, reduces style violations, and aligns with common .NET coding guidelines.<br>Parameter naming has been enhanced across key areas, including <strong>client builders</strong> and <strong>Controller <code>CreateApiCall</code> lambda parameters</strong>, ensuring consistency throughout the SDK.</p>
<h4>Example from a Controller class</h4>
<p><strong>Before</strong></p>
<pre><code class="language-csharp">public async Task&lt;ApiResponse&lt;Models.Order&gt;&gt; CreateOrderAsync(
    Models.CreateOrderInput input,
    CancellationToken cancellationToken = default)
=&gt; await CreateApiCall&lt;Models.Order&gt;()
  .RequestBuilder(_requestBuilder =&gt; _requestBuilder
      .Setup(HttpMethod.Post, &quot;/v2/checkout/orders&quot;)
      .WithAuth(&quot;Oauth2&quot;)
      .Parameters(_parameters =&gt; _parameters
          .Body(_bodyParameter =&gt; _bodyParameter.Setup(input.Body))
          .Header(_header =&gt; _header.Setup(&quot;Content-Type&quot;, &quot;application/json&quot;))
          .Header(_header =&gt; _header.Setup(&quot;PayPal-Mock-Response&quot;, input.PaypalMockResponse))
          .Header(_header =&gt; _header.Setup(&quot;PayPal-Request-Id&quot;, input.PaypalRequestId))
          .Header(_header =&gt; _header.Setup(&quot;PayPal-Partner-Attribution-Id&quot;, input.PaypalPartnerAttributionId))
          .Header(_header =&gt; _header.Setup(&quot;PayPal-Client-Metadata-Id&quot;, input.PaypalClientMetadataId))
          .Header(_header =&gt; _header.Setup(&quot;Prefer&quot;, input.Prefer))
          .Header(_header =&gt; _header.Setup(&quot;PayPal-Auth-Assertion&quot;, input.PaypalAuthAssertion))))
  .ResponseHandler(_responseHandler =&gt; _responseHandler
      .ErrorCase(&quot;400&quot;, CreateErrorCase(&quot;Request is not well-formed, syntactically incorrect, or violates schema.&quot;, (_reason, _context) =&gt; new ErrorException(_reason, _context)))
      .ErrorCase(&quot;401&quot;, CreateErrorCase(&quot;Authentication failed due to missing authorization header, or invalid authentication credentials.&quot;, (_reason, _context) =&gt; new ErrorException(_reason, _context)))
      .ErrorCase(&quot;422&quot;, CreateErrorCase(&quot;The requested action could not be performed, semantically incorrect, or failed business validation.&quot;, (_reason, _context) =&gt; new ErrorException(_reason, _context)))
      .ErrorCase(&quot;0&quot;, CreateErrorCase(&quot;The error response.&quot;, (_reason, _context) =&gt; new ErrorException(_reason, _context))))
  .ExecuteAsync(cancellationToken).ConfigureAwait(false);
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-csharp">public async Task&lt;ApiResponse&lt;Models.Order&gt;&gt; CreateOrderAsync(
    Models.CreateOrderInput input,
    CancellationToken cancellationToken = default)
=&gt; await CreateApiCall&lt;Models.Order&gt;()
  .RequestBuilder(requestBuilder =&gt; requestBuilder
      .Setup(HttpMethod.Post, &quot;/v2/checkout/orders&quot;)
      .WithAuth(&quot;Oauth2&quot;)
      .Parameters(parameters =&gt; parameters
          .Body(b =&gt; b.Setup(input.Body))
          .Header(header =&gt; header.Setup(&quot;Content-Type&quot;, &quot;application/json&quot;))
          .Header(header =&gt; header.Setup(&quot;PayPal-Mock-Response&quot;, input.PaypalMockResponse))
          .Header(header =&gt; header.Setup(&quot;PayPal-Request-Id&quot;, input.PaypalRequestId))
          .Header(header =&gt; header.Setup(&quot;PayPal-Partner-Attribution-Id&quot;, input.PaypalPartnerAttributionId))
          .Header(header =&gt; header.Setup(&quot;PayPal-Client-Metadata-Id&quot;, input.PaypalClientMetadataId))
          .Header(header =&gt; header.Setup(&quot;Prefer&quot;, input.Prefer))
          .Header(header =&gt; header.Setup(&quot;PayPal-Auth-Assertion&quot;, input.PaypalAuthAssertion))))
  .ResponseHandler(responseHandler =&gt; responseHandler
      .ErrorCase(&quot;400&quot;, CreateErrorCase(&quot;Request is not well-formed, syntactically incorrect, or violates schema.&quot;, (errorReason, context) =&gt; new ErrorException(errorReason, context)))
      .ErrorCase(&quot;401&quot;, CreateErrorCase(&quot;Authentication failed due to missing authorization header, or invalid authentication credentials.&quot;, (errorReason, context) =&gt; new ErrorException(errorReason, context)))
      .ErrorCase(&quot;422&quot;, CreateErrorCase(&quot;The requested action could not be performed, semantically incorrect, or failed business validation.&quot;, (errorReason, context) =&gt; new ErrorException(errorReason, context)))
      .ErrorCase(&quot;0&quot;, CreateErrorCase(&quot;The error response.&quot;, (errorReason, context) =&gt; new ErrorException(errorReason, context))))
  .ExecuteAsync(cancellationToken).ConfigureAwait(false);
</code></pre>
<h4>Example from SDK Client Builder class</h4>
<p><strong>Before</strong></p>
<pre><code class="language-csharp">public class Builder
{
  private Environment environment = PaypalServerSdk.Standard.Environment.Sandbox;
  private ClientCredentialsAuthModel clientCredentialsAuthModel = new ClientCredentialsAuthModel();
  private HttpClientConfiguration.Builder httpClientConfig = new HttpClientConfiguration.Builder();
  private HttpCallback httpCallback;
  private SdkLoggingConfiguration sdkLoggingConfiguration;

  ...
}
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-csharp">public class Builder
{
  private Environment _environment = PaypalServerSdk.Standard.Environment.Sandbox;
  private ClientCredentialsAuthModel _clientCredentialsAuthModel = new ClientCredentialsAuthModel();
  private HttpClientConfiguration.Builder _httpClientConfig = new HttpClientConfiguration.Builder();
  private HttpCallback _httpCallback;
  private SdkLoggingConfiguration _sdkLoggingConfiguration;

  ...
}
</code></pre>
<h3>Build-Time Warning Cleanup</h3>
<p>A general cleanup pass has been applied across the generated SDKs to make the code more idiomatic and cleaner.
These improvements provide a clearer development experience, streamline focus, and enhance long-term maintainability.</p>
<h4>Refactored Utility Calls to Use <code>CoreHelper</code> Directly</h4>
<p><strong>Before</strong></p>
<pre><code class="language-csharp">builder.Environment(ApiHelper.JsonDeserialize&lt;Environment&gt;($&quot;\&quot;{environment}\&quot;&quot;));
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-csharp">builder.Environment(CoreHelper.JsonDeserialize&lt;Environment&gt;($&quot;\&quot;{environment}\&quot;&quot;));
</code></pre>
<h4>Added Explicit <code>new</code> to <code>ToString</code> in Derived Exception Classes</h4>
<p><strong>Before</strong></p>
<pre><code class="language-csharp">public class Error : ApiException
{
  ...

  protected void ToString(List&lt;string&gt; toStringOutput){ ... }
}
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-csharp">public class Error : ApiException
{
  ...

  protected new void ToString(List&lt;string&gt; toStringOutput){ ... }
}
</code></pre>
<h2>Breaking Changes (Opt-In)</h2>
<p>These changes are currently opt-in and disabled by default. However, we strongly recommend that all teams enable these settings in their next SDK upgrade cycle, as they introduce enhanced capabilities and align the SDK more closely with .NET best practices.</p>
<p>Important Timeline:</p>
<ul>
<li>Current Status: Opt-in via configuration flags (see below)</li>
<li>Future Default: These will become the default behaviour by May 2026</li>
<li>Opt-in Period: Available for at least 6 months to give teams time to evaluate their impact and incorporate these changes in the next SDK release.</li>
</ul>
<p>Before enabling these settings:</p>
<ul>
<li>Review the specific impacts outlined below for each setting</li>
<li>Regenerate your SDKs and review code changes to determine if your SDK is impacted by these changes.</li>
<li>In case of breaking changes, plan your next release accordingly.</li>
</ul>
<p>These changes improve semantics, better align with .NET conventions, and provide long-term benefits for code maintainability and correctness.</p>
<h3>CSharpSkipEqualityMethods</h3>
<p><em>(default: <code>false</code>)</em></p>
<p>Disables automatic generation of <code>Equals</code> and <code>GetHashCode</code> for:</p>
<ul>
<li>Models</li>
<li>OneOf/AnyOf cases</li>
<li>Webhooks and Callbacks ParsingResult</li>
</ul>
<p><strong>Impact</strong></p>
<ul>
<li>Prevents incorrect equality and hashing on mutable models, avoiding invalid comparisons or issues with hash-based collections</li>
<li>Equality falls back to reference comparison unless implemented manually</li>
<li>Value-based equality checks (<code>Equals</code>, <code>==</code>, <code>Dictionary</code>, <code>HashSet</code>) may change</li>
</ul>
<hr>
<h3>CSharpResolveExceptionPropertyCollisions</h3>
<p><em>(default: <code>false</code>)</em></p>
<p>Resolves naming conflicts in generated exception models by postfixing properties instead of overriding <code>System.Exception</code> members.</p>
<p>Common conflicting properties include:
<code>Message</code>, <code>Source</code>, <code>StackTrace</code>, <code>InnerException</code>, <code>HelpLink</code>, <code>Data</code></p>
<p><strong>Impact</strong></p>
<ul>
<li>Exception property names may change (e.g., <code>Message</code> → <code>MessageProperty</code>)</li>
<li>Existing code accessing original names may require updates</li>
<li>Prevents hiding base exception members and removes related compiler warnings</li>
</ul>
<hr>
<h3>Why These Are Considered Breaking</h3>
<p>Even though these settings are opt-in, enabling them can:</p>
<ul>
<li>Change runtime behavior (e.g., equality semantics)</li>
<li>Modify the public API surface (e.g., exception property names)</li>
</ul>
<p>Existing integrations may need adjustments to accommodate these changes.</p>
]]></content:encoded>
      <category>.NET</category>
      <category>C#</category>
      <category>Imporovement</category>
    </item>
    <item>
      <title>Introducing Client Initialization from Configuration in TypeScript SDKs</title>
      <link>https://docs.apimatic.io/changelog/introducing-client-initialization-from-config-typescript</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/introducing-client-initialization-from-config-typescript</guid>
      <pubDate>Tue, 09 Dec 2025 00:00:00 GMT</pubDate>
      <description>We have added support for initializing the TypeScript SDK from JSON configuration files and environment variables to simplify setup and enhance developer experience.</description>
      <content:encoded><![CDATA[<p>We have added support for initializing the TypeScript SDK from JSON configuration files and environment variables to simplify setup and enhance developer experience.</p>
<h2>Details</h2>
<p>APIMatic&#39;s TypeScript SDKs now support two streamlined initialization paths:</p>
<ul>
<li>Configuration-based initialization using a JSON file via <code>Client.fromJsonConfig()</code></li>
<li>Environment-based initialization via <code>Client.fromEnvironment()</code> with values from <code>process.env</code> (Node.js) or a provided object (browser)</li>
</ul>
<p>This enables environment-specific deployments, secure credential management, and runtime configuration updates without modifying code. In Node.js, you can optionally use <code>.env</code> files with <code>dotenv</code> to load environment variables.</p>
<h2>What&#39;s New</h2>
<p>A pair of new static methods has been added to the <code>Client</code> class:</p>
<ul>
<li><code>fromJsonConfig(jsonString)</code> reads client configuration from JSON content</li>
<li><code>fromEnvironment(env?: Record&lt;string, string | undefined&gt;)</code> reads client configuration from environment variables (defaults to <code>process.env</code> in Node.js)</li>
</ul>
<p><strong>Configuration-Based Client Initialization</strong></p>
<pre><code class="language-ts">import * as path from &#39;path&#39;;
import * as fs from &#39;fs&#39;;
import { Client } from &#39;your-package-name&#39;;

// Provide absolute path for the configuration file
const absolutePath = path.resolve(&#39;./config.json&#39;);

// Read the configuration file content
const fileContent = fs.readFileSync(absolutePath, &#39;utf-8&#39;);

// Initialize client from JSON configuration content
const client = Client.fromJsonConfig(fileContent);
</code></pre>
<p>** Sample Configuration File **</p>
<pre><code class="language-json">{
  &quot;environment&quot;: &quot;production&quot;,
  &quot;httpClientOptions&quot;: {
    &quot;timeout&quot;: 30000,
    &quot;retryConfig&quot;: {
      &quot;maxNumberOfRetries&quot;: 3
    },
    &quot;proxySettings&quot;: {
      &quot;address&quot;: &quot;https://my.proxy.address&quot;,
      &quot;port&quot;: 8080
    }
  }
}
</code></pre>
<p><strong>Environment-Based Client Initialization</strong></p>
<pre><code class="language-ts">import * as dotenv from &#39;dotenv&#39;;
import * as path from &#39;path&#39;;
import * as fs from &#39;fs&#39;;
import { Client } from &#39;your-package-name&#39;;

// Optional - Provide absolute path for the .env file
const absolutePath = path.resolve(&#39;./.env&#39;);

if (fs.existsSync(absolutePath)) {
  // Load environment variables from .env file
  dotenv.config({ path: absolutePath, override: true });
}

// Initialize client using environment variables
const client = Client.fromEnvironment(process.env);
</code></pre>
<p>** Sample .env File **</p>
<pre><code class="language-env"># Basic Configuration
TIMEOUT=30000
ENVIRONMENT=production

# Retry Configuration
MAX_NUMBER_OF_RETRIES=3

# Proxy Settings
PROXY_ADDRESS=https://my.proxy.address
PROXY_PORT=8080
</code></pre>
<h2>Developer Portal Enhancements</h2>
<p>Updates have been made to the <code>SDK Infrastructure</code> section to include guidance for TypeScript. You can find detailed instructions for both configuration-based and environment-based initialization, including sample configuration and <code>.env</code> files.</p>
<p>Learn more about Client Initialization from Environment <a href="https://docs.apimatic.io/generate-sdks/sdk-features/client-initialization-from-environment">feature</a></p>
]]></content:encoded>
      <category>New Feature</category>
      <category>TypeScript</category>
    </item>
    <item>
      <title>Introducing A New OpenAPI Linting Ruleset for Agentic Tools Generation</title>
      <link>https://docs.apimatic.io/changelog/openapi-linting-for-agentic-tools-generation</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/openapi-linting-for-agentic-tools-generation</guid>
      <pubDate>Fri, 28 Nov 2025 00:00:00 GMT</pubDate>
      <description>We've introduced a new OpenAPI linting ruleset for Agentic Tools generation.</description>
      <content:encoded><![CDATA[<p>We&#39;ve introduced a new OpenAPI linting ruleset for Agentic Tools generation.</p>
<h2>Details</h2>
<p>As part of expanding our linting capabilities, We&#39;ve introduced a new OpenAPI linting ruleset for Agentic Tools designed specifically to improve the quality of OpenAPI definitions used for agentic tool generation. This ruleset helps ensure that specifications are structured, descriptive, and optimized resulting in higher-quality AI tools and more reliable output.</p>
<h3>Agentic Tools Linting Ruleset</h3>
<p><a href="https://docs.apimatic.io/rulesets/openapi-v3-agentic-tools-linting/overview/">This ruleset</a> currently includes 10 linting rules, each focused on enriching and standardizing key areas of an OpenAPI document:</p>
<ul>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-agentic-tools-linting/unique-tags/">Unique Tags Names</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-agentic-tools-linting/required-tag-description/">Required Tag Description</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-agentic-tools-linting/required-info-description/">Required Info Object Description</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-agentic-tools-linting/required-environment-information/">Required Environment Information for Servers</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-agentic-tools-linting/required-operation-summary/">Required Operation Summary</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-agentic-tools-linting/required-operation-description/">Required Operation Description</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-agentic-tools-linting/required-parameter-description/">Required Parameter Description</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-agentic-tools-linting/at-least-one-parameter-example/">At Least One Parameter Example</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-agentic-tools-linting/required-schema-description/">Required Schema Description</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-agentic-tools-linting/required-description-for-enum-item/">Required Description for Enum</a></li>
</ul>
<blockquote>
<p><strong>Note</strong></p>
<p>This ruleset is disabled by default. If you want to validate your OpenAPI definitions for agentic tools, you can enable it through your <a href="https://docs.apimatic.io/validate-lint-apis/configuring-validation/">Validation Configuration</a> settings.</p>
</blockquote>
<h3>Enabling the Agentic Tools Linting Ruleset</h3>
<p>To enable the ruleset, add the following to your validation configuration in your <a href="https://docs.apimatic.io/manage-apis/apimatic-metadata/">APIMATIC-META.json</a> file:</p>
<pre><code class="language-json">{
    &quot;ValidationConfiguration&quot;: {
        &quot;Rulesets&quot;: {
            &quot;openapi-v3-agentic-tools-linting&quot;:{
                &quot;Rules&quot;: {
                    &quot;EnableAll&quot;: true
                }
            }
        }
    }
}
</code></pre>
]]></content:encoded>
      <category>New Feature</category>
      <category>Validation</category>
      <category>Linting</category>
      <category>AI</category>
      <category>Agentic Tools</category>
    </item>
    <item>
      <title>IRB Support for the Ruby SDKs</title>
      <link>https://docs.apimatic.io/changelog/added-support-for-irb-console-usage-in-ruby-sdk</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/added-support-for-irb-console-usage-in-ruby-sdk</guid>
      <pubDate>Mon, 24 Nov 2025 00:00:00 GMT</pubDate>
      <description>We have added support for exploring the Ruby SDK interactively using IRB (Interactive Ruby).</description>
      <content:encoded><![CDATA[<p>We have added support for exploring the Ruby SDK interactively using IRB (Interactive Ruby).</p>
<h2>Details</h2>
<p>The SDK now supports interactive exploration using IRB, allowing developers to experiment and test features directly in a console. Users can either use IRB with the installed gem or start a preconfigured IRB console within the SDK, making it easier to explore and work with the SDK in an interactive environment.</p>
<h2>What&#39;s New?</h2>
<p>You can explore the SDK interactively using IRB in two ways:</p>
<h3>1. Use IRB with Installed Gem</h3>
<p>Open your system terminal (Command Prompt, Git Bash, or macOS Terminal) and start the IRB console:</p>
<pre><code class="language-bash">irb
</code></pre>
<p>Then, load the SDK in IRB:</p>
<pre><code class="language-ruby">require &#39;sdk_client&#39;
include SdkClient
</code></pre>
<h3>2. Use IRB within SDK</h3>
<p>Open your system terminal and navigate to the root folder of the SDK:</p>
<pre><code class="language-bash">cd path/to/sdk
</code></pre>
<p>Start the preconfigured IRB console:</p>
<pre><code class="language-ruby">ruby bin/console
</code></pre>
<blockquote>
<p><strong>Note:</strong> This automatically loads the SDK from lib/.</p>
</blockquote>
]]></content:encoded>
      <category>New Feature</category>
      <category>Ruby</category>
    </item>
    <item>
      <title>Introducing Client Initialization from Configuration in .NET SDKs</title>
      <link>https://docs.apimatic.io/changelog/introducing-client-initialization-from-config-csharp</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/introducing-client-initialization-from-config-csharp</guid>
      <pubDate>Thu, 20 Nov 2025 00:00:00 GMT</pubDate>
      <description>We have added support for initializing the .NET SDK from configuration to simplify setup and enhance developer experience.</description>
      <content:encoded><![CDATA[<p>We have added support for initializing the .NET SDK from configuration to simplify setup and enhance developer experience.</p>
<h2>Details</h2>
<p>The .NET SDK now supports client initialization directly from <code>IConfigurationSection</code>, leveraging .NET&#39;s built-in configuration system. This allows developers to define SDK settings through multiple configuration sources such as configuration files, environment variables, user secrets, and command-line arguments.</p>
<p>The SDK can now seamlessly integrate with your existing .NET configuration setup (for example, <code>appsettings.json</code> or any other provider), enabling environment-specific deployments, secure credential management, and runtime configuration updates without requiring code changes. If you don&#39;t have configuration set up yet, you can use <code>ConfigurationBuilder</code> as shown in the <a href="#code-sample-for-client-fromconfiguration">code samples below</a> to easily configure and utilize the configuration system.</p>
<h2>What&#39;s New</h2>
<p>A new method <code>FromConfiguration</code> has been added to both <code>Client</code> and <code>Client.Builder</code> classes. This method accepts an <code>IConfigurationSection</code> from <code>Microsoft.Extensions.Configuration</code> as input to initialize the client configuration. Developers simply need to provide the <code>IConfigurationSection</code> containing the client configuration, and <code>FromConfiguration</code> will initialize and return either a configured <code>Client</code> or <code>Client.Builder</code> instance, depending on the calling context.</p>
<h3>Code Sample for Client FromConfiguration</h3>
<pre><code class="language-csharp">using Sdk.Standard;
using Microsoft.Extensions.Configuration;

namespace ConsoleApp;

// Build the IConfiguration using .NET conventions (JSON, environment, etc.)
var configuration = new ConfigurationBuilder()
    .AddJsonFile(&quot;config.json&quot;)
    .AddEnvironmentVariables() // [optional] read environment variables
    .Build();

// Instantiate your SDK and configure it from IConfiguration
var client = SdkClient
    .FromConfiguration(configuration.GetSection(&quot;SdkConfig&quot;));
</code></pre>
<h3>Code Sample for Client.Builder FromConfiguration</h3>
<pre><code class="language-csharp">using Sdk.Standard;
using Microsoft.Extensions.Configuration;
using Environment = Tester.Standard.Environment;

namespace ConsoleApp;

// Build the IConfiguration using .NET conventions (JSON, environment, etc.)
var configuration = new ConfigurationBuilder()
    .AddJsonFile(&quot;config.json&quot;)
    .AddEnvironmentVariables() // [optional] read environment variables
    .Build();

// Instantiate your SDK builder and configure it from IConfiguration with overrides
var client = Sdk.Builder
    .FromConfiguration(configuration.GetSection(&quot;SdkConfig&quot;))
    .Environment(Environment.Testing)
    .HttpClientConfig(c =&gt; c.Timeout(TimeSpan.FromSeconds(60)))
    .Build();
</code></pre>
<blockquote>
<p><strong>Note:</strong> You can also override configurations loaded from the <code>IConfigurationSection</code> if needed by using the Builder methods on <code>Client.Builder</code>.</p>
</blockquote>
<h3>Sample Configuration File</h3>
<p>Here&#39;s an example of how your <code>config.json</code> file should be structured to work with the above code samples:</p>
<pre><code class="language-json">{
  &quot;SdkConfig&quot;: {
    &quot;Environment&quot;: &quot;testing&quot;,
    &quot;Port&quot;: &quot;port&quot;,
    &quot;HttpClientConfig&quot;: {
      &quot;Timeout&quot;: &quot;00:01:00&quot;,
      &quot;NumberOfRetries&quot;: 3,
      &quot;BackoffFactor&quot;: 2,
      &quot;RetryInterval&quot;: 1,
      &quot;MaximumRetryWaitTime&quot;: &quot;00:02:00&quot;,
      &quot;StatusCodesToRetry&quot;: [408, 413],
      &quot;RequestMethodsToRetry&quot;: [&quot;GET&quot;, &quot;PUT&quot;, &quot;DELETE&quot;],
      &quot;ProxyConfiguration&quot;: {
        &quot;Address&quot;: &quot;http://localhost:3000&quot;,
        &quot;Port&quot;: 8080,
        &quot;Tunnel&quot;: false,
        &quot;User&quot;: &quot;username&quot;,
        &quot;Pass&quot;: &quot;password&quot;
      }
    }
  }
}
</code></pre>
<h3>Environment Variable Configuration</h3>
<p>You can also configure individual settings using environment variables. .NET&#39;s configuration system uses double underscores (<code>__</code>) to represent nested configuration sections. Here are some examples:</p>
<pre><code class="language-bash"># Set the environment
SdkConfig__Environment=production

# Set number of retries
SdkConfig__HttpClientConfig__NumberOfRetries=5

# Configure proxy settings
SdkConfig__HttpClientConfig__ProxyConfiguration__Port=8080
</code></pre>
<p>When using environment variables, their precedence depends on the order you add configuration providers to the <code>ConfigurationBuilder</code>.</p>
<h2>Portal Enhancements</h2>
<p>A new <code>Configuration-Based Initialization</code> section has been added to <code>SDK Infrastructure</code>. This section contains information on how to initialize the SDK client from configuration and includes configuration file examples for the SDK with all configurable fields.</p>
<p>Learn more about Client Initialization from Environment <a href="https://docs.apimatic.io/generate-sdks/sdk-features/client-initialization-from-environment">feature</a></p>
]]></content:encoded>
      <category>New Feature</category>
      <category>.NET</category>
      <category>C#</category>
    </item>
    <item>
      <title>Introducing Client Initialization from Environment in Python SDKs</title>
      <link>https://docs.apimatic.io/changelog/introducing-client-initialization-from-environment-python</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/introducing-client-initialization-from-environment-python</guid>
      <pubDate>Thu, 20 Nov 2025 00:00:00 GMT</pubDate>
      <description>We have added support for initializing the SDK directly from environment to simplify setup and enhance developer experience.</description>
      <content:encoded><![CDATA[<p>We have added support for initializing the SDK directly from environment to simplify setup and enhance developer experience.</p>
<h2>Details</h2>
<p>APIMatic&#39;s Python SDK now supports initializing clients directly from environment variables, eliminating the need for hardcoded configuration values. This streamlines environment-specific deployments, enhances credential security, and allows runtime configuration changes without code modifications.</p>
<h2>What&#39;s New?</h2>
<p>We have introduced a <code>from_environment()</code> class method in the SDK client that builds the client using values defined in system environment variables or a <code>.env</code> file, with optional overrides via keyword arguments.</p>
<h3>Initializing the Client from the Environment</h3>
<pre><code class="language-python">from sdk_client import SdkClient

# Initialize using values from system environment or .env file
client = SdkClient.from_environment(dotenv_path=&#39;/path/to/.env&#39;)
</code></pre>
<p>Overrides take precedence:</p>
<pre><code class="language-python">from sdk_client import SdkClient

# Overrides the timeout defined in environment variables
client = SdkClient.from_environment(timeout=0)
</code></pre>
<h3>Example <code>.env</code> File</h3>
<pre><code>PORT=443
ENVIRONMENT=production
TIMEOUT=60
MAX_RETRIES=3
BACKOFF_FACTOR=2
RETRY_STATUSES=408,413
RETRY_METHODS=GET,PUT,DELETE

# Proxy Configuration
PROXY_ADDRESS=http://localhost:3000
PROXY_PORT=8080
PROXY_USERNAME=username
PROXY_PASSWORD=password
</code></pre>
<h2>Developer Portal Enhancements</h2>
<p>A new <code>Environment-Based Client Initialization</code> section has been added to the <code>SDK Infrastructure</code> section. This section contains information on how to initialize the SDK client from environment and includes <code>.env</code> file examples for the SDK with all possible configurations.</p>
<p>Learn more about Client Initialization from Environment <a href="https://docs.apimatic.io/generate-sdks/sdk-features/client-initialization-from-environment">feature</a></p>
]]></content:encoded>
      <category>New Feature</category>
      <category>Python</category>
    </item>
    <item>
      <title>Introducing Client Initialization from Environment in Ruby SDKs</title>
      <link>https://docs.apimatic.io/changelog/introducing-client-initialization-from-config-ruby</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/introducing-client-initialization-from-config-ruby</guid>
      <pubDate>Thu, 20 Nov 2025 00:00:00 GMT</pubDate>
      <description>We have added support for initializing the Ruby SDK from environment to simplify setup and enhance developer experience.</description>
      <content:encoded><![CDATA[<p>We have added support for initializing the Ruby SDK from environment to simplify setup and enhance developer experience.</p>
<h2>Details</h2>
<p>APIMatic&#39;s Ruby SDK now supports initializing clients directly from environment variables, eliminating the need for hardcoded configuration values. This streamlines environment-specific deployments, enhances credential security, and allows runtime configuration changes without code modifications.</p>
<p>The new initialization method supports configuration through:</p>
<ul>
<li><code>.env</code> files (using the <code>dotenv</code> gem)</li>
<li>Runtime environment variables</li>
<li>Optional overrides via keyword arguments</li>
</ul>
<p>This reduces boilerplate and simplifies deployment across different environments and runtime contexts.</p>
<h2>What&#39;s New</h2>
<p>A new <code>from_env</code> method has been added to the <code>Client</code> class. This allows the SDK client to be initialized automatically using values loaded from environment variables with no manual configuration required.</p>
<h2>Environment-Based Client Initialization</h2>
<pre><code class="language-ruby"># Create client from environment
client = Client.from_env
</code></pre>
<p>To load values from a .env file automatically, install and use the dotenv gem:</p>
<pre><code class="language-bash">gem install dotenv
</code></pre>
<p>You can populate the .env file like the sample given below.</p>
<pre><code class="language-bash"># Set the environment
Environment=production

# Set number of retries
MAX_RETRIES=5

# Configure proxy settings
PROXY_PORT=8080
</code></pre>
<blockquote>
<p><strong>Note:</strong> <code>require dotenv/load</code> automatically loads .env variables into ENV, allowing <code>from_env</code> to read them seamlessly.</p>
</blockquote>
<p>Developers can still override any values loaded from the environment by passing keyword arguments.</p>
<pre><code class="language-ruby"># Override client from environment
client = Client.from_env(
  environment: Environment::TESTING,   
  timeout: 30              
)
</code></pre>
<h2>Developer Portal Enhancements</h2>
<p>A new <code>Environment-Based Client Initialization</code> section has been added to the <code>SDK Infrastructure</code> section. This section contains information on how to initialize the SDK client from environment and includes <code>.env</code> file examples for the SDK with all configurable fields.</p>
<p>Learn more about Client Initialization from Environment <a href="https://docs.apimatic.io/generate-sdks/sdk-features/client-initialization-from-environment">feature</a></p>
]]></content:encoded>
      <category>New Feature</category>
      <category>Ruby</category>
    </item>
    <item>
      <title>Adding Webhooks and Callbacks Support in LLM Context Generation</title>
      <link>https://docs.apimatic.io/changelog/introducing-webhooks-and-callbacks-support-for-AI-documentation</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/introducing-webhooks-and-callbacks-support-for-AI-documentation</guid>
      <pubDate>Fri, 07 Nov 2025 00:00:00 GMT</pubDate>
      <description>We've extended LLM context generation to include Webhooks and Callbacks documentation. Both llms.txt and llms-full.txt now provide AI tools like ChatGPT and Claude with comprehensive information about your event-based API interactions.</description>
      <content:encoded><![CDATA[<p>We&#39;ve extended LLM context generation to include Webhooks and Callbacks documentation. Both <code>llms.txt</code> and <code>llms-full.txt</code> now provide AI tools like ChatGPT and Claude with comprehensive information about your event-based API interactions.</p>
<h2>What&#39;s New?</h2>
<p>Previously, LLM context files only included standard API endpoints, leaving AI tools without visibility into Webhooks and Callbacks. This enhancement ensures developers can get accurate answers about event-based interactions when using AI assistants.</p>
<h3>llms.txt</h3>
<p>Direct links to Webhooks and Callbacks documentation are now included for quick discovery:</p>
<p><img src="https://docs.apimatic.io/images/changelog/callback-webhooks/cb-wh-llm-example.png" alt="Webhooks & Callbacks Links in llm.txt example"></p>
<p>This enables LLMs to locate and reference event-based endpoints and their guides.</p>
<h3>llms-full.txt</h3>
<p>Complete documentation for each Webhook and Callback is now included with:</p>
<ul>
<li>Event descriptions and payload structures</li>
<li>Request payload schemas with data types</li>
<li>Usage examples in supported frameworks</li>
<li>Code samples for signature verification and event parsing</li>
</ul>
<p><img src="https://docs.apimatic.io/images/changelog/callback-webhooks/cb-wh-llm-full-example.png" alt="Webhooks & Callbacks in llm-full.txt example"></p>
<p>This provides LLM tools with full context when interpreting and explaining your event-based APIs.</p>
<p>To learn more, see the <a href="https://docs.apimatic.io/ai-capabilities/llms-txt">LLM context generation documentation</a>.</p>
]]></content:encoded>
      <category>Enhancement</category>
      <category>Developer Portal</category>
      <category>AI</category>
    </item>
    <item>
      <title>Introducing Webhooks and Callbacks support in PHP and Go SDKs</title>
      <link>https://docs.apimatic.io/changelog/introducing-support-for-webhooks-and-callbacks-in-php-and-go</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/introducing-support-for-webhooks-and-callbacks-in-php-and-go</guid>
      <pubDate>Fri, 07 Nov 2025 00:00:00 GMT</pubDate>
      <description>This enhancement allows developers to easily manage API notifications and event-driven workflows without extra setup. With type-safe handlers and configured signature verification, integration becomes simpler and more reliable.</description>
      <content:encoded><![CDATA[<p>This enhancement allows developers to easily manage API notifications and event-driven workflows without extra setup. With type-safe handlers and configured signature verification, integration becomes simpler and more reliable.</p>
<h2>Details</h2>
<p>Webhooks and callbacks are widely used in APIs to deliver information asynchronously, notifying clients about events or providing results after a request has been initiated. Without SDK support, developers often need to write custom code for parsing payloads, verifying signatures, and mapping data. With this enhancement, PHP and Go SDKs automatically generate type-safe handlers and utilities, giving developers a consistent and reliable way to work with event-driven APIs.</p>
<h2>What’s New in SDKs?</h2>
<p>APIMatic now supports Webhooks and Callbacks in PHP and Go SDKs.</p>
<ul>
<li>Type Safe Webhook Handlers</li>
<li>Type Safe Callback Handlers</li>
<li>HMAC Signature Verification</li>
</ul>
<h3>Usage Example</h3>
<p>Developers can now verify signatures and handle webhook events with type-safe parsing:</p>
<p><strong>PHP</strong></p>
<pre><code class="language-php">// Create the handler with your shared secret key.
$handler = PaymentHandler::init(&#39;hmac-secret-key&#39;);

// Verify and parse the request into a typed event.
$result = $handler-&gt;verifyAndParse($request);

if ($result instanceof SignatureVerificationFailure) {
    // TODO: add signature verification failure handling
    return response(&quot;Received an event with invalid signature: {$result-&gt;getErrorMessage()}&quot;, 400);
} elseif ($result instanceof VerifiedPaymentEvent) {
    // TODO: add handling logic
    return response(&quot;Received an event of type FulfillmentCallback: $result&quot;);
} elseif ($result instanceof UnknownEvent) {
    // TODO: add unknown event handling
    return response(&quot;Received an unknown event with payload: {$result-&gt;getData()}&quot;, 400);
}
</code></pre>
<p><strong>Go</strong></p>
<pre><code class="language-go">// Create the handler with your shared secret key.
handler, err := callbacks.PaymentHandler(&quot;secret-key&quot;)
if err != nil {
    c.JSON(400, map[string]any{&quot;unexpected error&quot;: err.Error()})
}

// Verify and parse the request into a typed event.
parsingResult := handler.VerifyAndParseEvent(c.Request)

if event, ok := parsingResult.AsVerifiedPaymentEvent(); ok {
    // TODO: add handling logic
    c.JSON(200, map[string]any{
        &quot;status&quot;:    &quot;success&quot;,
        &quot;eventInfo&quot;: fmt.Sprintf(&quot;VerifiedPaymentEvent event received %v&quot;, event),
    })
} else if parsingResult.AsUnknownEvent() {
    // TODO: add unknown event handling
    c.JSON(200, map[string]any{
        &quot;status&quot;:    &quot;success&quot;,
        &quot;eventInfo&quot;: &quot;UnknownEvent received&quot;,
    })
} else if event, ok := parsingResult.AsSignatureVerificationFailure(); ok {
    // TODO: add signature verification failure handling
    c.JSON(200, map[string]any{
        &quot;status&quot;:    &quot;success&quot;,
        &quot;eventInfo&quot;: fmt.Sprintf(&quot;SignatureVerificationFailure event received %v&quot;, event),
    })
}
</code></pre>
<p>Learn more about <a href="https://docs.apimatic.io/generate-sdks/sdk-features/webhooks-and-callbacks">webhooks and callbacks</a></p>
]]></content:encoded>
      <category>New Feature</category>
      <category>SDKs</category>
      <category>PHP</category>
      <category>Go</category>
      <category>Webhooks</category>
      <category>Callbacks</category>
    </item>
    <item>
      <title>Enhanced Configuration Management for API Endpoint Pages</title>
      <link>https://docs.apimatic.io/changelog/config-ui-enhancement</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/config-ui-enhancement</guid>
      <pubDate>Wed, 05 Nov 2025 00:00:00 GMT</pubDate>
      <description>We've redesigned the configuration section on API endpoint pages to bring essential settings front and center. The new &quot;Configurations&quot; panel consolidates environment selection, Base URLs, and authentication inputs into a single, intuitive interface—eliminating the need to hun...</description>
      <content:encoded><![CDATA[<p>We&#39;ve redesigned the configuration section on API endpoint pages to bring essential settings front and center. The new &quot;Configurations&quot; panel consolidates environment selection, Base URLs, and authentication inputs into a single, intuitive interface—eliminating the need to hunt through hidden menus and popups.</p>
<h2>What&#39;s New?</h2>
<p>Previously, critical configuration settings like environment selection and Base URL inputs were hidden behind a configure button, making them hard to find. The overall experience felt fragmented. The new design surfaces everything you need directly on the API endpoint page.</p>
<p><strong>Key improvements:</strong></p>
<ul>
<li><strong>Unified Configurations panel</strong>: All essential settings now appear in a prominent, collapsible section at the top of each endpoint</li>
<li><strong>Environment selector front and center</strong>: Switch between environments (e.g., production, staging) with a visible dropdown</li>
<li><strong>Base URL visibility and editing</strong>: See and modify your Base URL directly in the interface with a convenient edit icon</li>
<li><strong>Show Complete Code toggle</strong>: A simple checkbox at the bottom reveals the full code sample when you need it</li>
</ul>
<p><img src="https://docs.apimatic.io/images/changelog/Config-ui-enhancement.gif" alt="Configurations"></p>
<blockquote>
<p><strong>Note</strong></p>
<p>These improvements will be reflected in your portal the next time you publish it.</p>
</blockquote>
<h2>Why This Matters</h2>
<p>This redesign dramatically reduces the friction in testing and switching between API environments. Developers can now:</p>
<ul>
<li><strong>Configure faster</strong>: All settings are visible and editable without opening a dialog</li>
<li><strong>Understand context immediately</strong>: See which environment and Base URL you&#39;re working with at a glance</li>
<li><strong>Make fewer mistakes</strong>: Clear visual hierarchy prevents common configuration errors</li>
</ul>
]]></content:encoded>
      <category>API Developer Portal</category>
      <category>Improvement</category>
    </item>
    <item>
      <title>Improved HTTP Client Injection in Python SDKs</title>
      <link>https://docs.apimatic.io/changelog/improved-configurable-http-client-injection-in-python-sdk</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/improved-configurable-http-client-injection-in-python-sdk</guid>
      <pubDate>Tue, 04 Nov 2025 00:00:00 GMT</pubDate>
      <description>The Python SDKs now support interface-driven HTTP client injection and direct use of a requests.Session instance, improving developer experience, flexibility and alignment with other SDKs.</description>
      <content:encoded><![CDATA[<p>The Python SDKs now support <strong>interface-driven HTTP client injection</strong> and direct use of a <strong><code>requests.Session</code></strong> instance, improving developer experience, flexibility and alignment with other SDKs.</p>
<p>Developers can now either implement the <code>HttpClientProvider</code> interface for structured control if the intention is to override the timeout property or directly provide a <code>requests.Session</code> for simple customization. This enhancement streamlines the custom http client injection while remaining backward compatible.</p>
<h2>Example Usage</h2>
<pre><code class="language-python">import requests
from requests import Session
from myapi.http.http_client_provider import HttpClientProvider

class CustomHttpClient(HttpClientProvider):
    def __init__(self, timeout=10):
        self._session = requests.Session()
        self.session.headers.update({
            &quot;Authorization&quot;: &quot;Bearer your-access-token&quot;,
            &quot;Custom-Header&quot;: &quot;CustomValue&quot;,
        })
        self._timeout = timeout

    @property
    def timeout(self) -&gt; float:
        return self._timeout

    @property
    def session(self) -&gt; Session:
        return self._session

client = Myapi(
    http_client_instance=CustomHttpClient(),  # Interface-driven
    # or
    # http_client_instance=requests.Session(),  # Plain Session
    override_http_client_configuration=True
)
</code></pre>
<p>Learn more about configurable http clients <a href="https://docs.apimatic.io/generate-sdks/sdk-features/configurable-http-clients">feature</a></p>
]]></content:encoded>
      <category>Improvement</category>
      <category>Python</category>
    </item>
    <item>
      <title>Introducing Masked Sensitive Fields for Code Samples</title>
      <link>https://docs.apimatic.io/changelog/introducing-support-for-masked-fields</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/introducing-support-for-masked-fields</guid>
      <pubDate>Tue, 04 Nov 2025 00:00:00 GMT</pubDate>
      <description>We've enhanced the security and privacy of your API documentation by automatically masking sensitive fields such as API keys, tokens, and credentials in code samples and the authentication section. Sensitive values are now hidden during display but remain accessible when copie...</description>
      <content:encoded><![CDATA[<p>We&#39;ve enhanced the security and privacy of your API documentation by automatically masking sensitive fields such as API keys, tokens, and credentials in code samples and the authentication section. Sensitive values are now hidden during display but remain accessible when copied, reducing the risk of accidental exposure.</p>
<h2>What&#39;s New?</h2>
<p>In many API documentation and SDK examples, sensitive fields were previously shown in plain text—increasing the risk of accidental exposure when sharing screenshots or demos. With this enhancement, the Developer Portal now applies <strong>conditional masking</strong> to all identified sensitive fields.</p>
<p><strong>How it works:</strong></p>
<ul>
<li>Sensitive values appear masked in the UI (e.g., <code>mM****************KM</code>)</li>
<li>When copied, the actual values are restored for proper use in development</li>
<li>Masking applies to both code samples and the authentication section</li>
</ul>
<p><strong>After</strong></p>
<p><img src="https://docs.apimatic.io/images/changelog/masked-fields/maskingEnabled.png" alt="Code sample with masking enabled"></p>
<p><strong>Before</strong></p>
<p><img src="https://docs.apimatic.io/images/changelog/masked-fields/maskingDisabled.png" alt="Code sample with masking disabled"></p>
<h2>New Portal Setting</h2>
<p>A new configuration setting <code>maskSensitiveValues</code> allows you to control masking behavior globally:</p>
<pre><code class="language-json">{
  &quot;generatePortal&quot;: {
    &quot;portalSettings&quot;: {
      &quot;maskSensitiveValues&quot;: true
    }
  }
}
</code></pre>
<p>For details, see the documentation for <a href="https://docs.apimatic.io/platform-api/#/http/guides/generating-on-prem-api-portal/build-file-reference/generateportal-portalsettings-masksensitivevalues"><code>maskSensitiveValues</code></a>.</p>
<blockquote>
<p><strong>Note</strong></p>
<p>This setting is only supported for portals generated via Docs as Code.</p>
</blockquote>
]]></content:encoded>
      <category>API Developer Portal</category>
      <category>Improvement</category>
    </item>
    <item>
      <title>Introducing Webhooks and Callbacks support in SDKs and Developer Portals</title>
      <link>https://docs.apimatic.io/changelog/introducing-support-for-webhooks-and-callbacks</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/introducing-support-for-webhooks-and-callbacks</guid>
      <pubDate>Wed, 08 Oct 2025 00:00:00 GMT</pubDate>
      <description>This enhancement allows developers to easily manage API notifications and event-driven workflows without extra setup. With type-safe handlers and configured signature verification, integration becomes simpler and more reliable.</description>
      <content:encoded><![CDATA[<p>This enhancement allows developers to easily manage API notifications and event-driven workflows without extra setup. With type-safe handlers and configured signature verification, integration becomes simpler and more reliable.</p>
<h2>Details</h2>
<p>Webhooks and callbacks are widely used in APIs to deliver information asynchronously, notifying clients about events or providing results after a request has been initiated. Without SDK support, developers often need to write custom code for parsing payloads, verifying signatures, and mapping data. With this enhancement, all mentioned SDKs automatically generate type-safe handlers and utilities, giving developers a consistent and reliable way to work with event-driven APIs.</p>
<h2>What&#39;s New in Developer Portal?</h2>
<p><strong>Callback Associated in API Endpoints:</strong> Each API endpoint page now includes a collapsible accordion listing all associated callbacks, making it easier to explore callback details without leaving the endpoint view.</p>
<p><img src="https://docs.apimatic.io/images/changelog/callback-webhooks/callbackAccordion.png" alt="Callback accordion in apiendpoit"></p>
<p><strong>Improved Documentation:</strong> Clearer descriptions and usage guidelines for callbacks and webhooks are now available, ensuring developers can integrate with confidence.</p>
<p><strong>Ready to Use Examples:</strong> Updated code snippets in multiple languages demonstrate how to handle webhook payloads, making it faster to test and implement integrations.</p>
<p><strong>Webhook</strong></p>
<p><img src="https://docs.apimatic.io/images/changelog/callback-webhooks/WebhookFlow.gif" alt="webhook"></p>
<p><strong>Callback</strong></p>
<p><img src="https://docs.apimatic.io/images/changelog/callback-webhooks/CallbackFlow.gif" alt="callback"></p>
<h2>What’s New in SDKs?</h2>
<p>APIMatic now supports Webhooks and Callbacks in C#, Java, Python, Ruby and TypeScript SDKs.</p>
<ul>
<li>Type Safe Webhook Handlers</li>
<li>Type Safe Callback Handlers</li>
<li>HMAC Signature Verification</li>
</ul>
<h3>Usage Example</h3>
<p>Developers can now verify signatures and handle webhook events with type-safe parsing:</p>
<p><strong>.NET</strong></p>
<pre><code class="language-csharp">// Create the HttpRequestData from the incoming HttpRequest
var eventRequest = HttpRequestData.FromAspNetCoreParams(
  Request.Method,
  Request.Scheme,
  Request.Host.ToString(),
  Request.Path.ToString(),
  Request.QueryString.ToString(),
  Request.Headers,
  Request.Body,
  Request.Query,
  Request.Cookies,
  Request.Protocol,
  Request.ContentType,
  Request.ContentLength
);

// Use the provided handler to verify and parse the incoming event
var handler = new PaymentHandler(&quot;hmac-secret-key&quot;);

var eventParsingResult = await handler.VerifyAndParseEventAsync(eventRequest);
var result = eventParsingResult.MatchSome&lt;string&gt;(
  verifiedPaymentEvent: payment =&gt; $&quot;Payment verification received {payment}&quot;,
  signatureVerificationFailed: error =&gt; $&quot;Signature verification failed {error}&quot;,
  unknown: () =&gt; &quot;Unknown event received&quot;
);
</code></pre>
<p><strong>Java</strong></p>
<pre><code class="language-java">// Create the HttpRequest from the incoming Request
HttpRequest httpRequest = HttpRequest.fromHttpServletRequest(
  Collections.list(request.getHeaderNames()).stream().collect(Collectors.toMap(
    h -&gt; h,
    h -&gt; Collections.list(request.getHeaders(h))
  )),
  request.getParameterMap(),
  request.getRequestURL(),
  request.getQueryString(),
  request.getMethod(),
  body
);

// Use the provided handler to verify and parse the incoming event
PaymentHandler handler = new PaymentHandler(&quot;hmac-secret-key&quot;);

String result = handler.verifyAndParseEventAsync(httpRequest).thenApply(paymentParsingResult -&gt;
  paymentParsingResult.matchSome(new PaymentParsingResult.SomeCases&lt;String&gt;() {
    @Override
    public String verifiedPaymentEvent(VerifiedPaymentEvent verifiedPaymentEvent) {
      // TODO: add handling logic
      return &quot;VerifiedPaymentEvent event received &quot; + verifiedPaymentEvent;
    }

    @Override
    public String unknown() {
      // TODO: add unknown event handling
      return &quot;Unknown event received&quot;;
    }

    @Override
    public String signatureVerificationFailed(SignatureVerificationResult signatureVerificationResult) {
      // TODO: add signature verification failure handling
      return &quot;SignatureVerificationResult event received &quot; + signatureVerificationResult;
    }
  })
).join();
</code></pre>
<p><strong>Python</strong></p>
<pre><code class="language-python"># Create the handler with your shared secret key.
handler = PaymentHandler(secret_key=&quot;hmac-secret-key&quot;)

# Convert the incoming request using to_core_request (Django/Flask)
# or await to_core_request_async (FastAPI).
core_req = to_core_request(request)

# Verify and parse the request into a typed event.
event = handler.verify_and_parse_event(core_req)

# Pattern match on the event types and handle it.
if isinstance(event, VerifiedPaymentEvent):
  print(&quot;Payment verification received&quot;)
  # TODO: add handling logic
elif isinstance(event, SignatureVerificationFailure):
  print(&quot;Signature verification failed&quot;)
  # TODO: add signature verification failure handling
elif isinstance(event, UnknownEvent):
  print(&quot;Unknown event&quot;)
  # TODO: add unknown event handling
</code></pre>
<p><strong>Ruby</strong></p>
<pre><code class="language-ruby"># Create the handler using your shared secret key.
handler = PaymentHandler.new(&#39;your-shared-secret&#39;)

# Verify and parse the request (Rack::Request compatible) into a typed event.
event = handler.verify_and_parse_event(request)

# Pattern match on the event types and handle it.
case event
when VerifiedPaymentEvent
  puts &#39;Payment verification received&#39;
  # TODO: Add handling logic
when SignatureVerificationFailure
  puts &#39;Signature verification failed&#39;
  # TODO: Add failure handling
when UnknownEvent
  puts &#39;Unknown event received&#39;
  # TODO: Add unknown-event handling
else
  # TODO: Add default handling
end
</code></pre>
<p><strong>TypeScript</strong></p>
<pre><code class="language-typescript">// Create the handler with your shared secret key.
const handler = new PaymentHandler(&#39;hmac-secret-key&#39;);

// Convert the incoming request.
const coreRequest = convertExpressRequest(request);

// Verify and parse the request into a typed event.
const result = handler.verifyAndParseEvent(coreRequest);

if (PaymentParsingResult.isVerifiedPaymentEvent(result)) {
  // Result narrowed down to type VerifiedPayment event.
  return result;
} else if (PaymentParsingResult.isEventTypeUnknown(result)) {
  // Result narrowed down to type UnknownEvent.
  return result;
} else if (PaymentParsingResult.isSignatureVerificationFailure(result)) {
  // Result narrowed down to type SignatureVerificationFailure.
  return result;
}
</code></pre>
<p>Learn more about <a href="https://docs.apimatic.io/generate-sdks/sdk-features/webhooks-and-callbacks">webhooks and callbacks</a></p>
]]></content:encoded>
      <category>New Feature</category>
      <category>SDKs</category>
      <category>Webhooks</category>
      <category>Callbacks</category>
    </item>
    <item>
      <title>Pre-Release Notice: TypeScript module export changes</title>
      <link>https://docs.apimatic.io/changelog/changed-typescript-sdk-exports</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/changed-typescript-sdk-exports</guid>
      <pubDate>Tue, 09 Sep 2025 00:00:00 GMT</pubDate>
      <description>We're changing the way we export modules in our TypeScript SDK to align with modern Typescript best practices and improve compatibility across different environments.</description>
      <content:encoded><![CDATA[<p>We&#39;re changing the way we export modules in our TypeScript SDK to align with modern Typescript best practices and improve compatibility across different environments.</p>
<h2>What&#39;s New?</h2>
<p>Starting <strong>November 1st 2025</strong>, you&#39;ll see 2 changes in the Typescript SDKs:</p>
<ul>
<li><p><strong>New exports field:</strong> You&#39;ll notice a new <code>exports</code> field in the SDK&#39;s <code>package.json</code> file:</p>
<pre><code class="language-json">{
  &quot;exports&quot;: {
    &quot;.&quot;: {
      &quot;import&quot;: {
        &quot;types&quot;: &quot;./dist/esm/types/index.d.ts&quot;,
        &quot;default&quot;: &quot;./dist/esm/index.js&quot;
      },
      &quot;require&quot;: {
        &quot;types&quot;: &quot;./dist/cjs/types/index.d.ts&quot;,
        &quot;default&quot;: &quot;./dist/cjs/index.js&quot;
      }
    },
    &quot;./metadata&quot;: {
      &quot;import&quot;: {
        &quot;types&quot;: &quot;./dist/esm/types/metadata/index.d.ts&quot;,
        &quot;default&quot;: &quot;./dist/esm/metadata/index.js&quot;
      },
      &quot;require&quot;: {
        &quot;types&quot;: &quot;./dist/cjs/types/metadata/index.d.ts&quot;,
        &quot;default&quot;: &quot;./dist/cjs/metadata/index.js&quot;
      }
    }
  }
}
</code></pre>
</li>
<li><p><strong>Updated internal imports:</strong> You&#39;ll also notice that the internal SDK imports use the <code>.js</code> extension, following TypeScript&#39;s recommended best practices.</p>
</li>
</ul>
<h2>Why are these updates needed ?</h2>
<p>These change enable SDK users to:</p>
<ul>
<li><strong>Reduce bundle size</strong>: Avoid unwanted imports that can impact JavaScript file bundling for browser applications</li>
<li><strong>Improve import clarity</strong>: Use more explicit import patterns that align with our documented best practices</li>
<li><strong>Catch errors earlier</strong>: Import-related runtime failures will now be caught at compile time for ESM users</li>
<li><strong>Enhance compatibility</strong>: The same code can run seamlessly on both browsers and Node.js environments</li>
</ul>
<h2>Testing SDKs</h2>
<p>To test your Typescript SDK with these changes before the November 1st release date, reach out to your APIMatic point of contact or contact our team at <a href="mailto:support@apimatic.io">support@apimatic.io</a></p>
<h2>Potential Breaking Changes</h2>
<p>Following these changes, there are a few rare edge cases where changes can be <strong>breaking</strong>. These cases occur for users who use the SDK in ways that are <strong>unconventional</strong> or <strong>bad practice</strong>:</p>
<blockquote>
<p><strong>Info</strong></p>
<p> If SDK users followed Typescript best practices and the import patterns shown in our SDK Documentation while building their integrations, <strong>no changes are required</strong>.</p>
</blockquote>
<p>SDK users that use any of the following edge cases may need to update their SDK integrations:</p>
<ol>
<li><p><strong>Node.js ESM Users with Default Imports</strong></p>
<p> Affected code pattern:</p>
<pre><code class="language-js">// example.ts
import sdk from @company/some-sdk;
const client = new sdk.Client();
</code></pre>
<p> Recommended change: Default imports can be error-prone and difficult to reason about since different runtimes and bundlers often interpret them differently in subtle ways. The following is a standards compliant way of fixing it:</p>
<pre><code class="language-js">// Option 1: Namespace import
import * as sdk from @company/some-sdk;
const client = new sdk.Client();

// Option 2: Named import (preferred)
import { Client } from @company/some-sdk;
const client = new Client();
</code></pre>
</li>
<li><p><strong>CommonJS Users with Deep Imports</strong>   </p>
<p> Affected code patterns:</p>
<pre><code class="language-js">// example.js
const { Client } = require(&quot;@company/some-sdk/dist/cjs/index&quot;);
// or
const { Client } = require(&quot;../node_modules/@company/some-sdk/dist/cjs/index&quot;);
</code></pre>
<p> Recommended fix:</p>
<pre><code class="language-js">// example.js
const { Client } = require(&quot;@company/some-sdk&quot;);
</code></pre>
</li>
</ol>
<h2>Action Required</h2>
<p>For API providers using APIMatic generated TypeScript SDKs:</p>
<ul>
<li><p>Review internal integrations: Audit any internal applications, services, or tools that use your TypeScript SDK to ensure they follow the recommended patterns shown above.</p>
</li>
<li><p>Notify your SDK consumers: Share the import pattern examples from this changelog with your SDK users, emphasizing that integrations following TypeScript best practices won&#39;t require any changes.</p>
<p><strong>Timeline: Complete these actions before November 1st, 2025 when the changes take effect.</strong></p>
</li>
</ul>
]]></content:encoded>
      <category>SDKs</category>
      <category>TypeScript</category>
    </item>
    <item>
      <title>CLI: First Beta Release + Improved Messaging &amp; Command Format Update</title>
      <link>https://docs.apimatic.io/changelog/cli-first-beta-release-improved-messaging-topic-separator</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/cli-first-beta-release-improved-messaging-topic-separator</guid>
      <pubDate>Mon, 08 Sep 2025 00:00:00 GMT</pubDate>
      <description>We’re excited to announce the first beta release of the @apimatic/cli — v1.0.0-beta.1! This milestone introduces a more intuitive command experience and sets the stage for future enhancements.</description>
      <content:encoded><![CDATA[<p>We’re excited to announce the first beta release of the <a href="https://www.npmjs.com/package/@apimatic/cli"><code>@apimatic/cli</code></a> — <code>v1.0.0-beta.1</code>! This milestone introduces a more intuitive command experience and sets the stage for future enhancements.</p>
<h2>New Features</h2>
<h3>1. First Beta Release</h3>
<ul>
<li>The CLI is now available as a public beta, bringing streamlined API documentation and SDK generation to your workflow.</li>
</ul>
<h3>2. Improved Command Messaging</h3>
<ul>
<li>All commands now feature enhanced messaging, including clear intros and outros, for a more user-friendly experience.</li>
</ul>
<h3>3. Command Format Update</h3>
<ul>
<li>The default way to separate command topics has changed from a colon <code>:</code> to a space <code> </code>.<ul>
<li>For example: <code>apimatic portal:quickstart</code> → <code>apimatic portal quickstart</code></li>
<li>The old colon separator remains supported for backward compatibility, but all documentation and help sections now use the space separator.</li>
</ul>
</li>
</ul>
<h2>Upgrade Now</h2>
<p>Install the latest CLI from NPM:</p>
<pre><code class="language-bash">npm install -g @apimatic/cli@latest
</code></pre>
<p>For more details and usage examples, check out the <a href="https://www.npmjs.com/package/@apimatic/cli/">official CLI README</a> or visit the <a href="https://github.com/apimatic/apimatic-cli">GitHub Repository</a>.</p>
<p><em>Happy building!</em> 🚀</p>
]]></content:encoded>
      <category>CLI</category>
    </item>
    <item>
      <title>Introducing Proxy Configuration Support in Python SDKs</title>
      <link>https://docs.apimatic.io/changelog/introducing-proxy-configuration-support-python</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/introducing-proxy-configuration-support-python</guid>
      <pubDate>Wed, 03 Sep 2025 00:00:00 GMT</pubDate>
      <description>We’ve added support for configuring proxy servers in the generated Python SDKs.</description>
      <content:encoded><![CDATA[<p>We’ve added support for configuring proxy servers in the generated Python SDKs.</p>
<p>This enhancement enables API requests to be routed through custom proxy servers, making it easier to work within corporate networks, behind firewalls, or in environments where outbound connections must go through a proxy.</p>
<h2>What&#39;s New?</h2>
<p>In many enterprise and secure environments, direct internet access is restricted. With this update, the SDKs now support proxy configuration, allowing you to route requests through a specified proxy server.</p>
<p>Developers can now set up proxy settings during SDK client initialization:</p>
<h3>Applying Proxy Settings</h3>
<p>Configure proxy settings using the <code>ProxySettings</code> instance with properties including address, port, username, and password:</p>
<pre><code class="language-python">client = Client(
    proxy_settings=ProxySettings(
        address=&#39;http://localhost&#39;,
        port=8080,
        username=&#39;admin&#39;,
        password=&#39;password123&#39;
    )
)
</code></pre>
<h3>Available Settings</h3>
<ul>
<li><strong>address</strong> — The full address of the proxy server.</li>
<li><strong>port</strong> — The port on which the proxy server is listening.</li>
<li><strong>username</strong> — The username for proxy authentication.</li>
<li><strong>password</strong> — The password for proxy authentication.</li>
</ul>
<p>Learn more about proxy configuration <a href="https://docs.apimatic.io/generate-sdks/sdk-features/proxy-configuration-support">feature</a></p>
<p>Proxy configuration is also available in other SDKs:</p>
<ul>
<li><a href="https://docs.apimatic.io/v4/changelog#introducing-proxy-configuration-support-ts">TypeScript Changelog</a></li>
<li><a href="https://docs.apimatic.io/v4/changelog#introducing-proxy-configuration-support-cs">.NET Changelog</a></li>
<li><a href="https://docs.apimatic.io/v4/changelog#introducing-proxy-configuration-support-php">PHP Changelog</a></li>
<li><a href="https://docs.apimatic.io/v4/changelog#introducing-proxy-configuration-support-java-ruby">Java Changelog</a></li>
<li><a href="https://docs.apimatic.io/v4/changelog#introducing-proxy-configuration-support-java-ruby">Ruby Changelog</a></li>
</ul>
]]></content:encoded>
      <category>New Feature</category>
      <category>Python</category>
    </item>
    <item>
      <title>Removed javax.* Dependencies in Java Core Package</title>
      <link>https://docs.apimatic.io/changelog/removed-javax-dependencies</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/removed-javax-dependencies</guid>
      <pubDate>Fri, 22 Aug 2025 00:00:00 GMT</pubDate>
      <description>We have eliminated transitive javax.* dependencies from apimatic/core for better compatibility across Java versions.</description>
      <content:encoded><![CDATA[<p>We have eliminated transitive <code>javax.*</code> dependencies from <strong>apimatic/core</strong> for better compatibility across Java versions.</p>
<h2>Details</h2>
<p>A recent issue was reported where the use of <code>javax.*</code> namespaces as transitive dependencies in the <strong>apimatic/core</strong> package caused conflicts when integrating with newer Java environments. This led to problems for downstream consumers of SDKs generated using APIMatic.</p>
<p>To resolve this, we refactored the library to rely on functionality provided by <strong>Jackson</strong>, removing the need for <code>javax.*</code> APIs altogether. Importantly, this change was achieved without migrating to <code>jakarta.*</code> namespaces as suggested <a href="https://jakarta.ee/blogs/javax-jakartaee-namespace-ecosystem-progress/">here</a>, ensuring that the library continues to support <strong>Java 8+</strong>, while maximizing compatibility across multiple Java versions.</p>
<h2>What&#39;s Changed</h2>
<ul>
<li>🚀 Removed usage of <code>javax.*</code> namespaces from <strong>apimatic/core</strong>.</li>
<li>✅ Replaced with Jackson-provided classes and functionality.</li>
<li>🔄 No migration to <code>jakarta.*</code> required.</li>
<li>💡 Maintained support for <strong>Java 8 and above</strong>, ensuring broader SDK usability.</li>
</ul>
]]></content:encoded>
      <category>SDKs</category>
      <category>Java</category>
    </item>
    <item>
      <title>Introducing Proxy Configuration Support in Java and Ruby SDKs</title>
      <link>https://docs.apimatic.io/changelog/introducing-proxy-configuration-support-java-ruby</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/introducing-proxy-configuration-support-java-ruby</guid>
      <pubDate>Wed, 13 Aug 2025 00:00:00 GMT</pubDate>
      <description>We’ve added support for configuring proxy servers in the generated Java and Ruby SDKs.</description>
      <content:encoded><![CDATA[<p>We’ve added support for configuring proxy servers in the generated Java and Ruby SDKs.</p>
<p>This enhancement enables API requests to be routed through custom proxy servers, making it easier to work within corporate networks, behind firewalls, or in environments where outbound connections must go through a proxy.</p>
<h2>What&#39;s New?</h2>
<p>In many enterprise and secure environments, direct internet access is restricted. With this update, the SDKs now support proxy configuration, allowing you to route requests through a specified proxy server.</p>
<p>Developers can now set up proxy settings during SDK client initialization:</p>
<p><strong>Java</strong></p>
<p>Configure proxy settings using <code>httpClientConfig()</code> with <code>HttpProxyConfiguration.Builder</code>:</p>
<pre><code class="language-java">Client client = new Client.Builder()
    .httpClientConfig(configBuilder -&gt; configBuilder
        .proxyConfig(new HttpProxyConfiguration
          .Builder(&quot;http://localhost&quot;, 8080)
            .auth(&quot;username&quot;, &quot;password&quot;)))
    .build();
</code></pre>
<h3>Proxy Configuration Builder</h3>
<ul>
  <li><strong>address</strong> — The full address of the proxy server.</li>
  <li><strong>port</strong> — The port on which the proxy server is listening.</li>
  <li><strong>auth</strong> — Credentials for proxy authentication (username and password).</li>
</ul>

<p><strong>Ruby</strong></p>
<p>Configure proxy settings using the <code>ProxySettings</code> instance with properties including address, port, username, and password:</p>
<pre><code class="language-ruby">client = Client.new(
  proxy_settings: ProxySettings.new(
    address: &#39;http://localhost&#39;,
    port: 8080,
    username: &#39;admin&#39;,
    password: &#39;password123&#39;
  )
)
</code></pre>
<h3>Proxy Settings</h3>
<ul>
  <li><strong>address</strong> — The full address of the proxy server.</li>
  <li><strong>port</strong> — The port on which the proxy server is listening.</li>
  <li><strong>username</strong> — The username for proxy authentication.</li>
  <li><strong>password</strong> — The password for proxy authentication.</li>
</ul>


<p>Learn more about proxy configuration <a href="https://docs.apimatic.io/generate-sdks/sdk-features/proxy-configuration-support">feature</a></p>
<p>Proxy configuration is also available in other SDKs:</p>
<ul>
<li><a href="https://docs.apimatic.io/v4/changelog#introducing-proxy-configuration-support-ts">TypeScript Changelog</a></li>
<li><a href="https://docs.apimatic.io/v4/changelog#introducing-proxy-configuration-support-cs">.NET Changelog</a></li>
<li><a href="https://docs.apimatic.io/v4/changelog#introducing-proxy-configuration-support-php">PHP Changelog</a></li>
</ul>
]]></content:encoded>
      <category>New Feature</category>
      <category>Java</category>
      <category>Ruby</category>
    </item>
    <item>
      <title>Adding Nullable Support in Developer Portal for All Languages</title>
      <link>https://docs.apimatic.io/changelog/nullable-support-in-all-languages</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/nullable-support-in-all-languages</guid>
      <pubDate>Mon, 11 Aug 2025 00:00:00 GMT</pubDate>
      <description>We are excited to introduce support for explicitly marking nullable properties as NULL in the developer portal. This enhancement provides greater flexibility when trying out the API from the API Playground for all languages.</description>
      <content:encoded><![CDATA[<p>We are excited to introduce support for explicitly marking nullable properties as NULL in the developer portal. This enhancement provides greater flexibility when trying out the API from the API Playground for all languages.</p>
<h2>What&#39;s New</h2>
<p>Previously, we <a href="https://docs.apimatic.io/v4/changelog#nullable-support-in-dx-portal-http-java-python">added nullable support in developer Portal for HTTP, Java, and Python</a>. You can now mark nullable properties as <code>NULL</code> in the following languages as well:</p>
<ul>
<li>.NET</li>
<li>PHP</li>
<li>Ruby</li>
<li>Go</li>
<li>Typescript</li>
</ul>
<p>The Developer Portal now includes:</p>
<ul>
<li>Updated code examples showing nullable property usage</li>
<li>Enhanced API reference documentation with <code>NULL</code> value examples</li>
<li>Added support in the API Playground so you can test the API directly from the portal</li>
</ul>
<p><img src="https://docs.apimatic.io/images/changelog/dx-portal-nullable-support-v1.png" alt="Nullable Support in DX Pportal"></p>
]]></content:encoded>
      <category>Improvement</category>
      <category>API Developer Portal</category>
      <category>Nullable Support</category>
      <category>PHP</category>
      <category>C#</category>
      <category>Ruby</category>
      <category>Go</category>
      <category>Typescript</category>
    </item>
    <item>
      <title>Improved SDK Client Initialization Code Samples</title>
      <link>https://docs.apimatic.io/changelog/improved-client-initialization-samples</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/improved-client-initialization-samples</guid>
      <pubDate>Mon, 11 Aug 2025 00:00:00 GMT</pubDate>
      <description>To improve clarity and onboarding, all client initialization code samples now include relevant code blocks along with import statements. This update makes it easier for developers to understand and use the SDKs, eliminating guesswork around class and function origins in docs a...</description>
      <content:encoded><![CDATA[<p>To improve clarity and onboarding, all client initialization code samples now include relevant code blocks along with import statements. This update makes it easier for developers to understand and use the SDKs, eliminating guesswork around class and function origins in docs and READMEs.</p>
<h2>Details</h2>
<p>This change improves consistency and readability across SDKs by showing accurate code blocks based on each language&#39;s package structure. Developers can now copy working snippets without searching for package names, streamlining integration. This changelog is a further continuation of the <a href="https://docs.apimatic.io/v4/changelog#adding-client-initialization-imports">client initialization improvements</a>.</p>
<h2>Client Initialization Samples</h2>
<p>Following are the language specific code samples of a typical <strong>Payment Client</strong>, e.g., configuring a payment client with environment.</p>
<h3>Java</h3>
<p><strong>Before</strong></p>
<pre><code class="language-java">import com.fintech.sdk.Environment;
import com.fintech.sdk.PaymentClient;

PaymentClient client = new PaymentClient.Builder()
    .environment(Environment.SANDBOX)
    .build();
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-java">import com.fintech.sdk.Environment;
import com.fintech.sdk.PaymentClient;

public class Program {
    public static void main(String[] args) {
        PaymentClient client = new PaymentClient.Builder()
            .environment(Environment.SANDBOX)
            .build();
    }
}
</code></pre>
<h3>C#</h3>
<p><strong>Before</strong></p>
<pre><code class="language-csharp">using FintechSdk;

var client = new PaymentClient.Builder()
    .Environment(FintechSdk.Environment.Sandbox)
    .Build();
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-csharp">using FintechSdk;

namespace ConsoleApp;

var client = new PaymentClient.Builder()
    .Environment(FintechSdk.Environment.Sandbox)
    .Build();
</code></pre>
<h3>Ruby</h3>
<p><strong>Before</strong></p>
<pre><code class="language-ruby">client = FintechSdk::Client.new(
  environment: Environment::SANDBOX
)
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-ruby">require &#39;fintech-sdk&#39;
include FintechSdk

client = Client.new(
  environment: Environment::SANDBOX
)
</code></pre>
]]></content:encoded>
      <category>SDKs</category>
      <category>Developer Experience</category>
      <category>Documentation</category>
      <category>Java</category>
      <category>C#</category>
      <category>Ruby</category>
    </item>
    <item>
      <title>Added Filepath Workflow to GitHub App</title>
      <link>https://docs.apimatic.io/changelog/added-github-app-filepath-workflow</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/added-github-app-filepath-workflow</guid>
      <pubDate>Tue, 05 Aug 2025 00:00:00 GMT</pubDate>
      <description>Introducing a more flexible and efficient way to validate your OpenAPI definitions with our GitHub App! The new Filepath Workflow allows you to specify the exact path to your main OpenAPI file, making it easier to manage and validate complex or modular API projects. This updat...</description>
      <content:encoded><![CDATA[<p>Introducing a more flexible and efficient way to validate your OpenAPI definitions with our GitHub App! The new Filepath Workflow allows you to specify the exact path to your main OpenAPI file, making it easier to manage and validate complex or modular API projects. This update streamlines the validation process, reduces unnecessary checks, and ensures your API definitions are always up to standard.</p>
<h2>Details</h2>
<p>Previously, our GitHub app supported two workflows for OpenAPI validation:</p>
<ul>
<li><p><strong>No Config File Workflow:</strong><br>If users did not provide any configuration file, the app would automatically validate all OpenAPI files present in the repository. This was a catch-all approach, ensuring nothing was missed, but could be inefficient for large repos or split specifications.</p>
</li>
<li><p><strong>Directory Path Workflow:</strong><br>Users could specify the path to a directory containing their main OpenAPI file in the <code>.apimaticsettings.json</code> config file. The app would then validate the main file in that directory along with all its referenced files. This allowed for more targeted validation but still required the main file to be in a specific folder.</p>
<p>This flow expects your main OpenAPI file and the associated files are available in the directory.</p>
</li>
</ul>
<hr>
<p><strong>File Path Workflow (New &amp; Improved):</strong></p>
<p>With this new approach, you can now specify the exact path to your main OpenAPI file directly in the <code>.apimaticsettings.json</code> configuration file. This is especially useful for projects that use split or modular OpenAPI specifications, where the main file references multiple other files scattered throughout your repository.</p>
<p><img src="https://docs.apimatic.io/v4/images/changelog/filepath-github-app.png" alt="Filepath Workflow Diagram"></p>
<p>Here’s how it works:</p>
<ul>
<li>You add a <code>.apimaticsettings.json</code> file to the root of your repository.</li>
<li>In this file, you specify the path(s) to your main OpenAPI definition file(s) using the <code>OpenAPIDefinitionPaths</code> property.</li>
<li>The GitHub app will then:<ul>
<li>Locate the main OpenAPI file at the path you provided.</li>
<li>Automatically find and validate all files that are referenced (using <code>$ref</code>) from your main file, no matter where they are in your repo.</li>
<li>Ensure that your entire API definition—including all its components, schemas, and referenced files—is validated as a single, cohesive unit.</li>
</ul>
</li>
<li>This workflow is ideal for teams who maintain large, complex APIs with definitions split across multiple files and folders.</li>
</ul>
<p><strong>Example <code>.apimaticsettings.json</code>:</strong></p>
<pre><code class="language-json">{
  &quot;OpenAPIDefinitionPaths&quot;: [
    &quot;MyApi/openapi.yaml&quot;
  ]
}
</code></pre>
<p><strong>Impact:</strong></p>
<ul>
<li>Provides more flexibility and control over which OpenAPI files are validated.</li>
<li>Reduces unnecessary validation runs, speeding up CI workflows.</li>
<li>Ensures only the intended API definitions are checked.</li>
<li>Benefits teams with complex or modular API structures.</li>
<li>Leads to faster feedback and improved API quality.</li>
</ul>
]]></content:encoded>
      <category>New Feature</category>
      <category>Github App</category>
    </item>
    <item>
      <title>Added support for custom components in the API Developer Portal</title>
      <link>https://docs.apimatic.io/changelog/added-support-for-custom-components</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/added-support-for-custom-components</guid>
      <pubDate>Tue, 05 Aug 2025 00:00:00 GMT</pubDate>
      <description>Previously, building UI elements like cards, accordions, or tabs in the API Developer Portal required writing raw HTML, which was not ideal for maintainability and lacked support for built-in theming (e.g., Light, Dark, and Cosmos themes).</description>
      <content:encoded><![CDATA[<p>Previously, building UI elements like cards, accordions, or tabs in the <strong>API Developer Portal</strong> required writing raw HTML, which was not ideal for maintainability and lacked support for built-in <strong>theming</strong> (e.g., Light, Dark, and Cosmos themes).</p>
<p>With this release, we’ve introduced native support for <strong>custom components</strong>, allowing you to create richer, more structured, and theme-consistent documentation without relying on raw HTML.</p>
<h2>Supported Components</h2>
<ul>
<li><strong>Callout</strong>: Highlight important messages with contextual styling options including info, warning, danger, and success states.</li>
<li><strong>Card &amp; Card Group</strong>: Showcase key information in clean, grid-based layouts for organised content presentation.</li>
<li><strong>Tabs</strong>: Organise content into switchable sections for improved navigation and space efficiency.</li>
<li><strong>Code Block Group</strong>: Display code samples across multiple programming languages in organised, tabbed interfaces.</li>
<li><strong>Accordion/Accordion Group</strong>: Create collapsible sections to organise content hierarchically and improve page readability.</li>
<li><strong>Frame</strong>: Embed images with captions and enhanced visual demonstrations.</li>
<li><strong>Video</strong>: Embed videos seamlessly from YouTube and Vimeo platforms.</li>
<li><strong>Mermaid</strong>: Visualise workflows, system architecture, and complex processes through interactive diagrams.</li>
</ul>
<p>These additions are part of our ongoing effort to make the API Developer Portal more dynamic, customizable, and developer-friendly.</p>
<hr>
<h2>How to Use</h2>
<p>Use the new components directly within your markdown using custom tags. Here are a few examples:</p>
<h3>Accordion</h3>
<p><strong>Syntax</strong></p>
<pre><code class="language-md">&lt;Accordion title=&quot;Single Accordion&quot;&gt;
  Click to expand this section and view more details. This area can be used to
  provide extended explanations, examples, or supporting information.
&lt;/Accordion&gt;
</code></pre>
<p><strong>Preview</strong></p>
<p><img src="https://docs.apimatic.io/images/custom-components/single-accordion.png" alt="Single Accordion"></p>
<h3>Accordion Group</h3>
<p><strong>Syntax</strong></p>
<pre><code class="language-md">&lt;AccordionGroup&gt;
  &lt;Accordion title=&quot;Basic Usage&quot;&gt;
    This demonstrates how to use the Accordion custom component in your
    documentation.
  &lt;/Accordion&gt;
  &lt;Accordion title=&quot;Theming Support&quot;&gt;
    Accordions automatically adapt to Light, Dark, and Cosmos themes, ensuring
    visual consistency across the portal.
  &lt;/Accordion&gt;
  &lt;Accordion title=&quot;Nested Components&quot;&gt;
    You can include other custom components like Callouts or Lists inside an
    Accordion for richer content.
  &lt;/Accordion&gt;
&lt;/AccordionGroup&gt;
</code></pre>
<p><strong>Preview</strong></p>
<p><img src="https://docs.apimatic.io/images/custom-components/multiple-accordions.png" alt="Multiple Accordion"></p>
<blockquote>
<p><strong>Info</strong></p>
<p>💡 For full configuration details, see the <a href="https://docs.apimatic.io/platform-api/#/http/guides/generating-on-prem-api-portal/custom-components">API Developer Portal Custom Components Documentation</a>.</p>
</blockquote>
]]></content:encoded>
      <category>Improvement</category>
      <category>New Feature</category>
    </item>
    <item>
      <title>CLI: New copilot command + enhanced portal &amp; sdk commands</title>
      <link>https://docs.apimatic.io/changelog/cli-new-copilot-command-and-build-dir-structure-improvements</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/cli-new-copilot-command-and-build-dir-structure-improvements</guid>
      <pubDate>Tue, 05 Aug 2025 00:00:00 GMT</pubDate>
      <description>We've just released v1.1.0-alpha.18 of the @apimatic/cli , introducing the new API Copilot command and bringing improvements to existing portal, SDK generation, and authentication commands.</description>
      <content:encoded><![CDATA[<p>We&#39;ve just released <code>v1.1.0-alpha.18</code> of the <a href="https://www.npmjs.com/package/@apimatic/cli"><code>@apimatic/cli</code></a> , introducing the new API Copilot command and bringing improvements to existing portal, SDK generation, and authentication commands.</p>
<h2>🚀 New Features</h2>
<h3>1. Portal &amp; Build Directory Enhancements</h3>
<ul>
<li><p><strong>Unified Input Directory Structure</strong></p>
<ul>
<li>All portal commands now use a simplified directory structure which segregates input and outputs into <code>src</code>, <code>portal</code> and <code>sdk</code> directories.</li>
<li>Commands automatically detect the <strong>build directory structure</strong> for improved workflow consistency.</li>
</ul>
</li>
<li><p><strong>Portal Generation Improvements</strong></p>
<ul>
<li>Enhanced <strong>messaging</strong> across portal commands for better user experience.</li>
</ul>
</li>
</ul>
<h3>2. API Copilot Integration</h3>
<ul>
<li><strong>New Portal Command</strong><ul>
<li>Added <code>portal:copilot</code> command to configure <strong>AI-powered assistance</strong> in your API documentation portal.</li>
<li>Integrates <strong>API Copilot</strong> configuration directly into your <code>APIMATIC-BUILD.json</code> file.</li>
</ul>
</li>
</ul>
<p>📄 <a href="https://docs.apimatic.io/apimatic-cli/commands/#configure-api-copilot">Learn more about the Copilot command here.</a></p>
<h3>3. SDK Generation Improvements</h3>
<ul>
<li><strong>Updated Flags and Behavior</strong><ul>
<li>Replaced the <code>--url</code> and <code>--file</code> flags with a new <code>--spec</code> flag whose default value works seamlessly with the new directory structure.</li>
<li>Improved <strong>response handling</strong> for SDK generation.</li>
</ul>
</li>
</ul>
<h3>4. Authentication</h3>
<ul>
<li><strong>Device Login Flow</strong><ul>
<li>Added a <strong>device login flow</strong> for easier authentication through the APIMatic web application.</li>
<li>This replaces the older username and password based authentication for improved security and user experience.</li>
</ul>
</li>
</ul>
<h2>⚡ Upgrade Now</h2>
<p>Install the latest CLI version from NPM:</p>
<pre><code class="language-bash">npm install -g @apimatic/cli
</code></pre>
<p>For more details and usage examples, check out the <a href="https://www.npmjs.com/package/@apimatic/cli/">official CLI README</a> or visit the <a href="https://github.com/apimatic/apimatic-cli">GitHub Repository</a>.</p>
<p><em>Happy building!</em> 🚀</p>
]]></content:encoded>
      <category>CLI</category>
    </item>
    <item>
      <title>Introducing Proxy Configuration Support in TypeScript SDKs</title>
      <link>https://docs.apimatic.io/changelog/introducing-proxy-configuration-support-ts</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/introducing-proxy-configuration-support-ts</guid>
      <pubDate>Mon, 28 Jul 2025 00:00:00 GMT</pubDate>
      <description>We’ve added support for configuring proxy servers in the generated TypeScript SDKs.</description>
      <content:encoded><![CDATA[<p>We’ve added support for configuring proxy servers in the generated TypeScript SDKs.</p>
<p>This new feature allows developers to route API requests through designated proxy servers, improving compatibility with enterprise networks, secure environments, or setups where traffic must pass through a proxy.</p>
<h2>What&#39;s New?</h2>
<p>In many organizations, all outbound traffic is required to go through a proxy for monitoring and security purposes. This release introduces full proxy support, enabling developers to configure the SDK to send HTTP requests via a specified proxy server.</p>
<p>Developers can set proxy details during SDK client initialization using the <code>proxySettings</code> field in httpClientOptions.</p>
<h3>TypeScript SDK Client initialization</h3>
<pre><code class="language-typescript">const client = new Client({
  httpClientOptions: {
    proxySettings: {
      address: &#39;http://localhost&#39;,
      port: 8080,
      auth: {
        username: &#39;admin&#39;,
        password: &#39;password123&#39;
      }
    }
  }
});
</code></pre>
<h3>Proxy Configuration Options</h3>
<ul>
<li><strong>address</strong>: The full address of the proxy server.</li>
<li><strong>port</strong>: The port on which the proxy server is listening.</li>
<li><strong>auth</strong>: Credentials for proxy authentication (username and password).</li>
</ul>
<p>Learn more about proxy configuration <a href="https://docs.apimatic.io/generate-sdks/sdk-features/proxy-configuration-support">feature</a></p>
]]></content:encoded>
      <category>New Feature</category>
      <category>TypeScript</category>
    </item>
    <item>
      <title>Adding Support for Pagination in TypeScript SDKs</title>
      <link>https://docs.apimatic.io/changelog/adding-pagination-support-in-ts</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/adding-pagination-support-in-ts</guid>
      <pubDate>Thu, 24 Jul 2025 00:00:00 GMT</pubDate>
      <description>APIMatic now supports four widely-used pagination strategies in TypeScript SDKs: Offset, Page, Cursor, and Link based pagination. This enhancement provides a seamless and unified way to consume paginated API responses, regardless of the underlying mechanism.</description>
      <content:encoded><![CDATA[<p>APIMatic now supports four widely-used pagination strategies in TypeScript SDKs: Offset, Page, Cursor, and Link based pagination. This enhancement provides a seamless and unified way to consume paginated API responses, regardless of the underlying mechanism.</p>
<h2>Details</h2>
<p>Paginated responses are common in REST APIs to improve performance and manage large datasets. With the pagination support, TypeScript SDKs automatically detect and handle paginated data based on the OpenAPI specification. This removes the need for manual pagination logic and gives developers a consistent interface to work with.</p>
<p>Each pagination type can be enabled independently using the <a href="https://docs.apimatic.io/specification-extensions/swagger-codegen-extensions#pagination-extension">pagination OpenAPI extension</a> in the OpenAPI specification. Each pagination configuration allows customization of request and response fields using JSON Pointers, giving you full control over how pagination is applied for your specific API format.</p>
<h2>Usage Example</h2>
<p>The TypeScript SDK provides a consistent interface across all pagination types. The endpoint function will return an instance of <code>PagedAsyncIterable</code> for asynchronous API calls:</p>
<pre><code class="language-typescript">const page = 1;
const size = 25;
const result = controller.fetchData(page, size);

try {
    // Iterating over items in all the pages.
    for await (const item of result) {
        console.log(item);
    }

    // Iterating over all the pages.
    for await (const page of result.pages) {
        // Iterating over items in the current page.
        for (const item of page.items) {
            console.log(item);
        }
        
        // Extracting paged response body.
        console.log(page.body);
    }
} catch (error) {
    console.log(error);
}
</code></pre>
<p>Regardless of the pagination type used in the API, the SDK standardizes the developer experience:</p>
<ol>
<li><code>result</code> is async iterable and yields all items from all pages.</li>
<li><code>result.pages</code> returns an async iterable for each page object.</li>
<li><code>page.items</code> provides access to items within a specific page.</li>
</ol>
<p>Pagination tokens, page numbers, offsets, or links are automatically managed by the SDK. This makes integration with paginated APIs straightforward, clean, and idiomatic.</p>
<p>Learn more about pagination <a href="https://docs.apimatic.io/generate-sdks/sdk-features/pagination">feature</a></p>
]]></content:encoded>
      <category>New Feature</category>
      <category>SDKs</category>
      <category>Ruby</category>
    </item>
    <item>
      <title>Improved SDK Client Initialization Samples with Imports</title>
      <link>https://docs.apimatic.io/changelog/adding-client-initialization-imports</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/adding-client-initialization-imports</guid>
      <pubDate>Thu, 24 Jul 2025 00:00:00 GMT</pubDate>
      <description>To improve clarity and onboarding, all client initialization code samples now include relevant import statements. This update makes it easier for developers to understand and use the SDKs, eliminating guesswork around class and function origins in docs and READMEs.</description>
      <content:encoded><![CDATA[<p>To improve clarity and onboarding, all client initialization code samples now include relevant import statements. This update makes it easier for developers to understand and use the SDKs, eliminating guesswork around class and function origins in docs and READMEs.</p>
<h2>Details</h2>
<p>This change improves consistency and readability across SDKs by showing accurate imports based on each language&#39;s package structure. Developers can now copy working snippets without searching for package names, streamlining integration.</p>
<h2>Client Initialization Samples</h2>
<p>Following are the language specific code samples of a typical <strong>Payment Client</strong>, e.g., configuring a payment client with environment.</p>
<h3>Java</h3>
<p><strong>Before</strong></p>
<pre><code class="language-java">PaymentClient client = new PaymentClient.Builder()
    .environment(Environment.SANDBOX)
    .build();
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-java">import com.fintech.sdk.Environment;
import com.fintech.sdk.PaymentClient;

PaymentClient client = new PaymentClient.Builder()
    .environment(Environment.SANDBOX)
    .build();
</code></pre>
<h3>Python</h3>
<p><strong>Before</strong></p>
<pre><code class="language-python">client = PaymentClient(
    environment=Environment.SANDBOX
)
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-python">from fintechsdk.configuration import Environment
from fintechsdk.payment_client import PaymentClient

client = PaymentClient(
    environment=Environment.SANDBOX
)
</code></pre>
<h3>C#</h3>
<p><strong>Before</strong></p>
<pre><code class="language-csharp">var client = new PaymentClient.Builder()
    .Environment(Environment.Sandbox)
    .Build();
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-csharp">using FintechSdk;

var client = new PaymentClient.Builder()
    .Environment(FintechSdk.Environment.Sandbox)
    .Build();
</code></pre>
<h3>Golang</h3>
<p><strong>Before</strong></p>
<pre><code class="language-go">client := fintechsdk.NewClient(
    fintechsdk.CreateConfiguration(
        fintechsdk.WithEnvironment(fintechsdk.SANDBOX),
    ),
)
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-go">package main

import (
    &quot;fintechsdk&quot;
)

func main() {
    client := fintechsdk.NewClient(
        fintechsdk.CreateConfiguration(
            fintechsdk.WithEnvironment(fintechsdk.SANDBOX),
        ),
    )
}
</code></pre>
<h3>TypeScript</h3>
<p><strong>Before</strong></p>
<pre><code class="language-ts">const client = new Client({
    environment: Environment.Sandbox
});
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-ts">import { Client, Environment } from &#39;fintech-sdk&#39;;

const client = new Client({
    environment: Environment.Sandbox
});
</code></pre>
<h3>PHP</h3>
<p><strong>Before</strong></p>
<pre><code class="language-php">$client = PaypalServerSdkClientBuilder::init()
    -&gt;environment(Environment::SANDBOX)
    -&gt;build();
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-php">use FintechSdk\Environment;
use FintechSdk\PaymentClientBuilder;

$client = PaymentClientBuilder::init()
    -&gt;environment(Environment::SANDBOX)
    -&gt;build();
</code></pre>
]]></content:encoded>
      <category>SDKs</category>
      <category>Developer Experience</category>
      <category>Documentation</category>
      <category>Java</category>
      <category>Python</category>
      <category>C#</category>
      <category>Go</category>
      <category>TypeScript</category>
      <category>PHP</category>
    </item>
    <item>
      <title>Adding Nullable Support in Developer Portal for HTTP, Java, and Python</title>
      <link>https://docs.apimatic.io/changelog/nullable-support-in-dx-portal-http-java-python</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/nullable-support-in-dx-portal-http-java-python</guid>
      <pubDate>Fri, 11 Jul 2025 00:00:00 GMT</pubDate>
      <description>We are excited to introduce support for explicitly marking nullable properties as NULL in the developer portal. This enhancement provides greater flexibility when trying out the API from the API Playground.</description>
      <content:encoded><![CDATA[<p>We are excited to introduce support for explicitly marking nullable properties as NULL in the developer portal. This enhancement provides greater flexibility when trying out the API from the API Playground.</p>
<h2>What&#39;s New</h2>
<p>You can now mark nullable properties as <code>NULL</code> in three languages:</p>
<ul>
<li>HTTP</li>
<li>Java</li>
<li>Python</li>
</ul>
<p>The Developer Portal now includes:</p>
<ul>
<li>Updated code examples showing nullable property usage</li>
<li>Enhanced API reference documentation with <code>NULL</code> value examples</li>
<li>Added support in the API Playground so you can test the API directly from the portal</li>
</ul>
<p><img src="https://docs.apimatic.io/images/changelog/dx-portal-nullable-support-v1.png" alt="Nullable Support in DX Pportal"></p>
<h2>What&#39;s Next</h2>
<p>We&#39;re already working on extending this support to our remaining languages:</p>
<ul>
<li>.NET</li>
<li>PHP</li>
<li>Ruby</li>
<li>Go</li>
<li>Typescript</li>
</ul>
<blockquote>
<p><strong>Info</strong></p>
<p>This release includes initial support in 2 programming languages, enabling early access to the feature while we continue to expand coverage. All existing functionality remains unchanged, and there are no breaking changes to current implementations. Backward compatibility is fully maintained.</p>
</blockquote>
]]></content:encoded>
      <category>Improvement</category>
      <category>API Developer Portal</category>
      <category>Nullable Support</category>
    </item>
    <item>
      <title>🚀 New APIMatic CLI Commands to Build, Serve, and Customize your Developer Portal Experience</title>
      <link>https://docs.apimatic.io/changelog/cli-new-commands-quickstart-serve-recipe-new-toc-new</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/cli-new-commands-quickstart-serve-recipe-new-toc-new</guid>
      <pubDate>Fri, 04 Jul 2025 00:00:00 GMT</pubDate>
      <description>The @apimatic/cli v1.1.0-alpha.11 adds support for quickstarting new portals, generating recipes and TOC files, and live-serving your Docs as Code API documentation with hot reload.</description>
      <content:encoded><![CDATA[<p>We’ve just released <code>v1.1.0-alpha.11</code> of the <a href="https://www.npmjs.com/package/@apimatic/cli"><code>@apimatic/cli</code></a>, bringing powerful new commands that make it easier to create, serve, and customize your API portals using APIMatic&#39;s Docs as Code offering.</p>
<p>Here’s what’s new:</p>
<hr>
<h2>Quickstart</h2>
<p>Get started with your first API Portal using just a single command.</p>
<pre><code class="language-bash">apimatic portal:quickstart
</code></pre>
<p>This command bootstraps a full API Portal project using the standard APIMatic directory structure, perfect for first-time users or rapid prototyping.</p>
<p><strong>Use when</strong>: You want to quickly spin up a new project with everything set-up.</p>
<p>📄 <a href="https://docs.apimatic.io/apimatic-cli/commands/#quickstart">Learn more about the Quickstart command here.</a></p>
<hr>
<h2>Create API Recipes</h2>
<p>Generate an API Recipe file to provide step-by-step guides or workflows for your use cases, tailored to your static API portal build.</p>
<pre><code class="language-bash">apimatic portal:recipe:new --name=&quot;My API Recipe&quot;
</code></pre>
<p>📄 <a href="https://docs.apimatic.io/apimatic-cli/commands/#create-api-recipes">Learn more about the API Recipe command here.</a></p>
<hr>
<h2>Preview Locally</h2>
<p>Generate and live-serve your API Portal with hot reload support.</p>
<pre><code class="language-bash">apimatic portal:serve --port=3000
</code></pre>
<p>🔥 Great for rapid iteration and local previews.</p>
<h2>📄 <a href="https://docs.apimatic.io/apimatic-cli/commands/#preview-locally">Learn more about the Portal Serve command here.</a></h2>
<h2>Generate TOC</h2>
<p>Generate a Table of Contents (TOC) <code>toc.yml</code> file based on your custom content guides and your API definition.</p>
<pre><code class="language-bash">apimatic portal:toc:new
</code></pre>
<p>📄 <a href="https://docs.apimatic.io/apimatic-cli/commands/#generate-a-table-of-contents-toc">Read more about the TOC command here.</a></p>
<hr>
<h2>⚡ Upgrade Now</h2>
<p>Install the latest CLI version from NPM:</p>
<pre><code class="language-bash">npm install -g @apimatic/cli
</code></pre>
<hr>
<p>For more details and usage examples, check out the <a href="https://www.npmjs.com/package/@apimatic/cli/">official CLI README</a> or visit the <a href="https://github.com/apimatic/apimatic-cli">GitHub Repository</a>.</p>
<p><em>Happy building!</em> 🚀</p>
]]></content:encoded>
      <category>New Feature</category>
      <category>APIMatic CLI</category>
      <category>Developer Portal</category>
      <category>Docs-as-Code</category>
    </item>
    <item>
      <title>Java SDK publishing flow updated for Maven Central migration</title>
      <link>https://docs.apimatic.io/changelog/migrating-to-maven-central</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/migrating-to-maven-central</guid>
      <pubDate>Thu, 26 Jun 2025 00:00:00 GMT</pubDate>
      <description>Sonatype has announced the retirement of OSSRH (including oss.sonatype.org and s01.oss.sonatype.org) on June 30, 2025. All Java packages must be published via the Sonatype Central Portal moving forward.</description>
      <content:encoded><![CDATA[<p>Sonatype has announced the retirement of OSSRH (including <code>oss.sonatype.org</code> and <code>s01.oss.sonatype.org</code>) on <strong>June 30, 2025</strong>. All Java packages must be published via the <a href="https://central.sonatype.com">Sonatype Central Portal</a> moving forward.</p>
<p>To support this change, APIMatic has updated the <strong>Java SDK publishing workflow</strong>.</p>
<h2>Details</h2>
<p>The following changes have been made to the Java SDKs and the SDK publishing workflow:</p>
<ul>
<li><strong>Plugin Configuration</strong>: Updated the <code>pom.xml</code> to use <code>central-publishing-maven-plugin</code> in place of legacy OSSRH plugins.</li>
<li><strong>Publishing Status</strong>: Updated the publishing status behavior. A Success status now indicates that Maven Central validation has passed and the package has been delivered to Maven Central. To verify the publishing status, users should check the deployments page on Maven Central.</li>
<li><strong>Authentication Method</strong>: Switched from OSSRH credentials to Central Portal user tokens for publishing authentication.</li>
</ul>
]]></content:encoded>
      <category>SDKs</category>
      <category>Java</category>
    </item>
    <item>
      <title>Adding Support for Pagination in Ruby SDKs</title>
      <link>https://docs.apimatic.io/changelog/adding-pagination-support-in-ruby</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/adding-pagination-support-in-ruby</guid>
      <pubDate>Mon, 23 Jun 2025 00:00:00 GMT</pubDate>
      <description>APIMatic now supports four widely-used pagination strategies in Ruby SDKs: Offset, Page, Cursor, and Link based pagination. This enhancement provides a seamless and unified way to consume paginated API responses, regardless of the underlying mechanism.</description>
      <content:encoded><![CDATA[<p>APIMatic now supports four widely-used pagination strategies in Ruby SDKs: Offset, Page, Cursor, and Link based pagination. This enhancement provides a seamless and unified way to consume paginated API responses, regardless of the underlying mechanism.</p>
<h2>Details</h2>
<p>Paginated responses are common in REST APIs to improve performance and manage large datasets. With the pagination support, Ruby SDKs automatically detect and handle paginated data based on the OpenAPI specification. This removes the need for manual pagination logic and gives developers a consistent interface to work with.</p>
<p>Each pagination type can be enabled independently using the <a href="https://docs.apimatic.io/specification-extensions/swagger-codegen-extensions#pagination-extension">pagination OpenAPI extension</a> in the OpenAPI specification. Each pagination configuration allows customization of request and response fields using JSON Pointers, giving you full control over how pagination is applied for your specific API format.</p>
<h2>Usage Example</h2>
<p>The Ruby SDK provides a consistent interface across all pagination types:</p>
<pre><code class="language-ruby"># Fetching paginated data (parameters may vary depending on pagination type)
result = client.controller.fetch_data(page: 1, size: 25)

# Iterating over all items across pages
begin
  result.each do |item|
    puts item
  end
rescue APIException =&gt; e
  puts &quot;Error occurred: #{e}&quot;
end

# Iterating over pages and their items
begin
  result.pages.each do |page|
    puts &quot;Page body: #{page.data}&quot;  # &#39;data&#39; is used as the deserialized page body
    page.items.each do |item|
      puts item
    end
  end
rescue APIException =&gt; e
  puts &quot;Error occurred: #{e}&quot;
end
</code></pre>
<p>Regardless of the pagination type used in the API, the SDK standardizes the developer experience:</p>
<ol>
<li><code>result</code> is iterable and yields all items from all pages. </li>
<li><code>result.pages</code> returns an iterator for each page object. </li>
<li><code>page.items</code> provides access to items within a specific page.</li>
</ol>
<p>Pagination tokens, page numbers, offsets, or links are automatically managed by the SDK. This makes integration with paginated APIs straightforward, clean, and idiomatic.</p>
<p>Learn more about pagination <a href="https://docs.apimatic.io/generate-sdks/sdk-features/pagination">feature</a></p>
]]></content:encoded>
      <category>New Feature</category>
      <category>SDKs</category>
      <category>Ruby</category>
    </item>
    <item>
      <title>VS Code Extension update to auto-fix individual lint rule violations</title>
      <link>https://docs.apimatic.io/changelog/added-support-for-individual-auto-fixers</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/added-support-for-individual-auto-fixers</guid>
      <pubDate>Mon, 23 Jun 2025 00:00:00 GMT</pubDate>
      <description>Now individual issues can be fixed in the VS Code Extension.</description>
      <content:encoded><![CDATA[<p>​
We’ve just released v1.0.4 of the <a href="https://marketplace.visualstudio.com/items?itemName=apimatic-developers.apimatic-for-vscode">APIMatic VS Code Extension</a>, and it introduces a major developer experience improvement: individual rules auto fixing for validation and linting issues.</p>
<p>​</p>
<h3>What’s New</h3>
<p>Until now, auto fixing applied to the entire API workspace - but with v1.0.4, you now have granular control. You can:</p>
<ul>
<li>Auto fix all instances of a specific violation</li>
<li>Auto fix just a single instance of a violation</li>
</ul>
<p>This gives you full flexibility to resolve issues selectively, instead of applying broad changes across your entire API definition.</p>
<h3>How It Works</h3>
<h4>Auto Fix a Specific Violation</h4>
<ol>
<li>Open the Workspace Validation Summary</li>
<li>Hover over a rule with violations</li>
<li>Click the 💡 icon to auto fix all instances of that violation</li>
</ol>
<p><img src="https://docs.apimatic.io/images/vs-code-extension/docs/auto-fix-violation.png" alt="Auto Fix Violation"></p>
<h4>Auto Fix a Specific Instance</h4>
<ol>
<li>Scroll to the violations list</li>
<li>Hover over a specific occurrence</li>
<li>Click the 💡 icon to apply the fix only to that instance</li>
</ol>
<p><img src="https://docs.apimatic.io/images/vs-code-extension/docs/auto-fix-violation-instance.png" alt="Auto Fix Violation"></p>
<p>These features make it easier than ever to iteratively clean up and improve your OpenAPI definition with precision.</p>
<h3>Learn More</h3>
<p>Check out the <a href="https://docs.apimatic.io/validate-lint-apis/vs-code-apimatic-extension/auto-fixing-api-workspace/">Auto Fixing Guide</a> for step-by-step instructions.</p>
]]></content:encoded>
      <category>New</category>
      <category>VS Code Extension</category>
      <category>Auto Fixing</category>
      <category>OpenAPI Definition</category>
      <category>Fix My OpenAPI</category>
    </item>
    <item>
      <title>Adding Support for llms.txt Generation in Developer Portals</title>
      <link>https://docs.apimatic.io/changelog/introducing-support-for-llms.txt-and-llms-full.txt-in-dx-portals</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/introducing-support-for-llms.txt-and-llms-full.txt-in-dx-portals</guid>
      <pubDate>Thu, 19 Jun 2025 00:00:00 GMT</pubDate>
      <description>We’re excited to announce support for generating llms.txt and llms-full.txt files as part of your developer portal. It enables tools like Cursor, GitHub Copilot, ChatGPT, and Claude to quickly understand your documentation.</description>
      <content:encoded><![CDATA[<p>We’re excited to announce support for generating llms.txt and llms-full.txt files as part of your developer portal. It enables tools like Cursor, GitHub Copilot, ChatGPT, and Claude to quickly understand your documentation.</p>
<h2>What is llms.txt?</h2>
<p><strong>LLMs.txt</strong> is a new web standard that makes your documentation AI-accessible. It provides AI tools with the structured, concise information they need to understand and work with your developer resources effectively. Like <code>sitemap.xml</code> or <code>robots.txt</code>, your <code>llms.txt</code> files generate and update automatically—no setup required.</p>
<h3>llms.txt</h3>
<p>This file contains a summary of your documentation. Each page gets a one-sentence description and a link. AI tools can quickly scan this file to understand what documentation you have and where to find it.</p>
<p>See it in action: <a href="https://apimatic-api-copilot.netlify.app/llms.txt">https://apimatic-api-copilot.netlify.app/llms.txt</a></p>
<h3>llms-full.txt</h3>
<p>This file contains your complete documentation text. It includes everything from your docs, API references, and code examples. AI tools can read this file to get detailed information about your API.</p>
<p>See it in action: <a href="https://apimatic-api-copilot.netlify.app/llms-full.txt">https://apimatic-api-copilot.netlify.app/llms-full.txt</a></p>
<blockquote>
<p><strong>Note</strong></p>
<p>Currently, this support is only available in portals generated via the Docs-as-Code workflow.
<code>llms.txt</code> and <code>llms-full.txt</code> are generated for the default language, as specified in the <code>initialPlatform</code> setting of your build file configuration. If not explicitly set, the default language is HTTP.</p>
</blockquote>
<h2>How to Enable</h2>
<p>In your <code>APIMATIC-BUILD.json</code>, configure the following under <code>generatePortal</code>:</p>
<pre><code>{
  &quot;generatePortal&quot;: {
    &quot;baseUrl&quot;: &quot;your-base-url&quot;,
    &quot;llmsContextGeneration&quot;: {
      &quot;enable&quot;: true
    }
  }
}
</code></pre>
<p>To learn more, see the <a href="https://docs.apimatic.io/platform-api/#/http/guides/generating-on-prem-api-portal/build-file-reference/generateportal-llmscontextgeneration">LLMS context generation reference</a>.</p>
]]></content:encoded>
      <category>New Feature</category>
      <category>Developer Portal</category>
      <category>AI</category>
    </item>
    <item>
      <title>Adding Support for Pagination in .NET SDKs</title>
      <link>https://docs.apimatic.io/changelog/adding-pagination-support-in-csharp-sdk</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/adding-pagination-support-in-csharp-sdk</guid>
      <pubDate>Thu, 19 Jun 2025 00:00:00 GMT</pubDate>
      <description>APIMatic now supports four widely-used pagination strategies in .NET SDKs: Offset, Page, Cursor, and Link based pagination. This enhancement provides a seamless and unified way to consume paginated API responses, regardless of the underlying mechanism.</description>
      <content:encoded><![CDATA[<p>APIMatic now supports four widely-used pagination strategies in .NET SDKs: Offset, Page, Cursor, and Link based pagination. This enhancement provides a seamless and unified way to consume paginated API responses, regardless of the underlying mechanism.</p>
<h2>Details</h2>
<p>Paginated responses are common in REST APIs to improve performance and manage large datasets. With pagination support, .NET SDKs automatically detect and handle paginated data based on the OpenAPI specification. This removes the need for manual pagination logic and gives developers a consistent interface to work with.</p>
<p>Each pagination type can be enabled independently using the <a href="https://docs.apimatic.io/specification-extensions/swagger-codegen-extensions#pagination-extension">pagination OpenAPI extension</a> in the OpenAPI specification. Each pagination configuration allows customization of request and response fields using JSON Pointers, giving you full control over how pagination is applied for your specific API format.</p>
<h2>Usage Example</h2>
<p>The .NET SDK provides a consistent interface across all pagination types.</p>
<p><strong>Async</strong></p>
<p>For asynchronous API calls, the endpoint function will return an instance of <code>AsyncPageable</code>.</p>
<pre><code class="language-csharp">int? page = 1;
int? size = 25;
try
{
    AsyncPageable&lt;TItem, BasePagedResponse&lt;TItem, TPage&gt;&gt; result = controller.FetchDataAsync(
        page,
        size
    );

    // Iterating over items in all the pages.
    await foreach (var item in result)
    {
        Console.WriteLine(item);
    }

    // Iterating over all the pages.
    await foreach (var pagedResponse in result.GetPagesAsync())
    {
        // Iterating over items in the current page.
        foreach (var item in pagedResponse.Items)
        {
            Console.WriteLine(item);
        }
        // Extracting paged response body.
        Console.WriteLine(pagedResponse.Data);
    }
}
catch (ApiException e)
{
    // Handle exceptions such as API errors or connectivity issues.
    Console.WriteLine(e.Message);
}
</code></pre>
<p>Regardless of the pagination type used in the API, the SDK standardizes the developer experience:</p>
<ol>
<li><code>result</code> is <code>IAsyncEnumerable&lt;TItem&gt;</code>. It yields all items from all pages asynchronously.</li>
<li><code>result.GetPagesAsync()</code> is <code>IAsyncEnumerable&lt;BasePagedResponse&lt;TItem, TPage&gt;&gt;</code>. It yields all pages along with their metadata asynchronously.</li>
</ol>
<p><strong>Sync</strong></p>
<p>For synchronous API calls, the endpoint function will return an instance of <code>Pageable</code>.</p>
<pre><code class="language-csharp">int? page = 1;
int? size = 25;
try
{
    Pageable&lt;TItem, BasePagedResponse&lt;TItem, TPage&gt;&gt; result = controller.FetchData(
        page,
        size
    );

    // Iterating over items in all the pages.
    foreach (var item in result)
    {
        Console.WriteLine(item);
    }

    // Iterating over all the pages.
    foreach (var pagedResponse in result.GetPagesAsync())
    {
        // Iterating over items in the current page.
        foreach (var item in pagedResponse.Items)
        {
            Console.WriteLine(item);
        }
        // Extracting paged response body.
        Console.WriteLine(pagedResponse.Data);
    }
}
catch (ApiException e)
{
    // Handle exceptions such as API errors or connectivity issues.
    Console.WriteLine(e.Message);
}
</code></pre>
<p>Regardless of the pagination type used in the API, the SDK standardizes the developer experience:</p>
<ol>
<li><code>result</code> is <code>IEnumerable&lt;TItem&gt;</code>. It yields all items from all pages synchronously.</li>
<li><code>result.GetPages()</code> is <code>IEnumerable&lt;BasePagedResponse&lt;TItem, TPage&gt;&gt;</code>. It yields all pages along with their metadata synchronously.</li>
</ol>
<p>Pagination tokens, page numbers, offsets, or links are automatically managed by the SDK. This makes integration with paginated APIs straightforward and clean.</p>
<p>Learn more about pagination <a href="https://docs.apimatic.io/generate-sdks/sdk-features/pagination">feature</a></p>
]]></content:encoded>
      <category>New Feature</category>
      <category>SDKs</category>
      <category>.NET</category>
    </item>
    <item>
      <title>Adding Support for Pagination in Java SDKs</title>
      <link>https://docs.apimatic.io/changelog/adding-pagination-support-in-java</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/adding-pagination-support-in-java</guid>
      <pubDate>Fri, 13 Jun 2025 00:00:00 GMT</pubDate>
      <description>APIMatic now supports four widely-used pagination strategies in Java SDKs: Offset, Page, Cursor, and Link based pagination. This enhancement provides a seamless and unified way to consume paginated API responses, regardless of the underlying mechanism.</description>
      <content:encoded><![CDATA[<p>APIMatic now supports four widely-used pagination strategies in Java SDKs: Offset, Page, Cursor, and Link based pagination. This enhancement provides a seamless and unified way to consume paginated API responses, regardless of the underlying mechanism.</p>
<h2>Details</h2>
<p>Paginated responses are common in REST APIs to improve performance and manage large datasets. With the pagination support, Java SDKs automatically detect and handle paginated data based on the OpenAPI specification. This removes the need for manual pagination logic and gives developers a consistent interface to work with.</p>
<p>Each pagination type can be enabled independently using the <a href="https://docs.apimatic.io/specification-extensions/swagger-codegen-extensions#pagination-extension">pagination OpenAPI extension</a> in the OpenAPI specification. Each pagination configuration allows customization of request and response fields using JSON Pointers, giving you full control over how pagination is applied for your specific API format.</p>
<h2>Usage Example</h2>
<p><strong>Async</strong></p>
<p>The Java SDK provides a consistent interface across all pagination types. The endpoint function will return an instance of <code>PagedFlux</code> for asynchronous API calls.</p>
<pre><code class="language-java">Integer page = 1;
Integer size = 25;
PagedFlux&lt;Item, PagedResponse&lt;Item, Page&gt;&gt; result = controller.fetchDataAsync(page, size);

// Iterating over items in all the pages.
result.subscribe(
    item -&gt; System.out.println(item),
    error -&gt; _error.printStackTrace());

// Iterating over all the pages.
result.pages().subscribe(
    pagedResponse -&gt; {
        // Iterating over items in the current page.
        pagedResponse.getItems().forEach(item -&gt; System.out.println(item));

        // Extracting paged response body.
        System.out.println(pagedResponse.getResult());
    },
    error -&gt; _error.printStackTrace());
</code></pre>
<p>Regardless of the pagination type used in the API, the SDK standardizes the developer experience:</p>
<ol>
<li><code>result</code> is <code>Flux&lt;I&gt;</code>, where <code>I</code> represents <code>Item</code>. It yeilds all items from all pages asynchronously.</li>
<li><code>result.pages()</code> is <code>Flux&lt;P&gt;</code>, where <code>P</code> represents <code>PagedResponse&lt;Item, Page&gt;</code>. It yeilds all pages along with their meta data asynchronously.</li>
</ol>
<p><strong>Sync</strong></p>
<p>The Java SDK provides a consistent interface across all pagination types. The endpoint function will return an instance of <code>PagedIterable</code> for synchronous API calls.</p>
<pre><code class="language-java">Integer page = 1;
Integer size = 25;
PagedIterable&lt;Item, PagedResponse&lt;Item, Page&gt;&gt; result = controller.fetchData(page, size);

try {
    // Iterating over items in all the pages.
    for (PagedSupplier&lt;Item&gt; itemSupplier : result) {
        System.out.println(itemSupplier.get());
    }
} catch (ApiException | IOException e) {
    e.printStackTrace();
}

try {
    // Iterating over all the pages.
    for (PagedSupplier&lt;PagedResponse&lt;Item, Page&gt;&gt; pageSupplier : result.pages()) {
        PagedResponse&lt;Item, Page&gt; pagedResponse = pageSupplier.get();
        // Iterating over items in the current page.
        pagedResponse.getItems().forEach(item -&gt; System.out.println(item));

        // Extracting paged response body.
        System.out.println(pagedResponse.getResult());
    }
} catch (ApiException | IOException e) {
    e.printStackTrace();
}
</code></pre>
<p>Regardless of the pagination type used in the API, the SDK standardizes the developer experience:</p>
<ol>
<li><code>result</code> is <code>Iterable&lt;I&gt;</code>, where <code>I</code> represents a <code>PagedSupplier</code> of <code>Item</code>. It yields all items from all pages synchronously.</li>
<li><code>result.pages()</code> is <code>Iterable&lt;P&gt;</code>, where <code>P</code> represents a <code>PagedSupplier</code> of <code>PagedResponse&lt;Item, Page&gt;</code>. It yields all pages along with their meta data synchronously.</li>
</ol>
<p>Pagination tokens, page numbers, offsets, or links are automatically managed by the SDK. This makes integration with paginated APIs straightforward and clean.</p>
<p>Learn more about pagination <a href="https://docs.apimatic.io/generate-sdks/sdk-features/pagination">feature</a></p>
]]></content:encoded>
      <category>New Feature</category>
      <category>SDKs</category>
      <category>Java</category>
    </item>
    <item>
      <title>Added Support for Customizing the Left Navigation Bar</title>
      <link>https://docs.apimatic.io/changelog/revamp-sidebar</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/revamp-sidebar</guid>
      <pubDate>Mon, 02 Jun 2025 00:00:00 GMT</pubDate>
      <description>You can now customize the behavior and appearance of the Left Navigation Bar in your developer portal. The new options include two navigation modes and three layout variations that give you more control over how navigation is structured and displayed.</description>
      <content:encoded><![CDATA[<p>You can now customize the behavior and appearance of the Left Navigation Bar in your developer portal. The new options include two navigation modes and three layout variations that give you more control over how navigation is structured and displayed.</p>
<h2>What’s New</h2>
<p>The Left Navigation Bar now supports:</p>
<ul>
<li><strong>Two navigation modes</strong></li>
<li><strong>Three layout variations</strong></li>
</ul>
<p>These settings work together to define both how top-level items are grouped and how first-level sections behave when the page loads.</p>
<h3>Navigation Modes</h3>
<ul>
<li><p><code>standard</code>: Displays all navigation items in a vertical list, including nested levels.</p>
</li>
<li><p><code>dropdown</code>: Groups top-level (level 0) navigation items in a dropdown menu. Child items are shown based on the selected item.</p>
</li>
</ul>
<h3>Layout Variations</h3>
<p>Layout variations define the <strong>on-load behavior of first-level sections</strong> (the sections nested under top-level items):</p>
<ul>
<li><p><code>basic</code>: All first-level sections are visible and not collapsible.</p>
</li>
<li><p><code>expanded</code>: All first-level sections are visible and can be collapsed by the user.</p>
</li>
<li><p><code>collapsed</code>: All first-level sections are collapsed by default and can be expanded by the user.</p>
</li>
</ul>
<blockquote>
<p><strong>Note</strong></p>
<p>These options are only supported in the <strong>theme configuration</strong>. They are <strong>not available with <code>themeOverrides</code></strong>.</p>
</blockquote>
<h2>Sidebar Layout Previews</h2>
<h3>Standard Mode</h3>
<p><strong>Basic</strong></p>
<p><img src="https://docs.apimatic.io/images/changelog/sidebar/standard-basic.png" alt="Standard Basic UI"></p>
<p><strong>Expanded</strong></p>
<p><img src="https://docs.apimatic.io/images/changelog/sidebar/standard-expanded.png" alt="Standard Expanded UI"></p>
<p><strong>Collapsed</strong></p>
<p><img src="https://docs.apimatic.io/images/changelog/sidebar/standard-collapsed.png" alt="Standard Collapsed UI"></p>
<h3>Dropdown Mode</h3>
<p><strong>Basic</strong></p>
<p><img src="https://docs.apimatic.io/images/changelog/sidebar/dropdown-basic.png" alt="Dropdown Basic UI"></p>
<p><strong>Expanded</strong></p>
<p><img src="https://docs.apimatic.io/images/changelog/sidebar/dropdown-expanded.png" alt="Dropdown Expanded UI"></p>
<p><strong>Collapsed</strong></p>
<p><img src="https://docs.apimatic.io/images/changelog/sidebar/dropdown-collapsed.png" alt="Dropdown Collapsed UI"></p>
<h2>Configuration Example</h2>
<p>Use the following structure to configure the Left Navigation Bar in your portal theme:</p>
<pre><code class="language-js">theme: {
  layout: {
    sidebar: {
      mode: &quot;standard&quot;, // or &quot;dropdown&quot;
      variation: &quot;basic&quot; // or &quot;expanded&quot;, &quot;collapsed&quot;
    }
  }
}
</code></pre>
<p>For full configuration details, see the  <a href="https://docs.apimatic.io/platform-api/#/http/guides/generating-on-prem-api-portal/build-file-reference/generateportal-portalsettings-theme-layout">theme layout configuration reference</a>.</p>
<h2>Deprecation Notice</h2>
<p>The <code>portalSettings.sideMenuTitleBehavior</code> flag is now deprecated. It was previously used to control the collapsed state of top-level navigation items.</p>
<p>You should now use:</p>
<ul>
<li><code>theme.layout.sidebar.mode</code></li>
<li><code>theme.layout.sidebar.variation</code></li>
</ul>
<p>Update your configuration to ensure consistency and to take advantage of the new behavior options.</p>
]]></content:encoded>
      <category>Improvement</category>
      <category>Developer Portal</category>
      <category>Left Nav Bar</category>
    </item>
    <item>
      <title>Introducing Support for Layout Configuration in Portal</title>
      <link>https://docs.apimatic.io/changelog/dynamic-layout</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/dynamic-layout</guid>
      <pubDate>Mon, 02 Jun 2025 00:00:00 GMT</pubDate>
      <description>You can now configure layout within the theme object of your portal. This gives you precise, declarative control over container alignment and maximum width—enabling cleaner, more responsive layouts with minimal effort.</description>
      <content:encoded><![CDATA[<h1>Portal Layout Configuration</h1>
<p>You can now configure layout within the <code>theme</code> object of your portal. This gives you precise, declarative control over container alignment and maximum width—enabling cleaner, more responsive layouts with minimal effort.</p>
<blockquote>
<p><strong>Note</strong></p>
<p>This feature is only available inside the <code>theme</code> object. Layout definitions in the legacy <code>themeOverrides</code> object are <strong>not supported</strong>.</p>
</blockquote>
<h2>Purpose</h2>
<p>The <code>layout</code> object exists to:</p>
<ul>
<li>Set <strong>maximum widths</strong> for layout containers.</li>
<li>Define <strong>horizontal alignment</strong> for content (<code>left</code> or <code>center</code>).</li>
<li>Create <strong>visually balanced, readable layouts</strong> for desktop users.</li>
</ul>
<h2>How to Use It</h2>
<h3>Enable Layout Configuration</h3>
<p>To activate layout control, define a <code>layout</code> object under <code>theme</code>:</p>
<pre><code class="language-js">theme: {
  layout: {
    mainContainer: {
      maxWidth: &#39;1250px&#39;, // or &#39;80rem&#39;
      align: &#39;center&#39;,    // or &#39;left&#39;
    },
    content: {
      maxWidth: &#39;700px&#39;,  // or &#39;44rem&#39;
      align: &#39;left&#39;,      // or &#39;center&#39;
    },
  }
}
</code></pre>
<p>For full configuration details, see the <a href="https://docs.apimatic.io/platform-api/#/http/guides/generating-on-prem-api-portal/build-file-reference/generateportal-portalsettings-theme-layout">theme layout configuration reference</a>.</p>
<p>These settings are optimized for <strong>desktop viewports</strong> and are not applied on tablets and smaller devices to ensure the best experience across screen sizes.</p>
<h3>Examples:</h3>
<p>Below are the four different alignment variations applied while the <code>mainContainer</code> has a <code>maxWidth</code> of <strong>1250px</strong> and the <code>content</code> has a <code>maxWidth</code> of <strong>700px</strong>.</p>
<h5>mainContainer = left</h5>
<p>The <code>mainContainer</code> is aligned to <code>left</code>.</p>
<p><strong>Content : Left</strong></p>
<p><img src="https://docs.apimatic.io/images/changelog/layout-alignment-left-left.png" alt="left-left"></p>
<p><strong>Content : Center</strong></p>
<p><img src="https://docs.apimatic.io/images/changelog/layout-alignment-left-center.png" alt="left-left"></p>
<h5>mainContainer = center</h5>
<p>The <code>mainContainer</code> is aligned to <code>center</code>.</p>
<p><strong>Content : Left</strong></p>
<p><img src="https://docs.apimatic.io/images/changelog/layout-alignment-center-left.png" alt="center-left"></p>
<p><strong>Content : Center</strong></p>
<p><img src="https://docs.apimatic.io/images/changelog/layout-alignment-center-center.png" alt="center-center"></p>
]]></content:encoded>
      <category>Dynamic Width</category>
      <category>New Feature</category>
      <category>Layout Configuration</category>
    </item>
    <item>
      <title>Adding Support for Pagination in Python SDKs</title>
      <link>https://docs.apimatic.io/changelog/adding-pagination-support-in-python-sdks</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/adding-pagination-support-in-python-sdks</guid>
      <pubDate>Thu, 29 May 2025 00:00:00 GMT</pubDate>
      <description>APIMatic now supports four widely-used pagination strategies in Python SDKs: Offset, Page, Cursor, and Link based pagination. This enhancement provides a seamless and unified way to consume paginated API responses, regardless of the underlying mechanism.</description>
      <content:encoded><![CDATA[<p>APIMatic now supports four widely-used pagination strategies in Python SDKs: Offset, Page, Cursor, and Link based pagination. This enhancement provides a seamless and unified way to consume paginated API responses, regardless of the underlying mechanism.</p>
<h2>Details</h2>
<p>Paginated responses are common in REST APIs to improve performance and manage large datasets. With the pagination support, Python SDKs automatically detect and handle paginated data based on the OpenAPI specification. This removes the need for manual pagination logic and gives developers a consistent interface to work with.</p>
<p>Each pagination type can be enabled independently using the <a href="https://docs.apimatic.io/specification-extensions/swagger-codegen-extensions#pagination-extension">pagination OpenAPI extension</a> in the OpenAPI specification. Each pagination configuration allows customization of request and response fields using JSON Pointers, giving you full control over how pagination is applied for your specific API format.</p>
<h2>Usage Example</h2>
<p>The Python SDK provides a consistent interface across all pagination types:</p>
<pre><code class="language-python"># Fetching paginated data (parameters may vary depending on pagination type)
result = client.controller.fetch_data(page=1, size=25)

# Iterating over all items across pages
try:
    for item in result:
        print(item)
except APIException as e:
    print(f&quot;Error occurred: {e}&quot;)

# Iterating over pages and their items
try:
    for page in result.pages():
        print(&quot;Page body:&quot;, page.body)
        for item in page.items():
            print(&quot;Item:&quot;, item)
except APIException as e:
    print(f&quot;Error occurred: {e}&quot;)
</code></pre>
<p>Regardless of the pagination type used in the API, the SDK standardizes the developer experience:</p>
<ol>
<li><code>result</code> is iterable and yields all items from all pages. </li>
<li><code>result.pages()</code> returns an iterator for each page object. </li>
<li><code>page.items()</code> provides access to items within a specific page.</li>
</ol>
<p>Pagination tokens, page numbers, offsets, or links are automatically managed by the SDK. This makes integration with paginated APIs straightforward, clean, and Pythonic.</p>
<p>Learn more about pagination <a href="https://docs.apimatic.io/generate-sdks/sdk-features/pagination">feature</a></p>
]]></content:encoded>
      <category>New Feature</category>
      <category>SDKs</category>
      <category>Python</category>
    </item>
    <item>
      <title>Source Code publishing without tags</title>
      <link>https://docs.apimatic.io/changelog/source-code-publishing-without-tags</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/source-code-publishing-without-tags</guid>
      <pubDate>Thu, 22 May 2025 12:09:51 GMT</pubDate>
      <description>Summarizes updates to line endings, TOC path handling, and error responses in the Docs as Code endpoint.</description>
      <content:encoded><![CDATA[<p>The latest update allows publishing source code without tags using an existing profile, with improved log visibility. It also enables source code publishing alongside language configurations without requiring changes to package publishing settings, streamlining the process. Additionally, the retention period for logs and generated SDKs has been significantly extended.</p>
<h3>New Features</h3>
<ul>
<li><p><strong>Source Code-Only Publishing Without Tags</strong><br> Added support for publishing <em>only</em> source code without requiring tags.</p>
<ul>
<li><p>A new button is available to publish source code without a tag using an existing profile.</p>
<p><img src="https://docs.apimatic.io/v4/images/changelog/publish-source-code-without-tags-button.png" alt="alt text"></p>
</li>
<li><p><strong>Logs</strong>: log message <code>Skipping tags or No tag provided</code> will be shown when tags aren&#39;t used.</p>
<p><img src="https://docs.apimatic.io/v4/images/changelog/publish-source-code-without-tags-logs.png" alt="alt text"></p>
</li>
<li><p>Source code can now be published with language (package) configurations without needing to disable package publishing for each language in the publishing profile. This ensures better parity and a smoother publishing experience.</p>
</li>
</ul>
</li>
</ul>
<h3>Improvements</h3>
<ul>
<li><p><strong>Extended Retention Period</strong></p>
<ul>
<li>The retention period for logs has been increased from <strong>90 days</strong> to <strong>360 days</strong>.</li>
<li>The retention period for generated SDK (downloadable from logs) has been increased from <strong>90 days</strong> to <strong>360 days</strong>.</li>
</ul>
</li>
</ul>
]]></content:encoded>
      <category>SDK Publishing</category>
    </item>
    <item>
      <title>Docs as Code Updates: LF Line Endings, Better Errors</title>
      <link>https://docs.apimatic.io/changelog/docs-as-code-updates-line-endings-and-better-errors</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/docs-as-code-updates-line-endings-and-better-errors</guid>
      <pubDate>Tue, 20 May 2025 12:09:51 GMT</pubDate>
      <description>Summarizes updates to line endings, TOC path handling, and error responses in the Docs as Code endpoint.</description>
      <content:encoded><![CDATA[<p>We’ve upgraded the underlying infrastructure of our <strong>Docs as Code</strong> API to improve its performance. We&#39;ve also shipped several improvements related to error messages to streamline your CI/CD pipelines and make troubleshooting easier. Below you’ll find a quick overview of what’s changed and how to adapt your integrations.</p>
<h2>Line Endings</h2>
<p>We now standardize on LF (<code>\n</code>) for all generated files inside the ZIP archive.</p>
<ul>
<li><p><strong>What changed</strong>  </p>
<ul>
<li>Previously, output files used CRLF (<code>\r\n</code>).  </li>
<li>Going forward, every file will end with Unix-style LF only.</li>
</ul>
</li>
<li><p><strong>Action required</strong>  </p>
<ul>
<li>Ensure your scripts or diff tools expect LF endings.</li>
</ul>
</li>
</ul>
<h2>TOC File Path Handling</h2>
<p>We tightened path validations to avoid cross-platform inconsistencies.</p>
<ul>
<li><p><strong>Case sensitivity</strong>  </p>
<ul>
<li>All file path references in your TOC files are now <strong>case-sensitive</strong>.</li>
<li><code>docs/Getting-Started.md</code> ≠ <code>docs/getting-started.md</code>.</li>
</ul>
</li>
<li><p><strong>Separator enforcement</strong>  </p>
<ul>
<li>Only forward slashes (<code>/</code>) are allowed.</li>
</ul>
<pre><code class="language-yaml"> # Valid TOC entry
 - page: Getting Started
   file: docs/getting-started.md
</code></pre>
</li>
</ul>
<h2>Error Handling Changes</h2>
<p>We now return more precise HTTP status codes and structured JSON bodies for common failure scenarios.</p>
<h3>400 Bad Request</h3>
<p>Returned on input validation failures</p>
<pre><code class="language-json">{
  &quot;type&quot;: &quot;https://tools.ietf.org/html/rfc7231#section-6.5.1&quot;,
  &quot;title&quot;: &quot;One or more validation errors occurred.&quot;,
  &quot;status&quot;: 400,
  &quot;detail&quot;: &quot;One or more validation failures have occurred&quot;,
  &quot;instance&quot;: &quot;/api/portal/v2&quot;,
  &quot;errors&quot;: {
    &quot;&quot;: [
      &quot;Build file not found&quot;
    ]
  }
}
</code></pre>
<h3>401 Unauthorized</h3>
<p>Returned when authentication credentials are missing or invalid.</p>
<pre><code class="language-json">{
  &quot;message&quot;: &quot;Authorization has been denied for this request.&quot;
}
</code></pre>
<h3>403 Forbidden</h3>
<p>Returned when the request is authenticated but lacks feature access.</p>
<pre><code class="language-json">{
  &quot;type&quot;: &quot;https://datatracker.ietf.org/doc/html/rfc7231#section-6.5.3&quot;,
  &quot;title&quot;: &quot;Access denied to resource.&quot;,
  &quot;status&quot;: 403,
  &quot;detail&quot;: &quot;Requested features are not available in subscription&quot;,
  &quot;instance&quot;: &quot;/api/portal&quot;,
  &quot;errors&quot;: {
    &quot;&quot;: [
      &quot;Unsupported languages provided in build file &#39;CS_NET_STANDARD_LIB&#39;&quot;
    ]
  }
}
</code></pre>
<h3>422 Unprocessable Entity</h3>
<p>Returned for build-time errors in your spec or TOC. The response includes an <code>error.zip</code> archive which contains an error report.</p>
]]></content:encoded>
      <category>Docs-as-Code</category>
    </item>
    <item>
      <title>Introducing Proxy Configuration Support in .NET SDKs</title>
      <link>https://docs.apimatic.io/changelog/introducing-proxy-configuration-support-cs</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/introducing-proxy-configuration-support-cs</guid>
      <pubDate>Mon, 19 May 2025 00:00:00 GMT</pubDate>
      <description>We’ve added support for configuring proxy servers in the generated .NET SDKs.</description>
      <content:encoded><![CDATA[<p>We’ve added support for configuring proxy servers in the generated .NET SDKs.</p>
<p>This enhancement enables API requests to be routed through custom proxy servers, making it easier to work within corporate networks, behind firewalls, or in environments where outbound connections must go through a proxy.</p>
<h2>What&#39;s New?</h2>
<p>In many enterprise and secure environments, direct internet access is restricted. With this update, .NET SDKs now support proxy configuration, allowing you to route requests through a specified proxy server.</p>
<p>Developers can set up proxy settings during SDK client initialization using the ProxyConfigurationBuilder.</p>
<h3>.NET SDK Client initialization</h3>
<pre><code class="language-csharp">var client = new SDKClient.Builder()
    .HttpClientConfig(config =&gt; config
        .Proxy(
            new ProxyConfigurationBuilder(&quot;http://localhost&quot;) 
                .Port(8080) 
                .Tunnel(false)  
                .Auth(&quot;username&quot;, &quot;password&quot;) 
        )
    )
    .Build();
</code></pre>
<h3>Proxy Configuration Options</h3>
<ul>
<li><strong>address</strong>: The full address of the proxy server.</li>
<li><strong>port</strong>: The port on which the proxy server is listening.</li>
<li><strong>auth</strong>: Credentials for proxy authentication (username and password).</li>
<li><strong>tunnel</strong>: Indicates whether tunneling should be used for HTTPS requests through the proxy (true or false).</li>
</ul>
<p>Learn more about proxy configuration <a href="https://docs.apimatic.io/generate-sdks/sdk-features/proxy-configuration-support">feature</a></p>
]]></content:encoded>
      <category>New Feature</category>
      <category>.NET</category>
    </item>
    <item>
      <title>Introducing Proxy Configuration Support in PHP SDKs</title>
      <link>https://docs.apimatic.io/changelog/introducing-proxy-configuration-support-php</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/introducing-proxy-configuration-support-php</guid>
      <pubDate>Tue, 22 Apr 2025 00:00:00 GMT</pubDate>
      <description>We've added support for configuring proxy servers in the generated PHP SDKs.</description>
      <content:encoded><![CDATA[<p>We&#39;ve added support for configuring proxy servers in the generated PHP SDKs.</p>
<p>This update allows API requests to be routed through custom proxy servers, enhancing compatibility with corporate network environments, firewalls, or any setup requiring outbound traffic to pass through a proxy.</p>
<h2>What&#39;s New?</h2>
<p>Proxy configuration is essential for many secure and enterprise environments where direct outbound connections are restricted or monitored. This feature introduces the ability to route HTTP requests made by the SDK through a specified proxy server.</p>
<p>Developers can now configure proxy settings during SDK client initialization using the <code>ProxyConfiguration</code> option.</p>
<h3>PHP SDK Client initialization</h3>
<pre><code class="language-php">$client = SdkClientBuilder::init()
    -&gt;proxyConfiguration(
        ProxyConfigurationBuilder::init(address)
            -&gt;port(8080)
            -&gt;auth(&quot;username&quot;, &quot;password&quot;)
            -&gt;authMethod(CURLAUTH_BASIC)
            -&gt;tunnel(false)        
    )
    -&gt;build();
</code></pre>
<h3>Proxy Configuration Options</h3>
<ul>
<li><strong>address</strong>: The full address of the proxy server.</li>
<li><strong>port</strong>: The port on which the proxy server is listening.</li>
<li><strong>auth</strong>: Credentials for proxy authentication (username and password).</li>
<li><strong>authMethod</strong>:  The authentication method used for the proxy (e.g., CURLAUTH_BASIC, CURLAUTH_DIGEST).</li>
<li><strong>tunnel</strong>: Indicates whether tunneling should be used for HTTPS requests through the proxy (true or false).</li>
</ul>
<p>Learn more about proxy configuration <a href="https://docs.apimatic.io/generate-sdks/sdk-features/proxy-configuration-support">feature</a></p>
]]></content:encoded>
      <category>New Feature</category>
      <category>PHP</category>
    </item>
    <item>
      <title>Added Support for New SDK Documentation on Developer Portal</title>
      <link>https://docs.apimatic.io/changelog/added-support-for-additional-sdk-docs-on-portal</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/added-support-for-additional-sdk-docs-on-portal</guid>
      <pubDate>Mon, 07 Apr 2025 17:53:48 GMT</pubDate>
      <description>We've introduced a new section in our Developer Portal to document various SDK components including helper methods and utility classes. This update helps keep the Developer Portal documentation more in sync with SDKs.</description>
      <content:encoded><![CDATA[<p>We&#39;ve introduced a new section in our Developer Portal to document various SDK components including helper methods and utility classes. This update helps keep the Developer Portal documentation more in sync with SDKs.</p>
<p>Here is an example in .NET:</p>
<p><img src="https://docs.apimatic.io/images/changelog/sdk-infra-docs.png" alt="SDK Infrastructure Documentation Example for .NET"></p>
<h2>How To Use</h2>
<p>If you&#39;re using the APIMatic API to generate your portal through <a href="https://docs.apimatic.io/docs-as-code/documentation-as-code-overview/">the Docs as Code workflow</a>, you can add this new section by adding the following to your <code>toc.yml</code> file:</p>
<pre><code class="language-yaml">- generate: SDK Infrastructure
  from: sdk-infra
</code></pre>
<p>For more details on how to add the new section in your portal using a <code>toc.yml</code> file, please refer to the documentation <a href="https://docs.apimatic.io/platform-api/#/http/guides/generating-on-prem-api-portal/toc-customization/how-to-add-auto-generated-documentation-for-sdk-infrastructure-in-toc-yml">here</a>.</p>
]]></content:encoded>
      <category>New Feature</category>
      <category>Developer Portal</category>
    </item>
    <item>
      <title>Enforce Required Properties in Your OpenAPI Definition Using Custom Validation Rules</title>
      <link>https://docs.apimatic.io/changelog/extended-support-for-custom-rules</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/extended-support-for-custom-rules</guid>
      <pubDate>Mon, 17 Mar 2025 00:00:00 GMT</pubDate>
      <description>Until now, our custom validation rules supported Pattern, Order, and Length verification methods. This allowed us to enforce specific patterns for property values, restrict property lengths, and validate alphabetical ordering within OpenAPI definitions.</description>
      <content:encoded><![CDATA[<p>Until now, our custom validation rules supported <strong>Pattern, Order, and Length</strong> verification methods. This allowed us to enforce specific patterns for property values, restrict property lengths, and validate alphabetical ordering within OpenAPI definitions.  </p>
<p>We&#39;re excited to introduce a new verification method: <strong>&quot;Required.&quot;</strong>  </p>
<p>With this update, you can now mark a property as required - even if OpenAPI standards don&#39;t enforce it. This means greater flexibility in defining custom validation rules, including support for <strong>vendor extensions.</strong> </p>
<h2>Example: Marking a Property as Required</h2>
<p>Here&#39;s how you can enforce the presence of a vendor extension, <code>x-my-extension</code>, inside the <code>info</code> object:  </p>
<pre><code class="language-json">{
    &quot;Id&quot;: &quot;new-ruleset&quot;,
    &quot;Rules&quot;: [
        {
            &quot;Id&quot;: &quot;100-required-x-extensions&quot;,
            &quot;Severity&quot;: &quot;Blocking&quot;,
            &quot;Targets&quot;: [
                {
                    &quot;JsonPath&quot;: &quot;$.info&quot;
                }
            ],
            &quot;VerificationMethod&quot;: &quot;Required&quot;,
            &quot;VerificationMethodArgs&quot;: {
                &quot;Properties&quot;: [&quot;x-my-extension&quot;]
            },
            &quot;Message&quot;: &quot;API info must contain required fields.&quot;
        }
    ]
}
</code></pre>
<p>In this ruleset, the <code>x-my-extension</code> property under <code>VerificationMethodArgs</code> is <strong>required</strong> at the root <code>info</code> object level. Similarly, you can apply this rule to any property in any OpenAPI object.</p>
<p><img src="https://docs.apimatic.io/v4/images/changelog/custom-required-rule.png" alt="alt text" title="Custom Required Rule"></p>
<blockquote>
<p><strong>Note</strong></p>
<p><a href="https://docs.apimatic.io/validate-lint-apis/adding-your-own-rules/">Visit our documentation</a> if you need help in writing your first custom validation rule.</p>
</blockquote>
]]></content:encoded>
      <category>New</category>
      <category>validation</category>
      <category>custom-rules</category>
      <category>Feature</category>
      <category>OpenAPI</category>
    </item>
    <item>
      <title>Comprehensive Search Upgrade on Developer Portal</title>
      <link>https://docs.apimatic.io/changelog/improvements-in-search</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/improvements-in-search</guid>
      <pubDate>Thu, 13 Mar 2025 00:00:00 GMT</pubDate>
      <description>We've significantly enhanced the search functionality on our Developer Portal! Previously, searches were limited to document titles, making it challenging to locate specific information within our extensive API documentation. Now, our upgraded search system indexes the full co...</description>
      <content:encoded><![CDATA[<p>We&#39;ve significantly enhanced the search functionality on our Developer Portal! Previously, searches were limited to document titles, making it challenging to locate specific information within our extensive API documentation. Now, our upgraded search system indexes the full content of guides, API endpoints, parameters, and model documentation, enabling you to find exactly what you need more efficiently.</p>
<h3><strong>Key Improvements</strong></h3>
<ul>
<li><p><strong>Full-Content Indexing</strong>: Search queries now consider the entire content of our documentation, not just titles, allowing for more precise results.</p>
</li>
<li><p><strong>Enhanced API Endpoint Search</strong>: You can now search by operation IDs, facilitating quicker discovery of specific API functionalities.</p>
</li>
<li><p><strong>Detailed Parameter and Model Searches</strong>: Easily locate definitions and details of parameters and models within our documentation.</p>
</li>
<li><p><strong>Paginated Results</strong>: Search results are displayed 10 at a time, with a &quot;View More&quot; option for seamless exploration.</p>
</li>
</ul>
<h3><strong>Accessing the Enhanced Search</strong></h3>
<p>This upgrade is automatically enabled for all users. To ensure optimal functionality:</p>
<ul>
<li><p><strong>Republish or Regenerate Your Portal</strong>: This step updates your portal to incorporate the new search capabilities.</p>
</li>
<li><p><strong>No Configuration Changes Required</strong>: Your content is indexed automatically without the need for additional setup.</p>
</li>
</ul>
<p>These enhancements aim to provide faster and more precise search results, reducing friction for developers. Experience the improved search functionality today and streamline your development process!</p>
<p><img src="https://docs.apimatic.io/images/changelog/search.gif" alt="search"></p>
]]></content:encoded>
      <category>Search</category>
      <category>Developer Portal</category>
      <category>API Documentation</category>
    </item>
    <item>
      <title>Complex Objects Support in HTTP Header Parameters</title>
      <link>https://docs.apimatic.io/changelog/adding-support-for-complex-objects-in-headers-</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/adding-support-for-complex-objects-in-headers-</guid>
      <pubDate>Wed, 05 Mar 2025 00:00:00 GMT</pubDate>
      <description>The SDKs now support passing complex objects, including non-scalar types and collections, as HTTP header parameters in the request.</description>
      <content:encoded><![CDATA[<p>The SDKs now support passing complex objects, including non-scalar types and collections, as HTTP header parameters in the request.</p>
<h2>Benefits</h2>
<p>This update brings</p>
<ul>
<li><strong>Enhanced Flexibility</strong>: Seamlessly send structured data in headers.</li>
<li><strong>Improved API Compatibility</strong>: Supports APIs that require complex header values.</li>
<li><strong>Simplified Implementation</strong>: Eliminates the need for manual serialization.</li>
</ul>
<h2>How It Works</h2>
<p>The following code samples demonstrate how to pass complex objects as header parameters in different SDKs.</p>
<p><strong>Python</strong></p>
<pre><code class="language-python">client = SdkClient(environment=Environment.PRODUCTION)

api_controller = client.api_controller

vehicle = Vehicle(
    make=&#39;Toyota&#39;,
    model=&#39;Camry&#39;,
    year=2022,
    engine=Engine(
        horsepower=300,
        fuel_type=FuelTypeEnum.PETROL
    )
)

result = api_controller.send_vehicle_information_in_header(vehicle)
</code></pre>
<p><strong>Ruby</strong></p>
<pre><code class="language-ruby">client = SdkClient.new(environment: Environment::PRODUCTION)

api_controller = client.api_controller

vehicle = Vehicle.new(
  &#39;Toyota&#39;,
  &#39;Camry&#39;,
  2022,
  Engine.new(
    300,
    FuelTypeEnum::PETROL
  )
)

result = api_controller.send_vehicle_information_in_header(vehicle)
</code></pre>
<p><strong>PHP</strong></p>
<pre><code class="language-php">$client = new SdkClient(Environment::PRODUCTION);

$apiController = $client-&gt;getApiController();

$vehicle = new Vehicle([
    &#39;make&#39; =&gt; &#39;Toyota&#39;,
    &#39;model&#39; =&gt; &#39;Camry&#39;,
    &#39;year&#39; =&gt; 2022,
    &#39;engine&#39; =&gt; new Engine([
        &#39;horsepower&#39; =&gt; 300,
        &#39;fuel_type&#39; =&gt; FuelTypeEnum::PETROL
    ])
]);

$result = $apiController-&gt;sendVehicleInformationInHeader($vehicle);
</code></pre>
<p><strong>Java</strong></p>
<pre><code class="language-java">SdkClient client = new SdkClient.Builder()
        .environment(Environment.PRODUCTION)
        .build();

ApiController apiController = client.getApiController();

Vehicle vehicle = new Vehicle.Builder(
    &quot;Toyota&quot;,
    &quot;Camry&quot;,
    2022,
    new Engine.Builder(
        300,
        FuelTypeEnum.PETROL
    )
    .build()
)
.build();

Result result = apiController.sendVehicleInformationInHeader(vehicle);
</code></pre>
<p><strong>C#</strong></p>
<pre><code class="language-csharp">SdkClient client = new SdkClient.Builder()
    .Environment(Environment.Production)
    .Build();

APIController apiController = client.APIController;

var vehicle = new Vehicle
{
    Make = &quot;Toyota&quot;,
    Model = &quot;Camry&quot;,
    Year = 2022,
    Engine = new Engine
    {
        Horsepower = 300,
        FuelType = FuelTypeEnum.Petrol,
    },
};

var result = apiController.SendVehicleInformationInHeader(vehicle);
</code></pre>
<p><strong>TypeScript</strong></p>
<pre><code class="language-typescript">const client = new SdkClient({
    timeout: 0,
});

const apiController = new ApiController(client);

const vehicle: Vehicle = {
    make: &#39;Toyota&#39;,
    model: &#39;Camry&#39;,
    year: 2022,
    engine: {
        horsepower: 300,
        fuelType: FuelTypeEnum.Petrol,
    },
};

const { result, ...httpResponse } = await apiController.submitVehicleInformation(vehicle);
</code></pre>
<p><strong>Go</strong></p>
<pre><code class="language-go">client := sdk.SdkClient(EnvironmentProduction)

apiController := client.ApiController()

ctx := context.Background()

vehicle := models.Vehicle{
    Make:   &quot;Toyota&quot;,
    Model:  &quot;Camry&quot;,
    Year:   2022,
    Engine: models.Engine{
        Horsepower: 300,
        FuelType:   models.FuelTypeEnum_PETROL,
    },
}

result, err := apiController.SendVehicleInformationInHeader(ctx, vehicle)
</code></pre>
]]></content:encoded>
      <category>New Feature</category>
      <category>SDKs</category>
      <category>Python</category>
      <category>Ruby</category>
      <category>PHP</category>
      <category>Java</category>
      <category>C#</category>
      <category>TypeScript</category>
      <category>Go</category>
    </item>
    <item>
      <title>Configurable Test Settings via Environment Variables</title>
      <link>https://docs.apimatic.io/changelog/added-support-for-environment-variable-in-python-sdk</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/added-support-for-environment-variable-in-python-sdk</guid>
      <pubDate>Tue, 25 Feb 2025 00:00:00 GMT</pubDate>
      <description>The Python SDK now supports reading test configurations from environment variables, reducing the need for hardcoded values in the SDK test setup.</description>
      <content:encoded><![CDATA[<p>The Python SDK now supports reading test configurations from environment variables, reducing the need for hardcoded values in the SDK test setup.</p>
<h2>How It Works</h2>
<p>Test configurations can now be set dynamically using environment variables. The variable names follow the pattern <code>{SDK_Name}_{Client_Configuration_Name}</code> and may vary based on the API specification file. Examples include:</p>
<ul>
<li><strong>PAYMENTS_API_ENVIRONMENT</strong>: Specifies the environment for the Payments API (e.g., <code>sandbox</code>, <code>production</code>).</li>
<li><strong>PAYMENTS_API_PORT</strong>: Defines the port on which the Payments API runs.</li>
<li><strong>PAYMENTS_API_TOKEN</strong>: Defines the auth token for the Payments API.</li>
</ul>
<h2>Benefits</h2>
<ul>
<li><strong>Enhanced Security</strong>: Prevents exposure of sensitive configuration data in source code.</li>
<li><strong>Easier Test Configuration</strong>: No need to hardcode test settings.</li>
<li><strong>Flexible Environment Management</strong>: Quickly switch between different test environments.</li>
<li><strong>Seamless Integration</strong>: Works out of the box with CI/CD and local testing setups.</li>
</ul>
<p>By leveraging environment variables, this update improves security while making test configuration more flexible and manageable.</p>
]]></content:encoded>
      <category>New Feature</category>
      <category>SDKs</category>
      <category>Python</category>
      <category>Testing</category>
    </item>
    <item>
      <title>API Copilot Improvements</title>
      <link>https://docs.apimatic.io/changelog/api-co-pilot-improvement</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/api-co-pilot-improvement</guid>
      <pubDate>Fri, 24 Jan 2025 00:00:00 GMT</pubDate>
      <description>We've enhanced the API Copilot to provide a more seamless chat experience, especially during long conversations. Previously, users experienced a lag between typing and characters appearing in the input box when searching for something. This issue has now been resolved, resulti...</description>
      <content:encoded><![CDATA[<p>We&#39;ve enhanced the API Copilot to provide a more seamless chat experience, especially during long conversations. Previously, users experienced a lag between typing and characters appearing in the input box when searching for something. This issue has now been resolved, resulting in a <strong>faster and more responsive</strong> typing experience.</p>
<h3>Improvements</h3>
<ul>
<li>Eliminated input lag during long chats.</li>
<li>Improved typing speed and real-time text rendering.</li>
<li>Overall improved user experience and smoother interactions.</li>
<li>Now available in Dark Theme for a sleek and comfortable experience.</li>
</ul>
<p><img src="https://docs.apimatic.io/images/changelog/chat.gif" alt="Chat UI"></p>
]]></content:encoded>
      <category>Improvement</category>
      <category>API Co-Pilot</category>
      <category>Chat</category>
    </item>
    <item>
      <title>Enhanced UX for Deprecated Endpoints</title>
      <link>https://docs.apimatic.io/changelog/enchanced-ux-for-deprecated-endpoints</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/enchanced-ux-for-deprecated-endpoints</guid>
      <pubDate>Sat, 18 Jan 2025 00:00:00 GMT</pubDate>
      <description>We've improved the user experience for deprecated endpoints by making them more visible and easier to identify. These enhancements help users quickly recognize outdated APIs and find alternatives with minimal friction.</description>
      <content:encoded><![CDATA[<p>We&#39;ve improved the user experience for deprecated endpoints by making them more visible and easier to identify. These enhancements help users quickly recognize outdated APIs and find alternatives with minimal friction.</p>
<h3>Improvements</h3>
<ul>
<li>Clearer labeling for deprecated endpoints.</li>
<li>Enhanced navigation panel to make deprecated endpoints easier to find and understand.</li>
<li>More intuitive UI to avoid accidental usage of deprecated APIs.</li>
</ul>
<p><strong>Before</strong></p>
<p><img src="https://docs.apimatic.io/images/changelog/deprecated-before.png" alt="Before UI"></p>
<p><strong>After</strong></p>
<p><img src="https://docs.apimatic.io/images/changelog/deprecated-after.png" alt="After UI"></p>
]]></content:encoded>
      <category>Improvement</category>
      <category>Developer Portal</category>
      <category>Deprecated Endpoints</category>
    </item>
    <item>
      <title>Introducing the Cosmos Theme</title>
      <link>https://docs.apimatic.io/changelog/introducing-cosmos-theme</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/introducing-cosmos-theme</guid>
      <pubDate>Tue, 24 Dec 2024 00:00:00 GMT</pubDate>
      <description>We're excited to introduce the Cosmos Theme, a sleek and modern design for a better visual experience. With a refined look and subtle enhancements, the portal now feels more modern and visually appealing.</description>
      <content:encoded><![CDATA[<p>We&#39;re excited to introduce the <strong>Cosmos Theme</strong>, a sleek and modern design for a better visual experience. With a refined look and subtle enhancements, the portal now feels more modern and visually appealing.</p>
<p><strong>Light Theme</strong></p>
<p><img src="https://docs.apimatic.io/images/changelog/cosmos-light.png" alt="Light Theme UI"></p>
<p><strong>Dark Theme</strong></p>
<p><img src="https://docs.apimatic.io/images/changelog/cosmos-dark.png" alt="Dark Theme UI"></p>
<h3>What&#39;s New</h3>
<ul>
<li>A fresh, cosmic-inspired aesthetic.</li>
<li>Enhanced readability with balanced colors and contrast.</li>
</ul>
<h3>How to Enable the Cosmos Theme</h3>
<ol>
<li>Log in to the <a href="https://app.apimatic.io/account/login">APIMatic</a>.</li>
<li>Click on <strong>Edit Docs</strong> for the portal where you want to enable the theme.</li>
<li>Select <strong>Branding</strong> from the sidebar.</li>
<li>Choose <strong>Cosmos Theme</strong> as the base theme.</li>
<li>Click on publish portal button in top right corner.</li>
</ol>
]]></content:encoded>
      <category>Theme</category>
      <category>Developer Portal</category>
    </item>
    <item>
      <title>Introducing Enhanced Theming, Now with Dark Mode for the Developer Portal</title>
      <link>https://docs.apimatic.io/changelog/updated-portal-editor-dark-mode</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/updated-portal-editor-dark-mode</guid>
      <pubDate>Thu, 19 Dec 2024 00:00:00 GMT</pubDate>
      <description>Introduce Dark Mode to our theming system, offering seamless switching between light and dark themes</description>
      <content:encoded><![CDATA[<p>We are thrilled to announce the introduction of Dark Mode to our theming system! This update enables seamless switching between Light and Dark themes while delivering enhanced theme customization capabilities.</p>
<h2>Overview</h2>
<p>The APIMatic Developer Portals now support Dark Mode and theme configuration options. These enhancements provide greater flexibility to customize the portal&#39;s appearance.</p>
<p><strong>Light Mode</strong></p>
<p><img src="https://docs.apimatic.io/images/api-portal/portal-standard-light.png" alt="APIMatic Portal Light Mode">
<strong>Dark Mode</strong></p>
<p><img src="https://docs.apimatic.io/images/api-portal/portal-standard-dark.png" alt="APIMatic Portal Dark Mode"></p>
<h2>Enhanced Theming for Hosted and Embedded Portals</h2>
<p>With the new theming options, you gain more control over your portal&#39;s look and feel:</p>
<ul>
<li>Select the <strong>Base Theme</strong>.</li>
<li>Configure the <strong>Default Mode</strong> to Light, Dark, or System.</li>
<li>Customize the <strong>Primary Color</strong> and <strong>Link Color</strong> independently for both Light and Dark themes.</li>
<li>If needed, disable the mode selector to lock your portal in a specific mode.</li>
</ul>
<p>For step-by-step guidance and further details, check out the <a href="https://docs.apimatic.io/publish-apis/customizing-your-portal/#theme">documentation here</a>.</p>
<p><img src="https://docs.apimatic.io/images/changelog/portal-editor-theming.png" alt="portal-editor"></p>
<blockquote>
<p><strong>Note</strong></p>
<p>Please note: These theming changes will only take effect after republishing the portal.</p>
</blockquote>
<h2>Enhanced Theming for Docs-as-Code Portals</h2>
<p>We&#39;ve updated the theme settings structure to offer more flexibility. A new <code>theme</code> property has been introduced that enables users to control the dark mode, select theme &amp; colors, and set up typography.</p>
<h3>New Theme Structure</h3>
<p>Here&#39;s an example of the updated theme configuration:</p>
<pre><code class="language-json">{
  &quot;theme&quot;: {
    &quot;baseTheme&quot;: &quot;standard&quot;,
    &quot;colors&quot;: {
      &quot;primaryColor&quot;: {
        &quot;light&quot;: &quot;#0C7FF2&quot;,
        &quot;dark&quot;: &quot;#7CBAF8&quot;
      },
      &quot;linkColor&quot;: {
        &quot;light&quot;: &quot;#004AD7&quot;,
        &quot;dark&quot;: &quot;#66B2FF&quot;
      }
    },
    &quot;colorMode&quot;: {
      &quot;defaultMode&quot;: &quot;light&quot;,
      &quot;disableSwitch&quot;: true
    },
    &quot;cssStyles&quot;: {},
    &quot;fontSource&quot;: []
  }
}
</code></pre>
<p>For more details of the new theme structure, refer to the <a href="https://docs.apimatic.io/platform-api/#/http/guides/generating-on-prem-api-portal/build-file-reference/generateportal-portalsettings-theme">documentation here</a>.</p>
<h3>Deprecation Notice</h3>
<p>The <code>themeOverride</code> property is being phased out. The <code>theme</code> property will replace it. Please contact the APIMatic team if you need support with migration.</p>
<blockquote>
<p><strong>Note</strong></p>
<p>Existing configurations will <strong>not</strong> be automatically mapped. Changes will only take effect upon migrating to the new theme property.</p>
</blockquote>
<h3>Introducing Theme Control Hook</h3>
<p>We have developed a theme control hook through the function <code>setThemeMode</code>. It allows programmatic access to switch the portal&#39;s theme (light or dark) from outside the portal, making it particularly useful for users who are embedding their portals.</p>
<h5>Usage Example</h5>
<p>To switch themes externally, use the following code:</p>
<pre><code class="language-javascript">if (window.APIMaticDevPortal &amp;&amp; window.APIMaticDevPortal.setThemeMode) {
    window.APIMaticDevPortal.setThemeMode(&#39;dark&#39;);
}
</code></pre>
<p>You can pass either <code>light</code> or <code>dark</code> as the parameter to set the mode.</p>
<p>For further details and integration steps, see the <a href="https://docs.apimatic.io/platform-api/#/http/guides/generating-on-prem-api-portal/theme-control-hook">documentation here</a>.</p>
]]></content:encoded>
      <category>Enhancement</category>
      <category>Developer Portal</category>
      <category>Theming</category>
      <category>Dark Mode</category>
    </item>
    <item>
      <title>Introducing String Representations for Models in PHP, Python, Ruby, and Go SDKs</title>
      <link>https://docs.apimatic.io/changelog/added-support-for-string-representation-for-models-in-php-ruby-go-python</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/added-support-for-string-representation-for-models-in-php-ruby-go-python</guid>
      <pubDate>Thu, 19 Dec 2024 00:00:00 GMT</pubDate>
      <description>Developers frequently rely on string representations of models for debugging and logging. Our recent update enhances the __str__ or equivalent methods for models in Python, Ruby, PHP, and Go SDKs, offering clear, human-readable outputs.</description>
      <content:encoded><![CDATA[<p>Developers frequently rely on string representations of models for debugging and logging. Our recent update enhances the <code>__str__</code> or equivalent methods for models in Python, Ruby, PHP, and Go SDKs, offering clear, human-readable outputs.</p>
<h2>What&#39;s New?</h2>
<p>Models in the generated SDKs now provide user-friendly string representations:</p>
<ul>
<li><strong>Python</strong>: <code>__str__</code> and <code>__repr__</code> are tailored to display model properties concisely.</li>
<li><strong>Ruby</strong>: <code>to_s</code> and <code>inspect</code> methods now include property details.</li>
<li><strong>PHP</strong>: The <code>__toString</code> method outputs formatted property data.</li>
<li><strong>Go</strong>: Custom <code>String()</code> method simplifies struct inspection.</li>
</ul>
<p>These changes improve clarity when inspecting models during runtime.</p>
<h2>How It Works</h2>
<p>The enhancements apply to all SDK models generated after this release. String representations now include:</p>
<ol>
<li><strong>Model Name</strong>: Clearly identifies the object type.</li>
<li><strong>Property Details</strong>: Displays key-value pairs of populated fields.</li>
</ol>
<h3>Example Outputs</h3>
<p><strong>PHP</strong></p>
<pre><code class="language-php">$order = OrderBuilder::init()
    -&gt;orderId(123)
    -&gt;status(&#39;completed&#39;)
    -&gt;total(99.99)
    -&gt;build();
echo $order; // Output: Order [orderId: 123, status: completed, total: 99.99]
</code></pre>
<p><strong>Python</strong></p>
<pre><code class="language-python">order = Order(order_id=123, status=&#39;completed&#39;, total=99.99)
print(order) # Output: Order(order_id=123, status=completed, total=99.99)
</code></pre>
<p><strong>Ruby</strong></p>
<pre><code class="language-ruby">order = Order.new(123, &#39;completed&#39;, 99.99)
puts(order) # Output: &lt;Order order_id: 123, status: completed, total: 99.99&gt;
</code></pre>
<p><strong>Go</strong></p>
<pre><code class="language-go">order := models.Order{
		OrderId: 123,
		Status:  &quot;completed&quot;,
		Total:   99.99,
}
fmt.Println(order) //  # Output: Order[OrderId=123, Status=completed, Total=99.99]
</code></pre>
<h2>Benefits for Developers</h2>
<ul>
<li><strong>Enhanced Debugging</strong>: Quickly identify key model properties in logs.</li>
<li><strong>Improved Readability</strong>: Easier inspection during API testing and SDK usage.</li>
</ul>
<p>By regenerating your SDKs, you can immediately take advantage of these improvements and enjoy a more seamless integration experience.</p>
]]></content:encoded>
      <category>New Feature</category>
      <category>SDKs</category>
      <category>Python</category>
      <category>Ruby</category>
      <category>PHP</category>
      <category>Go</category>
    </item>
    <item>
      <title>Typed Additional Model Properties Support in All SDKs</title>
      <link>https://docs.apimatic.io/changelog/typed-additional-model-properties-support</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/typed-additional-model-properties-support</guid>
      <pubDate>Thu, 05 Dec 2024 07:12:27 GMT</pubDate>
      <description>We’re introducing support for typed additional model properties across all SDKs, enhancing type safety and alignment with OpenAPI specifications.</description>
      <content:encoded><![CDATA[<p>We’re introducing support for typed additional model properties across all SDKs, enhancing type safety and alignment with OpenAPI specifications.</p>
<h2>Details</h2>
<p>Model classes in C#, Java, PHP, Python, Ruby, Go, and TypeScript SDKs now support typed additional properties. This update improves type safety and aligns with OpenAPI specifications by allowing models to store additional properties with specific, user-defined data types. The feature enhances data consistency, reduces runtime errors, and improves SDK flexibility while closely adhering to OpenAPI standards.</p>
<h3>Open Api Example</h3>
<p>Here’s an example schema of type <strong>StudentResult</strong>, which contains an <strong>email</strong> field for student identification and additional properties of type <strong>number</strong>. The <strong>StudentResult</strong> model represents a student&#39;s results in various subjects, where the subject names are the keys and their respective scores are the values:</p>
<pre><code class="language-yaml">components:
  schemas:
    StudentResult:
      type: object
      required:
        - email
      properties:
        email:
          type: string
          format: email
      additionalProperties:
        type: number
</code></pre>
<h3>What&#39;s New?</h3>
<p>Previously, the <a href="https://docs.apimatic.io/generate-sdks/customize-sdks/codegen-settings/model-settings/#enable-additional-model-properties"><code>EnableAdditionalModelProperties</code></a> CodeGen setting allowed additional properties in model classes to be stored using a generic <strong>any</strong> type, leaving type management to the user. With this update, SDKs now support user-defined types for additional properties, ensuring more reliable data handling and seamless integration with OpenAPI specifications.</p>
<p>With this release, enabling <a href="https://docs.apimatic.io/generate-sdks/customize-sdks/codegen-settings/model-settings/#extended-additional-properties-support"><code>ExtendedAdditionalPropertiesSupport</code></a> through CodeGen Settings will automatically provide typed additional properties in your SDK models.</p>
<h3>Key Features</h3>
<ul>
<li><strong>Typed Additional Properties:</strong> Users can now define specific types for additionalProperties, enhancing type safety.</li>
<li><strong>Inheritance Handling:</strong> In cases of typed additionalProperties definitions in inherited models, the root model&#39;s definition will apply to all child models, regardless of whether it is disabled in individual child models. This minimizes type conflicts and ensures consistency.</li>
<li><strong>Conflict Prevention:</strong> Adding additionalProperties with keys that conflict with existing model properties will trigger runtime exceptions, catching issues early during serialization/deserialization.</li>
</ul>
<h3>SDK Request Examples</h3>
<p>Here’s how to define a request object of type <strong>StudentResult</strong> in various languages:</p>
<p><strong>TypeScript</strong></p>
<pre><code class="language-ts">const body: StudentResult = {
  email: &#39;student616@oxford.ac.uk&#39;,
  additionalProperties: {
    &#39;Theory Of Automata&#39;: 82.1,
    &#39;Computational complexity&#39;: 72.5,
    &#39;Functional programming&#39;: 78.3
  },
};
</code></pre>
<p><strong>Java</strong></p>
<pre><code class="language-java">StudentResult body = new StudentResult.Builder(
        &quot;student616@oxford.ac.uk&quot;
    )
    .additionalProperty(&quot;Theory Of Automata&quot;, 82.1D)
    .additionalProperty(&quot;Computational complexity&quot;, 72.5D)
    .additionalProperty(&quot;Functional programming&quot;, 78.3D)
    .build();
</code></pre>
<p><strong>Python</strong></p>
<pre><code class="language-python">body = StudentResult(
    email=&#39;student616@oxford.ac.uk&#39;,
    additional_properties={
        &#39;Theory Of Automata&#39;: 82.1,
        &#39;Computational complexity&#39;: 72.5,
        &#39;Functional programming&#39;: 78.3
    }
)
</code></pre>
<p><strong>PHP</strong></p>
<pre><code class="language-php">$body = StudentResultBuilder::init(
    &#39;student616@oxford.ac.uk&#39;
)
    -&gt;additionalProperty(&#39;Theory Of Automata&#39;, 82.1)
    -&gt;additionalProperty(&#39;Computational complexity&#39;, 72.5)
    -&gt;additionalProperty(&#39;Functional programming&#39;, 78.3)
    -&gt;build();
</code></pre>
<p><strong>.NET</strong></p>
<pre><code class="language-csharp">StudentResult body = new StudentResult
{
    Email = &quot;student616@oxford.ac.uk&quot;,
    [&quot;Theory Of Automata&quot;] = 82.1,
    [&quot;Computational complexity&quot;] = 72.5,
    [&quot;Functional programming&quot;] = 78.3,
};
</code></pre>
<p><strong>Ruby</strong></p>
<pre><code class="language-ruby">body = StudentResult.new(
  &#39;student616@oxford.ac.uk&#39;,
  {
    &#39;Theory Of Automata&#39;: 82.1,
    &#39;Computational complexity&#39;: 72.5,
    &#39;Functional programming&#39;: 78.3
  }
)
</code></pre>
<p><strong>Go</strong></p>
<pre><code class="language-go">body := models.StudentResult{
    Email:                &quot;student616@oxford.ac.uk&quot;,
    AdditionalProperties: map[string]float64{
        &quot;Theory Of Automata&quot;: float64(82.1),
        &quot;Computational complexity&quot;: float64(72.5),
        &quot;Functional programming&quot;: float64(78.3),
    },
}
</code></pre>
<h3>SDK Response Examples</h3>
<p>Here’s a sample JSON response representing a <strong>StudentResult</strong> object:</p>
<pre><code class="language-json">{
  &quot;email&quot;: &quot;student616@oxford.ac.uk&quot;,
  &quot;Theory Of Automata&quot;: 82.1,
  &quot;Computational complexity&quot;: 72.5,
  &quot;Continuous mathematics&quot;: &quot;87&quot;, // invalid additional properties
  &quot;Functional programming&quot;: 78.3
}
</code></pre>
<p>After deserialization, the <strong>&quot;Continuous mathematics&quot;</strong> additional property will be ignored due to invalid type. To access <strong>&quot;Functional programming&quot;</strong> additional property use the following code snippet to print the value in different programming languages:</p>
<p><strong>TypeScript</strong></p>
<pre><code class="language-ts">// Printing the value of `Functional programming` AdditionalProperty
console.log(response.result.additionalProperties[&#39;Functional programming&#39;]);
// Outputs: 78.3
</code></pre>
<p><strong>Java</strong></p>
<pre><code class="language-java">// Printing the value of `Functional programming` AdditionalProperty
System.out.println(response.getAdditionalProperty(&quot;Functional programming&quot;));
// Outputs: 78.3
</code></pre>
<p><strong>Python</strong></p>
<pre><code class="language-python"># Printing the value of `Functional programming` AdditionalProperty
print(response.additional_properties.get(&#39;Functional programming&#39;))
# Outputs: 78.3
</code></pre>
<p><strong>PHP</strong></p>
<pre><code class="language-php">// Printing the value of `Functional programming` AdditionalProperty
var_dump($response-&gt;findAdditionalProperty(&#39;Functional programming&#39;));
// Outputs: 78.3
</code></pre>
<p><strong>.NET</strong></p>
<pre><code class="language-csharp">// Printing the value of `Functional programming` AdditionalProperty
Console.WriteLine(response[&quot;Functional programming&quot;]);
// Outputs: 78.3
</code></pre>
<p><strong>Ruby</strong></p>
<pre><code class="language-ruby"># Printing the value of `Functional programming` AdditionalProperty
puts response.additional_properties[&quot;Functional programming&quot;]
# Outputs: 78.3
</code></pre>
<p><strong>Go</strong></p>
<pre><code class="language-go">// Printing the value of `Functional programming` AdditionalProperty
fmt.Println(response.Data.AdditionalProperties[&quot;Functional programming&quot;])
// Outputs: 78.3
</code></pre>
]]></content:encoded>
      <category>New Feature</category>
      <category>C#</category>
      <category>Java</category>
      <category>PHP</category>
      <category>Python</category>
      <category>Ruby</category>
      <category>Go</category>
      <category>TypeScript</category>
    </item>
    <item>
      <title>Introducing a Portal Setting to Display HTTP verbs in all Languages.</title>
      <link>https://docs.apimatic.io/changelog/introducing-http-verbs</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/introducing-http-verbs</guid>
      <pubDate>Mon, 04 Nov 2024 00:00:00 GMT</pubDate>
      <description>We’ve introduced a new portal setting that allows you to display HTTP verbs in the left navigation bar for all languages. This feature is available exclusively for APIMatic API users.</description>
      <content:encoded><![CDATA[<p>We’ve introduced a new portal setting that allows you to display HTTP verbs in the left navigation bar for all languages. This feature is available exclusively for APIMatic API users.</p>
<h2>Overview</h2>
<p>The HTTP verbs (request methods) are displayed as tags in the left navigation bar, alongside the endpoint name, as shown in the image below.</p>
<p><img src="https://docs.apimatic.io/images/changelog/http-tags.png" alt="http-tags"></p>
<h2>What&#39;s New</h2>
<p>Previously, these tags were displayed only for the HTTP language. With the new portal setting, <code>enableHttpVerbsForAllLangs</code>, you now have the flexibility to display these tags in all the languages available in your portal or keep them limited to HTTP. For details on this setting and how to configure it, see <a href="https://docs.apimatic.io/platform-api/#/http/guides/generating-on-prem-api-portal/build-file-reference/generateportal-portalsettings-enablehttpverbsforalllangs">here</a>.</p>
]]></content:encoded>
      <category>HTTP verbs</category>
      <category>Improvement</category>
      <category>Developer Portal</category>
    </item>
    <item>
      <title>Introducing a Portal Setting to Manage Feedback Widget Visibility in DX-Portal.</title>
      <link>https://docs.apimatic.io/changelog/feedback-form-visibility</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/feedback-form-visibility</guid>
      <pubDate>Wed, 30 Oct 2024 00:00:00 GMT</pubDate>
      <description>We’ve added a new portal setting that gives you control over the visibility of the feedback widget in your portal. This feature is available exclusively for APIMatic API users.</description>
      <content:encoded><![CDATA[<p>We’ve added a new portal setting that gives you control over the visibility of the feedback widget in your portal. This feature is available exclusively for APIMatic API users.</p>
<h2>Overview</h2>
<p>The new setting, <code>enableFeedbackWidget</code>, allows you to hide the feedback widget if it’s not needed. For details on this setting and how to use it, see <a href="https://docs.apimatic.io/platform-api/#/http/guides/generating-on-prem-api-portal/build-file-reference/generateportal-portalsettings-enablefeedbackwidget">here</a>.</p>
<blockquote>
<p><strong>Note</strong></p>
<p>If analytics are turned off, the feedback widget will also be hidden, regardless of this setting.</p>
</blockquote>
]]></content:encoded>
      <category>Feedback</category>
      <category>Improvement</category>
      <category>Developer Portal</category>
    </item>
    <item>
      <title>UI Enhancements in DX-Portal</title>
      <link>https://docs.apimatic.io/changelog/minor-ui-improvements-dx-portal</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/minor-ui-improvements-dx-portal</guid>
      <pubDate>Tue, 15 Oct 2024 00:00:00 GMT</pubDate>
      <description>We’ve made a few subtle updates to the portal’s interface to make it easier to use, clearer to navigate, and more visually consistent. These changes are part of our ongoing efforts to create a smooth and intuitive experience for you.</description>
      <content:encoded><![CDATA[<p>We’ve made a few subtle updates to the portal’s interface to make it easier to use, clearer to navigate, and more visually consistent. These changes are part of our ongoing efforts to create a smooth and intuitive experience for you.</p>
<ul>
<li><strong>Clearer Visuals</strong>: We refined colors and indicators to make important elements stand out and to make the navigation feel more natural.</li>
<li><strong>Consistent Design</strong>: We aligned the look and feel of various elements to match the portal’s primary color for a more cohesive experience.</li>
</ul>
<p>These improvements may feel subtle but are intended to enhance user’s experience with the developer portal.</p>
]]></content:encoded>
      <category>Improvement</category>
      <category>Developer Portal</category>
    </item>
    <item>
      <title>Introducing Feedback Mechanism in DX-Portal</title>
      <link>https://docs.apimatic.io/changelog/added-feedback-session</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/added-feedback-session</guid>
      <pubDate>Thu, 29 Aug 2024 00:00:00 GMT</pubDate>
      <description>We're excited to introduce a new feedback mechanism in the Developer Portal, making it easier than ever for users to share their thoughts and suggestions on specific pages.</description>
      <content:encoded><![CDATA[<p>We&#39;re excited to introduce a new feedback mechanism in the Developer Portal, making it easier than ever for users to share their thoughts and suggestions on specific pages.</p>
<h2>What&#39;s New?</h2>
<p>Our Developer Portal now features a feedback mechanism conveniently located at the bottom of every page. Previously, there was no direct way for users to provide input on portal content. This new, user-friendly feature allows users to quickly submit feedback, helping Developer Portal maintainers refine their content and improve API documentation.</p>
<p><img src="https://docs.apimatic.io/images/changelog/feedback.gif" alt="feedback-section"></p>
<h2>Why it matters ?</h2>
<p>User feedback is vital for continuous improvement, particularly in enhancing the developer experience. By enabling direct feedback, we empower users to influence the quality and usability of API documentation, driving better outcomes for the entire developer community.</p>
<h2>Accessing Feedback</h2>
<p>Developer Portal maintainers interested in reviewing collected feedback can contact our support team for access. This ensures that actionable insights are delivered to those responsible for maintaining and improving the portal.</p>
]]></content:encoded>
      <category>Feedback</category>
      <category>Developer Portal</category>
    </item>
    <item>
      <title>Relocation of Import Statements in C# SDKs</title>
      <link>https://docs.apimatic.io/changelog/relocation-of-import-statements-outside-namespace-csharp-sdks</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/relocation-of-import-statements-outside-namespace-csharp-sdks</guid>
      <pubDate>Thu, 22 Aug 2024 00:00:00 GMT</pubDate>
      <description>We have moved the import statements outside the namespace for generated C# SDKs to comply with .NET best practices.</description>
      <content:encoded><![CDATA[<p>We have moved the import statements outside the namespace for generated C# SDKs to comply with .NET best practices.</p>
<h2>What&#39;s New?</h2>
<p>The import statements (<code>using</code> directives) have been relocated outside the namespace in all generated C# SDK files.</p>
<p>Below is a comparison of how the imports looked before and after the update:</p>
<p><strong>Before</strong></p>
<pre><code class="language-csharp">namespace SwaggerPetstore.Standard
{
  using System;
  using System.Collections.Generic;
  using System.Linq;
  using APIMatic.Core;
  using APIMatic.Core.Authentication;
  using APIMatic.Core.Types;

  //...
}
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-csharp">using System;
using System.Collections.Generic;
using System.Linq;
using APIMatic.Core;
using APIMatic.Core.Authentication;
using APIMatic.Core.Types;

namespace SwaggerPetstore.Standard
{   
    //...
}
</code></pre>
<p>This update:</p>
<ul>
<li>Aligns the SDK with .NET style recommendations</li>
<li>Resolves potential issues related to naming conflicts between project names, model names, and namespaces</li>
</ul>
]]></content:encoded>
      <category>Improvement</category>
      <category>C#</category>
    </item>
    <item>
      <title>Introducing Support for Auto-Generated Unit Tests in TypeScript SDKs</title>
      <link>https://docs.apimatic.io/changelog/adding-auto-unit-test-generation-in-ts</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/adding-auto-unit-test-generation-in-ts</guid>
      <pubDate>Tue, 23 Jul 2024 00:00:00 GMT</pubDate>
      <description>We've introduced support for auto-generated unit tests in the TypeScript SDKs using our OpenAPI test case extension.</description>
      <content:encoded><![CDATA[<p>We&#39;ve introduced support for auto-generated unit tests in the TypeScript SDKs using our OpenAPI test case extension.</p>
<h2>Details</h2>
<p>Unit tests are essential for ensuring the reliability and correctness of API calls. They help catch bugs early, simplify debugging, and improve the overall quality of the software. With auto-generated unit tests, developers can now save time and focus on more complex tasks while maintaining high code quality.</p>
<p>Unlike other SDKs, our TypeScript SDKs didn&#39;t previously generate unit tests automatically. This required developers to manually write unit tests for each API call, which could be time-consuming and error-prone.</p>
<h2>What&#39;s New?</h2>
<p>With our latest update, to generate unit tests in TypeScript SDKs, you can either use our <a href="../../specification-extensions/swagger-test-cases-extensions#specifying-test-cases-using-gavel-specification">OpenAPI Test Cases Extension</a> or simply provide examples for all responses, request parameters, and request bodies for any path in your OpenAPI specification.</p>
<p>The following OpenAPI specification contains two examples for response and request in the path <code>/pet/findByStatus</code>.</p>
<ul>
<li>parameters &gt; status &gt; examples &gt; example-1</li>
<li>responses &gt; 200 &gt; examples &gt; example-1</li>
</ul>
<pre><code class="language-yaml">paths:
  /pet/findByStatus:
    get:
      operationId: findPetsByStatus
      parameters:
        - name: status
          in: query
          description: Status values that need to be considered for filter
          required: false
          explode: true
          schema:
            $ref: &#39;#/components/schemas/Status&#39;
          examples:
            example-1:
              summary: A sold status
              value: sold
      responses:
        &#39;200&#39;:
          description: successful operation
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: &#39;#/components/schemas/Pet&#39;
              examples:
                example-1:
                  summary: An example of a pet list response
                  value:
                    - photoUrls:
                        - &quot;https://example.com/dog/side-pose&quot;
                        - &quot;https://example.com/dog/sitting&quot;
                      name: &quot;Dog&quot;
                    - photoUrls:
                        - &quot;https://example.com/cat/side-pose&quot;
                        - &quot;https://example.com/cat/sitting&quot;
                      name: &quot;Cat&quot;
        &#39;400&#39;:
          description: Invalid status value
</code></pre>
<p>Using these examples, APIMatic will automatically generate the corresponding unit test inside your TypeScript SDK with the following <code>test</code> package structure.</p>
<p><img src="https://docs.apimatic.io/v4/images/changelog/ts-unit-tests-structure.gif" alt="ts-unit-tests-structure"></p>
<p>The auto-generated unit test won&#39;t only make the API call but will also assert if the status code, headers, or the actual response body matches the expected ones in the provided examples. The unit test for the above sample OpenAPI would look like:</p>
<p><img src="https://docs.apimatic.io/v4/images/changelog/ts-unit-tests-code.gif" alt="ts-unit-tests-code"></p>
<p>This unit test will be readily executable and will thoroughly test the path <code>/pet/findByStatus</code> with the example data, providing success or failure status right in your IDE:</p>
<p><img src="https://docs.apimatic.io/v4/images/changelog/ts-unit-tests-success.png" alt="ts-unit-tests-success"></p>
<p>With this new feature, you can ensure your TypeScript SDKs are well-tested and reliable with minimal effort.</p>
]]></content:encoded>
      <category>TypeScript</category>
      <category>Feature</category>
    </item>
    <item>
      <title>Improvements in DX-Portal</title>
      <link>https://docs.apimatic.io/changelog/user-experience-improvement</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/user-experience-improvement</guid>
      <pubDate>Wed, 03 Jul 2024 00:00:00 GMT</pubDate>
      <description>We’re excited to announce a series of improvements to the Developer Portal designed to enhance the developer experience. These updates focus on navigation and usability, making it easier to find the information you need and work with code samples more efficiently.</description>
      <content:encoded><![CDATA[<p>We’re excited to announce a series of improvements to the Developer Portal designed to enhance the developer experience. These updates focus on navigation and usability, making it easier to find the information you need and work with code samples more efficiently.</p>
<h2>Refined Language Selector</h2>
<p>Our language selector has been redesigned to be more visually appealing.</p>
<p><strong>Before</strong></p>
<p><img src="https://docs.apimatic.io/images/changelog/ui-revamp/language-selector-before.png" alt="language-selector-before"></p>
<p><strong>After</strong></p>
<p><img src="https://docs.apimatic.io/images/changelog/ui-revamp/language-selector-after.png" alt="language-selector-after"></p>
<h2>Added Breadcrumbs</h2>
<p>The introduction of breadcrumbs show users their current location within the hierarchical structure of the documentation.</p>
<p><img src="https://docs.apimatic.io/images/changelog/ui-revamp/breadcrumb.png" alt="breadcrumb"></p>
<h2>Expanded Code Sample View</h2>
<p>A new expanded view allows for better code readability and interaction.</p>
<p><img src="https://docs.apimatic.io/images/changelog/ui-revamp/expanded-code-sample.gif" alt="expanded-code-sample"></p>
<h2>Optimised UI for selected page</h2>
<p>We have enhanced the UI for the selected page to make it easier for users to navigate the current page quicker.</p>
<p><strong>Before</strong></p>
<p><img src="https://docs.apimatic.io/images/changelog/ui-revamp/navbar-before.png" alt="navbar-before"></p>
<p><strong>After</strong></p>
<p><img src="https://docs.apimatic.io/images/changelog/ui-revamp/navbar-after.png" alt="navbar-after"></p>
<h2>Why these matter ?</h2>
<p>These enhancements are designed to improve accessibility, efficiency, and user satisfaction. These improvements contribute to a more user-friendly platform, ultimately enhancing productivity and satisfaction.</p>
]]></content:encoded>
      <category>Improvement</category>
      <category>Developer Portal</category>
    </item>
    <item>
      <title>Introducing Automatic Auth-Token Retrieval in PHP, Python, Ruby, Go, and C# SDKs</title>
      <link>https://docs.apimatic.io/changelog/auth-token-auto-refreshing-python-ruby-php-csharp</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/auth-token-auto-refreshing-python-ruby-php-csharp</guid>
      <pubDate>Mon, 24 Jun 2024 00:00:00 GMT</pubDate>
      <description>We are introducing automatic token retrieval and refreshing in the OAuth 2.0 grant types.</description>
      <content:encoded><![CDATA[<p>We are introducing automatic token retrieval and refreshing in the OAuth 2.0 grant types.</p>
<h2>Details</h2>
<p>SDKs now have automated auth-token retrieval or refreshing feature prior to any API call necessitating OAuth 2.0 Grant Type.</p>
<h2>What&#39;s New?</h2>
<p>Earlier, it was user&#39;s responsibility to fetch/refresh the auth-token and update the SDK client with newly fetched auth-token. </p>
<p>Now, after configuring OAuth 2.0 grant type credentials in the SDK client, the SDK handles this automatically before making any API call that requires an auth-token.</p>
<blockquote>
<p><strong>Note</strong></p>
<p>This feature is currently supported in all languages SDKs using OAuth 2.0 client credentials grant type.</p>
</blockquote>
<p>The SDK automatically retrieves or refreshes the auth-token from the auth server if it&#39;s expired or undefined by default.</p>
<p>For those wanting a custom auth-token provider, you can register a hook to supply the auth-token from a unique source. Additionally, you can register for the auth-token update event, which triggers whenever the auth-token is updated.</p>
<p>Here&#39;s how to set up callbacks in the client for the auth-token provider and auth-token update event.</p>
<p><strong>PHP</strong></p>
<pre><code class="language-php">$client = SdkClientBuilder::init()
    -&gt;clientCredentialsAuthCredentials(
        ClientCredentialsAuthCredentialsBuilder::init(
            &#39;OAuthClientId&#39;,
            &#39;OAuthClientSecret&#39;
        )
            -&gt;oAuthTokenProvider(
                function (?OAuthToken $lastOAuthToken, ClientCredentialsAuthManager $authManager): OAuthToken {
                    // Add the callback handler to provide a new OAuth token.
                    // It will be triggered whenever the lastOAuthToken is null or expired.
                    return $this-&gt;loadTokenFromDatabase() ?? $authManager-&gt;fetchToken();
                }
            )
            -&gt;oAuthOnTokenUpdate(
                function (OAuthToken $oAuthToken): void {
                    // Add the callback handler to perform operations like save to DB or file etc.
                    // It will be triggered whenever the token gets updated.
                    $this-&gt;saveTokenToDatabase($oAuthToken);
                }
            )
    )
    -&gt;build();
</code></pre>
<p><strong>Ruby</strong></p>
<pre><code class="language-ruby">def _o_auth_token_provider(last_oauth_token, auth_manager)
    # Add the callback handler to provide a new OAuth token
    # It will be triggered whenever the last provided o_auth_token is null or expired
    o_auth_token = load_token_from_database()
    o_auth_token = auth_manager.fetch_token() if o_auth_token is nil?
    return o_auth_token
end

client = SDKClient.new(
  client_credentials_auth_credentials: ClientCredentialsAuthCredentials.new(
    o_auth_client_id: &#39;OAuthClientId&#39;,
    o_auth_client_secret: &#39;OAuthClientSecret&#39;,
    o_auth_token_provider: _o_auth_token_provider,                    
    o_auth_on_token_update: Proc.new { | o_auth_token | 
                              # Add the callback handler to perform operations like save to DB or file etc.
                              # It will be triggered whenever the token gets updated
                              save_token_to_database(o_auth_token)
                            }
  )
)
</code></pre>
<p><strong>Python</strong></p>
<pre><code class="language-python">def _o_auth_token_provider(last_oauth_token, auth_manager):
    # Add the callback handler to provide a new OAuth token
    # It will be triggered whenever the last provided o_auth_token is null or expired
    o_auth_token = load_token_from_database()
    if o_auth_token is None:
        o_auth_token = auth_manager.fetch_token()
    return o_auth_token

client = SDKClient(
    client_credentials_auth_credentials=ClientCredentialsAuthCredentials(
        o_auth_client_id=&#39;OAuthClientId&#39;,
        o_auth_client_secret=&#39;OAuthClientSecret&#39;,
        o_auth_scopes=[
            OAuthScopeEnum.READ_SCOPE,
            OAuthScopeEnum.WRITE_SCOPE
        ],
        o_auth_token_provider=_o_auth_token_provider,
        o_auth_on_token_update=(lambda o_auth_token:
                                # Add the callback handler to perform operations like save to DB or file etc.
                                # It will be triggered whenever the token gets updated
                                save_token_to_database(o_auth_token))
    )
)
</code></pre>
<p><strong>C#</strong></p>
<pre><code class="language-csharp">SdkClient client = new SdkClient.Builder()
    .ClientCredentialsAuth(
        new ClientCredentialsAuthModel.Builder(
            &quot;OAuthClientId&quot;,
            &quot;OAuthClientSecret&quot;
        )
        .oAuthTokenProvider(async (token, credentialsManager) =&gt;
        {
            // Add the callback handler to provide a new OAuth token
            // It will be triggered whenever the lastOAuthToken is undefined or expired
            return LoadTokenFromDatabase() ?? await FetchTokenAsync()
        })
        .oAuthOnTokenUpdate(token -&gt; 
        {
            // It will be triggered whenever the token gets updated
            SaveTokenToDatabase(token);
        })
        .Build())
    .Build();
</code></pre>
<p><strong>Go</strong></p>
<pre><code class="language-go">client := Sdkclient.NewClient(
    Sdkclient.CreateConfiguration(
        Sdkclient.WithClientCredentialsAuthCredentials(
            Sdkclient.NewClientCredentialsAuthCredentials(
                &quot;OAuthClientId&quot;,
                &quot;OAuthClientSecret&quot;,
            ).
            WithOAuthOnTokenUpdate(func(oAuthToken models.OAuthToken) {
                // Add the callback handler to perform operations like save to DB or file etc.
                // It will be triggered whenever the token gets updated
                saveTokenToDatabase(oAuthToken)
            }).
            WithOAuthTokenProvider(func(lastOAuthToken models.OAuthToken, authManager ClientCredentialsAuthManager) models.OAuthToken {
                // Add the callback function handler to provide a new OAuth token
                // It will be triggered whenever the lastOAuthToken is undefined or expired
                oAuthToken := loadTokenFromDatabase()
                if oAuthToken.AccessToken == &quot;&quot; {
                    if token, err := authManager.FetchToken(context.TODO()); err == nil {
                        return token
                    }
                }
                return oAuthToken
            }),
        ),
    ),
)
</code></pre>
]]></content:encoded>
      <category>Improvement</category>
      <category>Security</category>
      <category>Auth2.0</category>
    </item>
    <item>
      <title>Announcing General Availability of APIMatic for VS Code Extension</title>
      <link>https://docs.apimatic.io/changelog/announcing-ga-of-apimatic-for-vscode</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/announcing-ga-of-apimatic-for-vscode</guid>
      <pubDate>Tue, 11 Jun 2024 00:00:00 GMT</pubDate>
      <description>Major updates in VS Code Extension.</description>
      <content:encoded><![CDATA[<p>We are excited to announce that the APIMatic for VS Code extension is now out of beta and generally available as <code>v1.0.0</code>.</p>
<p>This major release brings you several features to help you efficiently manage your API definitions:</p>
<ul>
<li><strong>Compliance with API Specification Standards</strong>: Enforces mandatory checks for standards like OpenAPI.</li>
<li><strong>Out-of-the-Box Lint Checks for Code Generation, Documentation and More</strong>: 542 lint rules, including 503 for OpenAPI, to ensure high-quality API definitions.</li>
<li><strong>Auto-fixing of Common Issues</strong>: Automatically fix issues like inline anonymous schemas.</li>
<li><strong>Enhanced Validation Experience</strong>: Dedicated views for quickly navigating and understanding validation issues.</li>
<li><strong>Merge-aware Validation</strong>: Validate multiple API definitions before and after merging.</li>
<li><strong>Multiple API Specification Formats</strong>: Support for OpenAPI, RAML, API Blueprint, WADL, WSDL, Postman Collections, and more.</li>
<li><strong>API Specification Format Transformation</strong>: Easily transform between API specification formats.</li>
<li><strong>Improved APIMatic Integration</strong>: Export API definitions directly to your APIMatic Dashboard for SDK/DX portal generation.</li>
</ul>
<p><img src="https://docs.apimatic.io/images/changelog/apimatic-for-vscode-getting-started.gif" alt="Extension"></p>
<h2>How to Update:</h2>
<p>To update to the latest version, simply open Visual Studio Code, go to the Extensions view, and check for updates. Alternatively, you can install it directly from the <a href="https://marketplace.visualstudio.com/items?itemName=apimatic-developers.apimatic-for-vscode&__hstc=245086810.2b533b0fade59d9ff8447ecf4505f32c.1699608692414.1706082233756.1706159622357.68&__hssc=245086810.2.1718082529303&__hsfp=4274364872&hsCtaTracking=a71b0d94-3c82-4f01-8650-1072ee264e52%7C5460378e-4f3a-43f1-985f-1290632e100e">Visual Studio Marketplace</a>.</p>
<p>For more details, visit our dedicated documentation <a href="https://docs.apimatic.io/validate-lint-apis/vs-code-apimatic-extension/overview/">here</a>.</p>
]]></content:encoded>
      <category>New</category>
      <category>VSCode Extension</category>
    </item>
    <item>
      <title>Introducing Keyword Arguments in Model Constructors in Ruby SDKs</title>
      <link>https://docs.apimatic.io/changelog/added-enable-model-keyword-args-in-ruby</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/added-enable-model-keyword-args-in-ruby</guid>
      <pubDate>Tue, 11 Jun 2024 00:00:00 GMT</pubDate>
      <description>We have introduced the support for keyword arguments in model instantiation. By default, the model constructors expect the positional arguments in the Ruby SDKs.</description>
      <content:encoded><![CDATA[<p>We have introduced the support for keyword arguments in model instantiation. By default, the model constructors expect the positional arguments in the Ruby SDKs.</p>
<h2>What&#39;s New?</h2>
<p>This update enforces the use of keyword arguments (kwargs) for all model constructor parameters. Previously, the positional arguments were allowed. Kwargs provide improved readability by explicitly naming arguments, and allow for more flexible model instantiation as the order no longer matters. This change promotes clarity and maintainability of the SDKs.</p>
<pre><code class="language-yaml">info:
  x-codegen-settings:
    EnableModelKeywordArgsInRuby: true
</code></pre>
<p>For more details on the <code>EnableModelKeywordArgsInRuby</code> CodegenSetting and its impact on the SDK behavior, refer to the <a href="https://docs.apimatic.io/generate-sdks/customize-sdks/codegen-settings/model-settings#enable-model-keyword-args-in-ruby">EnableModelKeywordArgsInRuby documentation</a>. This setting is only applied to the model constructor parameters.</p>
<p><strong>Disabled (Default)</strong></p>
<pre><code class="language-ruby">class User
  def initialize(name, email)
    @name = name
    @email = email
  end
end

# Creating a user (order matters!)
user = User.new(&quot;Alice&quot;, &quot;alice@example.com&quot;)
</code></pre>
<p><strong>Enabled</strong></p>
<pre><code class="language-ruby">class User
  def initialize(name:, email:)
    @name = name
    @email = email
  end
end

# Creating a user (order doesn&#39;t matter)
user = User.new(email: &quot;bob@example.com&quot;, name: &quot;Bob&quot;)  # Any order is valid
</code></pre>
]]></content:encoded>
      <category>Improvement</category>
    </item>
    <item>
      <title>Introducing SEO Friendly Developer Portal</title>
      <link>https://docs.apimatic.io/changelog/seo-friendly-portal</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/seo-friendly-portal</guid>
      <pubDate>Mon, 03 Jun 2024 00:00:00 GMT</pubDate>
      <description>We are excited to announce the latest addition to our Developer Portal: SEO-Friendly Features. These new features are designed to make your API documentation more discoverable by search engines, helping your users find the information they need quickly and efficiently.</description>
      <content:encoded><![CDATA[<p>We are excited to announce the latest addition to our Developer Portal: SEO-Friendly Features. These new features are designed to make your API documentation more discoverable by search engines, helping your users find the information they need quickly and efficiently.</p>
<blockquote>
<p><strong>Note</strong></p>
<p>This feature is <strong>only</strong> available in the portals created via Docs as Code workflow.</p>
</blockquote>
<h2>What is SEO?</h2>
<p>&quot;Search Engine Optimization&quot; is the process of improving your website&#39;s visibility in search engine results, making it easier for your users to find your website, such as when they are searching for a feature or a query on a search engine like Google.</p>
<p>Search Engine Optimization can be divided into three essential parts:</p>
<ul>
<li><strong>Search Crawler Support</strong>: Search engines must be able to discover all the pages and read their titles and content.</li>
<li><strong>On-Page SEO</strong>: Search engines must be able to understand the content, including any semantic information and associated metadata.</li>
<li><strong>Content SEO</strong>: Search engines must be able to find content that addresses the user&#39;s query.</li>
</ul>
<h2>What does APIMatic support?</h2>
<p>APIMatic aims to provide both Search Crawler Support and On-Page SEO.</p>
<p>Our <strong>Search Crawler Support</strong> enables search engines to index your documentation pages and users to find them. This is the most critical aspect of SEO and requires support from both APIMatic and server-side.</p>
<p>Our <strong>On-Page SEO</strong> support is improving and will eventually allow the search engines to understand the content on the page, such as the paragraphs, headings, tables, and structured information (such as endpoints). If you find any room for improvement, please report them to our support.</p>
<h2>More Details</h2>
<p>Generating an SEO-friendly API Documentation Portal can be acheived by making a few changes to the Build file and support from the server-side. You can find the relevant <a href="https://docs.apimatic.io/platform-api/#/http/guides/generating-on-prem-api-portal/search-engine-optimization">documentation here</a> to understand how to generate and host an SEO-friendly API Portal correctly.</p>
<blockquote>
<p><strong>Note</strong></p>
<p>This feature is <strong>off by default</strong>, and APIMatic will instead generate a Single-Page Application (SPA). SPAs are not SEO-friendly but more straightforward to deploy and less prone to deployment mistakes.</p>
</blockquote>
]]></content:encoded>
      <category>Search Engine Optimization</category>
      <category>Developer Portal</category>
      <category>Docs as Code</category>
    </item>
    <item>
      <title>Announcing Major Updates to Go SDKs</title>
      <link>https://docs.apimatic.io/changelog/announcing-major-updates-to-golang-sdks</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/announcing-major-updates-to-golang-sdks</guid>
      <pubDate>Fri, 24 May 2024 00:00:00 GMT</pubDate>
      <description>Major updates in Go.</description>
      <content:encoded><![CDATA[<p>We have introduced some significant enhancements and new features in our Go SDK.</p>
<h2>Multiple Authentication Scheme Support</h2>
<p>Our Go SDK now supports multiple authentication schemes. With this update, you can authorize your API calls using various combinations of <a href="https://docs.apimatic.io/v4/changelog#introducing-multiple-authentication">security schemes</a>.</p>
<h3>What Has Changed?</h3>
<p>This release introduces improvements to the interface of the ‘Configuration’ structure for setting up authentication credentials in the Go SDK. The credentials for each security scheme are now grouped into one instance, ensuring clean and descriptive client initialization. Explore the updated Go client initialization in our <a href="https://docs.apimatic.io/v4/changelog#introducing-multiple-authentication">documentation</a> for more details.</p>
<blockquote>
<p><strong>Note</strong></p>
<p>The previous <em>Single Authentication</em> flow is now unified with the <em>Multiple Authentication</em> flow. </p>
</blockquote>
<h2>oneOf and anyOf Support</h2>
<p>We are pleased to introduce support for oneOf and anyOf types in our Go SDKs. For a detailed overview of this support, please refer to the <a href="https://docs.apimatic.io/v4/changelog#introducing-support-for-oneof-anyof-in-golang">detailed documentation</a>.</p>
<h2>Revamping Go Code Samples</h2>
<p>Revamping of Go Code Samples brings significant improvements to generated code samples, especially in initializing parameters for APIs. Notable changes include simplifying code samples, fixing linting issues, and addressing bugs to enhance code readability and functionality. For detailed documentation about the revamping, please visit <a href="https://docs.apimatic.io/v4/changelog#revamp-golang-code-samples">here</a>.</p>
<h2>Dynamic Error Messages Support</h2>
<h3>What Has Changed?</h3>
<p>Previously, APIMatic&#39;s generated Go SDK supported <code>Custom Error Messages</code>, but the support for default cases and ranged HTTP response codes (4XX, 5XX) was missing. Now, with the improvements in Custom Error Messages for the Golang SDK, you can also customize these ranged error messages to provide meaningful information for failed calls. For more details on this feature, refer to <a href="https://docs.apimatic.io/generate-sdks/sdk-features/custom-error-messages/">Custom Error Messages</a>.</p>
<pre><code class="language-json">&quot;responses&quot;: {
    &quot;0&quot;: {
        &quot;description&quot;: &quot;Custom error message for default case.&quot;
    },
    &quot;4XX&quot;: {
        &quot;description&quot;: &quot;Custom Error template 4XX.&quot;
    },
    &quot;500&quot;: {
        &quot;description&quot;: &quot;Custom error message for 500.&quot;
    }
}
</code></pre>
<p>Although Custom Error Messages support customizing error responses, there was previously no way to provide information from the exception at runtime. To address this limitation, we have introduced <a href="https://docs.apimatic.io/generate-sdks/sdk-features/dynamic-error-messages/">Dynamic Error Messages</a>, allowing users to define templated placeholders that are populated at runtime. This feature can be configured by defining errors at either the endpoint level or globally.</p>
<pre><code class="language-json">&quot;ErrorTemplates&quot;: {
     &quot;0&quot;: &quot;Dynamic error message for default case: {$statusCode}, accept =&gt; {$response.header.content-type}, body =&gt; {$response.body}.&quot;,
   &quot;4XX&quot;: &quot;Dynamic Error template 4XX: {$statusCode}, accept =&gt; {$response.header.content-type}, body =&gt; {$response.body#/unknownProperty}.&quot;,
   &quot;402&quot;: &quot;Dynamic Error template 40X: {$statusCode}, accept =&gt; {$response.header.content-type}, body =&gt; {$response.body#/unknownProperty}.&quot;,
   &quot;500&quot;: &quot;Dynamic error message for 500&quot;,
}
</code></pre>
<p>Now, whenever an API call fails, dynamically configured error messages will be provided. For instance, in the case of error 402, the SDK will surface the following error response:
<strong>Default(0)</strong></p>
<pre><code>Dynamic error message for default case: `301`, accept =&gt; `application/json`, body =&gt; `Requested page has been permanently moved to a new location`.&quot;
</code></pre>
<p><strong>4XX</strong></p>
<pre><code>Dynamic Error template 4XX: `422`, accept =&gt; `application/json`, body =&gt; `Unable to process the request because it contains invalid data`.
</code></pre>
<p><strong>402</strong></p>
<pre><code>Dynamic Error template 40X: `402`, accept =&gt; `application/json`, body =&gt; `The HTTP 402 status code indicates that the client must make a payment to access the requested resource`.&quot;
</code></pre>
<p><strong>500</strong></p>
<pre><code>Dynamic error message for 500
</code></pre>
<p>For more details on Dynamic Error Messages, please refer to our <a href="https://docs.apimatic.io/generate-sdks/sdk-features/dynamic-error-messages/">feature documentation</a>.</p>
<h2>Array Serialization Support</h2>
<p>This serialization setting allows you to configure marshaling and un-marshaling values in APIMatic&#39;s Go SDK. This setting adds an array serialization scheme for primitive types (applicable to form and query params). Allowed values are: <code>Indexed</code>, <code>UnIndexed</code>, <code>Plain</code>, <code>CSV</code>, <code>TSV</code>, <code>PSV</code>. For more information refer to its <a href="https://docs.apimatic.io/generate-sdks/customize-sdks/codegen-settings/serialization-settings/#array-serialization">documentation</a>.</p>
<h3>What Has Changed?</h3>
<p>To use this feature in the Go SDK, you need to specify an <code>ArraySerialization</code> value. By default, its value is set to <code>Indexed</code>.</p>
<p><strong>Indexed</strong></p>
<pre><code class="language-go">`vehicleData[1]=1&amp;vehicleData[2]=2`
</code></pre>
<p><strong>UnIndexed</strong></p>
<pre><code class="language-go">`vehicleData[]=1&amp;vehicleData[]=2`
</code></pre>
<p><strong>Plain</strong></p>
<pre><code class="language-go">`vehicleData=1&amp;vehicleData=2`
</code></pre>
<p><strong>CSV</strong></p>
<pre><code class="language-go">`vehicleData=1,2` // Only for query parameters
</code></pre>
<p><strong>TSV</strong></p>
<pre><code class="language-go">`vehicleData=1\t2` // Only for query parameters
</code></pre>
<p><strong>PSV</strong></p>
<pre><code class="language-go">`vehicleData=1|2` // Only for query parameters
</code></pre>
<h2>WrapBodyInObject Support</h2>
<p>It is an endpoint setting used to wrap multiple body parameters in a single object, which provides ease in marshaling and unmarshalling body parameters in Go SDK.</p>
<h3>What Has Changed?</h3>
<p>In the API specification, this setting will be enabled (true) at the endpoint level. By default, it is disabled (false). For more information about its <code>multiple-body-parameters</code> ruleset, you can refer to its <a href="https://docs.apimatic.io/rulesets/apimatic-preliminary-validation/multiple-body-parameters/">documentation</a>.</p>
<h2>CollectParameters Support</h2>
<p>It is also an endpoint setting used to collect more than one parameter into a single collection (map), which provides ease in initializing parameters in Go SDK. For more information about <a href="https://docs.apimatic.io/specification-extensions/swagger-codegen-extensions/#operation-settings">CollectParameters</a>, and it&#39;s <a href="https://docs.apimatic.io/rulesets/apimatic-codegen-validation/same-parameters-name-for-parameter-collection/#overview">ruleset</a> regarding <code>same-parameters-name-for-parameter-collection</code>, you can refer to their documentation.</p>
<h2>Enable Additional Model Properties Support</h2>
<p>This setting comes under the category of Model Code Generation Settings, this setting allows to add additional properties of models that are not part of the model description, by default these properties will be discarded during marshaling and unmarshalling of the model.</p>
<h3>What Has Changed?</h3>
<p>To integrate this setting, you can follow its <a href="https://docs.apimatic.io/generate-sdks/customize-sdks/codegen-settings/model-settings/#enable-additional-model-properties">documentation</a>.
In the generated Golang code, you will find an additional field named <code>AdditionalProperties</code> in all your models. This field is responsible for handling additional model properties. Additionally, it has a special JSON tag <code>json:&quot;_&quot;</code> that is used to ignore this field during marshaling and unmarshaling.</p>
<pre><code class="language-go">type Car struct {
   ...
   AdditionalProperties map[string]any `json:&quot;_&quot;`
   ...
}
</code></pre>
<h2>Allow Dynamic Form/Query Parameters Support</h2>
<h3>Allow Dynamic Form Parameters</h3>
<p>This is an optional advanced setting used to customize the generated code for endpoint parameters, allowing the inclusion of additional form Parameters not described in the endpoint definition. Its <a href="https://docs.apimatic.io/specification-extensions/swagger-codegen-extensions/#operation-settings:~:text=Key%2DValue%20pairs.-,allowDynamicFormParameters,-Boolean">documentation</a> will provide more insights about <code>allowDynamicFormParameters</code>.</p>
<pre><code class="language-go">func (f *FormParamsController) AllowDynamicFormParam(
   ...
   formParams map[string]any)
</code></pre>
<h3>Allow Dynamic Query Parameters</h3>
<p>This is also an optional advanced setting used to customize the generated code for endpoint parameters, allowing additional query parameters that are not described in the endpoint definition to be passed. Its <a href="https://docs.apimatic.io/specification-extensions/swagger-codegen-extensions/#operation-settings:~:text=generated%20from%20schemas.-,allowDynamicQueryParameters,-Boolean">documentation</a> can provide more information about <code>allowDynamicQueryParameters</code>.</p>
<pre><code class="language-go">func (q *QueryParamController) OptionalDynamicQueryParam(
   ...
   queryParams map[string]any)
</code></pre>
<h2>IsLatestVersion Support</h2>
<p><code>IsLatestVersion</code> is an SDK Docs Configuration setting that allows you to transform your installation commands into generic ones. This way, you can avoid the need to update the documentation with each SDK release. More details can be found <a href="https://docs.apimatic.io/generate-sdks/customize-sdks/codegen-settings/docs-settings/#is-latest-version">here</a>.</p>
<h3>What Has Changed?</h3>
<p><strong>Disabled</strong></p>
<pre><code class="language-go">$ go get github.com/apimatic-com/ab-golang-sdk@v1.0.0-prealpha.0
You can also view the package at: https://pkg.go.dev/github.com/apimatic-com/ab-golang-sdk@v1.0.0-prealpha.0
</code></pre>
<p><strong>Enabled</strong></p>
<pre><code class="language-go">$ go get github.com/apimatic-com/ab-golang-sdk
You can also view the package at: https://pkg.go.dev/github.com/apimatic-com/ab-golang-sdk
</code></pre>
]]></content:encoded>
      <category>New</category>
      <category>Golang</category>
      <category>Improvement</category>
    </item>
    <item>
      <title>Introducing oneOf and anyOf Support in Go</title>
      <link>https://docs.apimatic.io/changelog/introducing-support-for-oneof-anyof-in-golang</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/introducing-support-for-oneof-anyof-in-golang</guid>
      <pubDate>Fri, 24 May 2024 00:00:00 GMT</pubDate>
      <description>We have introduced support for oneOf and anyOf types in our Go SDKs.</description>
      <content:encoded><![CDATA[<p>We have introduced support for oneOf and anyOf types in our Go SDKs.</p>
<h2>Details</h2>
<p>In OpenAPI, any request parameter or response payload could use union types i.e. oneOf/anyOf, which provides the flexibility of accepting different types of request parameters and returning various types of response payload. Here is an example of an API call using union types.</p>
<pre><code class="language-yaml">paths:
 /send/combined:
    post:
      summary: Send Combined
      operationId: SendCombined
      requestBody:
        required: true
        content:
          application/json:
            schema:
              oneOf:
                - $ref: &#39;#/components/schemas/Car&#39;
                - $ref: &#39;#/components/schemas/Morning&#39;
                - $ref: &#39;#/components/schemas/Atom&#39;

      responses:
        &#39;200&#39;:
          description: Send Combined successfully
          content:
            application/json:
              schema:
                anyOf:
                - type: integer
                  format: int32
                - $ref: &#39;#/components/schemas/Atom&#39;
                - nullable: true
...
</code></pre>
<p>The API call, shown in the OpenApi format above, is a post-call that takes in either <code>Car</code>, <code>Morning</code>, or <code>Atom</code> as request payload. Previously, union types were not supported therefore the endpoint was expecting the combined schema object <code>map[string]interface{}</code> as a parameter. Here is how the parameter initialization would look like when calling the endpoint.
<strong>Before</strong></p>
<pre><code class="language-go">sendCombinedBody := map[string]interface{}{
    &quot;NumberOfTyres&quot;: &quot;4&quot;,
    &quot;HaveTrunk&quot;: true,
}

apiResponse, err := senderController.SendCombined(ctx, sendCombinedBody)
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-go">sendCombinedBody := models.SendCombinedBodyContainer.
    FromCar(models.Car{
        HaveTrunk: true,
        Vehicle: models.Vehicle{
            NumberOfTyres: &quot;4&quot;,
        },
    })

apiResponse, err := senderController.SendCombined(ctx, sendCombinedBody)
</code></pre>
<p>Now, we have containers that can hold different types of data combined. With these containers, you can check what type of data is inside using the functions.</p>
<p><strong>Before</strong></p>
<pre><code class="language-go">apiResponse, err := senderController.SendCombined(ctx, sendCombinedBody)

if apiResponse.Data != nil {

    fmt.Println(apiResponse.Data)
    
}
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-go">apiResponse, err := senderController.SendCombined(ctx, sendCombinedBody)

if atom, isAtom := apiResponse.Data.AsAtom(); isAtom {
    
    fmt.Println(atom)

} else if number, isNumber := apiResponse.Data.AsNumber(); isNumber {

    fmt.Println(number)

}
</code></pre>
<p>In the above code snippet, <code>SendCombined</code> will return either an <code>Atom</code> or <code>Number</code> instance as the response payload. Previously, it was considered as an <code>interface{}</code> object response which allowed any type of response payload. Now, with the introduction of oneOf and anyOf support, we can validate that the response can be either <code>Atom</code> or <code>Number</code>.</p>
<h2>What has Changed?</h2>
<p>The Go SDK now can handle union types in an endpoint&#39;s request and response. The type validation for union types is also added to support the oneOf/anyOf constraints.</p>
<h3>Introducing Containers</h3>
<p>Container types are introduced in the Go SDK to manage union types. The union types cases are contained in a container, and their marshaling and un-marshaling are also handled in the same container. This container type exposes the <code>From&lt;#CaseName&gt;</code> method to set the case value and <code>As&lt;#CaseName&gt;</code> methods to retrieve type converted values, respectively. </p>
<h3>Changes in Models</h3>
<p>Now, every model type has an internal <code>validate()</code> function for all the required properties to verify that required properties are present in the model. </p>
<h3>Changes in Endpoints</h3>
<h4>Endpoint Doc Changes</h4>
<p>The endpoint&#39;s doc string has been updated to describe union-type parameters or return types.</p>
<p><strong>Before</strong></p>
<pre><code class="language-go">// SendCombined takes context, sendCombinedBody as parameters and
// returns a model.ApiResponse with interface{} data and
// an error if there was an issue with the request or response.
func (s *SenderController) SendCombined(
    ctx context.Context,
    sendCombinedBody interface{}) (
    models.ApiResponse[interface{}],
    error)
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-go">// SendCombined takes context, sendCombinedBody as parameters and
// returns a model.ApiResponse with *models.MixedParamResponse data and
// an error if there was an issue with the request or response.
func (s *SenderController) SendCombined(
    ctx context.Context,
    sendCombinedBody models.SendCombinedBody) (
    models.ApiResponse[*models.MixedParamResponse],
    error)
</code></pre>
<h3>README Changes</h3>
<p>Now, the Go SDK README will reflect the support for union types in parameter types or response types.
<strong>Before</strong></p>
<p><img src="https://docs.apimatic.io/v4/images/changelog/golang-oaf-Readme-before.png" alt="readme_before"></p>
<p><strong>After</strong></p>
<p><img src="https://docs.apimatic.io/v4/images/changelog/golang-oaf-Readme-after.png" alt="readme_after"></p>
]]></content:encoded>
      <category>New</category>
      <category>Golang</category>
    </item>
    <item>
      <title>Revamp Go Code Samples for Inline Initialization</title>
      <link>https://docs.apimatic.io/changelog/revamp-golang-code-samples</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/revamp-golang-code-samples</guid>
      <pubDate>Fri, 24 May 2024 00:00:00 GMT</pubDate>
      <description>We have implemented several enhancements to the Go code samples, improving the developer experience by enabling developers to initialize inline code without encountering errors and to get started quickly.</description>
      <content:encoded><![CDATA[<p>We have implemented several enhancements to the Go code samples, improving the developer experience by enabling developers to initialize inline code without encountering errors and to get started quickly.</p>
<h2>Details</h2>
<p>This release introduces significant improvements to the code samples, especially for initializing parameters, generated for your API. We&#39;ve made several updates to ensure that the code samples are idiomatic, easier to understand, and production-ready. </p>
<p>The new code samples are designed to enhance the developer experience with inline code initialization, allowing users to grasp the intention of an endpoint regarding the parameters and how they are being initialized. This will enable them to quickly get started with your API by skimming through the code samples</p>
<h2>What Has Changed?</h2>
<p>To conform to Go’s linter standards, the updated Go code samples undergo linting, specifically through the <strong>staticcheck</strong> tool (you can find more about it <a href="https://staticcheck.io/docs/">here</a>).</p>
<p>The following major improvements have been made to the Go code samples:</p>
<ul>
<li>Simplified the code samples to make them easier to read and understand by using inline initialization of parameters and proper indentation of code samples.</li>
<li>Linting issues were fixed to ensure that code samples comply with the best practices in terms of coding styles and standards.</li>
<li>Bugs and errors have been fixed, ensuring that code samples work as expected.</li>
</ul>
<h2>Parameter Initialization Section</h2>
<h3>Model Initialization</h3>
<p>The initialization of model fields has been done inline to ensure the integrity of the object structure and to improve code readability.</p>
<p><strong>Before</strong></p>
<pre><code class="language-go">modelHiredAt, err := time.Parse(time.RFC1123, &quot;Mon, 15 Jun 2009 20:45:30 GMT&quot;)
if err != nil {
    log.Fatalln(err)
}
modelDependents0 := models.Person{
    Age:        int64(28),
    Name:       &quot;name8&quot;,
    PersonType: models.ToPointer(&quot;Per&quot;),
}

modelDependents := []models.PersonInterface{&amp;modelDependents0}

model := models.Employee{
    Department:  &quot;department8&quot;,
    JoiningDay:  models.Days(&quot;Monday&quot;),
    Salary:      240,
    WorkingDays: []models.Days{models.Days(&quot;Thursday&quot;), models.Days(&quot;Wednesday&quot;), models.Days(&quot;Tuesday&quot;)},
    HiredAt:     modelHiredAt,
    Dependents:  modelDependents,
}
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-go">model := models.EmployeeInterface(&amp;models.Employee{
    Department:  &quot;department8&quot;,
    JoiningDay:  models.Days(&quot;Monday&quot;),
    Salary:      240,
    WorkingDays: []models.Days{
        models.Days(&quot;Thursday&quot;),
        models.Days(&quot;Wednesday&quot;),
        models.Days(&quot;Tuesday&quot;),
    },
    HiredAt:     parseTime(time.RFC1123, &quot;Mon, 15 Jun 2009 20:45:30 GMT&quot;, func(err error) { log.Fatalln(err) }),
    Dependents:  []models.PersonInterface{
        models.PersonInterface(&amp;models.Person{
            Age:        int64(28),
            Name:       &quot;name8&quot;,
            PersonType: models.ToPointer(&quot;Per&quot;),
        }),
    },
})
</code></pre>
<h3>DateTime Initialization</h3>
<p>The initialization of DateTime fields has been done inline by creating a wrapper function to ensure the integrity of the object structure and improve code readability.</p>
<p><strong>Before</strong></p>
<pre><code class="language-go">modelBirthday, err := time.Parse(models.DEFAULT_DATE, &quot;2016-03-13T12:52:32.123Z&quot;)
if err != nil {
    log.Fatalln(err)
}
model := models.Person{
    Name:       &quot;name8&quot;,
    Birthday:   modelBirthday,
}
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-go">model := models.Person{
    Name:       &quot;name8&quot;,
    Birthday:   parseTime(models.DEFAULT_DATE, &quot;2016-03-13T12:52:32.123Z&quot;, func(err error) { log.Fatalln(err) }),
}
</code></pre>
<h3>Array Initialization</h3>
<p>The initialization of array(slice) fields has been done in a single object to ensure the integrity of the object structure and to improve code readability.</p>
<p><strong>Before</strong></p>
<pre><code class="language-go">mModels0Dependents0 := models.Person{
    Age:        int64(28),
    Name:       &quot;name8&quot;,
    PersonType: models.ToPointer(&quot;Per&quot;),
}
mModels0Dependents := []models.PersonInterface{&amp;mModels0Dependents0}
mModels0 := models.Employee{
    Salary:      88,
    WorkingDays: []models.Days{models.Days(&quot;Saturday&quot;), models.Days(&quot;Sunday&quot;)},
    Dependents:  mModels0Dependents,
}

mModels := []models.EmployeeInterface{&amp;mModels0}
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-go">mModels := []models.EmployeeInterface{
    models.EmployeeInterface(&amp;models.Employee{
        Salary:      88,
        WorkingDays: []models.Days{
            models.Days(&quot;Saturday&quot;),
            models.Days(&quot;Sunday&quot;),
        },
        Dependents:  []models.PersonInterface{
            models.PersonInterface(&amp;models.Person{,
                Age:        int64(28),
                Name:       &quot;name8&quot;,
                PersonType: models.ToPointer(&quot;Per&quot;),
            }),
        },
    }),
}
</code></pre>
<h3>Map Initialization</h3>
<p>The initialization of map fields has been done in a single object of key-value pairs to ensure the integrity of the object structure and to improve code readability.</p>
<p><strong>Before</strong></p>
<pre><code class="language-go">mModelsKey0 := models.Employee{
    Department:  &quot;department6&quot;,
    JoiningDay:  models.Days(&quot;Tuesday&quot;),
    Salary:      66,
}

mModelsKey1 := models.Employee{
    Department:  &quot;department7&quot;,
    JoiningDay:  models.Days(&quot;Saturday&quot;),
    Salary:      88,
}

mModels := map[string]models.EmployeeInterface{
    &quot;key0&quot; : &amp;mModelsKey0,
    &quot;key1&quot; : &amp;mModelsKey1,
}
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-go">mModels := map[string]models.EmployeeInterface{
    &quot;key0&quot;: models.EmployeeInterface(&amp;models.Employee{
        Department:  &quot;department6&quot;,
        JoiningDay:  models.Days(&quot;Tuesday&quot;),
        Salary:      66,
    }),
    &quot;key1&quot;: models.EmployeeInterface(&amp;models.Employee{
        Department:  &quot;department7&quot;,
        JoiningDay:  models.Days(&quot;Saturday&quot;),
        Salary:      88,
    }),
}
</code></pre>
<h2>A Comparison of Complete Example Code</h2>
<p>The following example shows the complete comparison between the code sample generation for initializing an employee model as an input parameter for the <code>SendModel</code> endpoint.</p>
<p><strong>Before</strong></p>
<pre><code class="language-go">package main

import (
    &quot;fmt&quot;
    &quot;log&quot;
    &quot;context&quot;
    &quot;tester&quot;
    &quot;time&quot;
    &quot;tester/models&quot;
)

func main() {
    client := tester.NewClient(
        tester.CreateConfiguration(),
    )
    bodyParamsController := client.BodyParamsController()

    ctx := context.Background()
    
    
    modelHiredAt, err := time.Parse(time.RFC1123, &quot;Mon, 15 Jun 2009 20:45:30 GMT&quot;)
    if err != nil {
        log.Fatalln(err)
    }
    modelDependents0Birthday, err := time.Parse(models.DEFAULT_DATE, &quot;2016-03-13T12:52:32.123Z&quot;)
    if err != nil {
        log.Fatalln(err)
    }
    modelDependents0 := models.Person{
        Address:    &quot;address4&quot;,
        Age:        int64(28),
        Name:       &quot;name8&quot;,
        Uid:        &quot;uid8&quot;,
        PersonType: models.ToPointer(&quot;Per&quot;),
        Birthday:   modelDependents0Birthday,
    }
    
    
    modelDependents := []models.PersonInterface{&amp;modelDependents0}
    
    model := models.Employee{
        Department:  &quot;department8&quot;,
        JoiningDay:  models.Days(&quot;Monday&quot;),
        Salary:      240,
        WorkingDays: []models.Days{models.Days(&quot;Thursday&quot;), models.Days(&quot;Wednesday&quot;), models.Days(&quot;Tuesday&quot;)},
        HiredAt:     modelHiredAt,
        Dependents:  modelDependents,
    }

    apiResponse, err := bodyParamsController.SendModel(ctx, &amp;model)
    if err != nil {
        log.Fatalln(err)
    } else {
        // Printing the result and response
        fmt.Println(apiResponse.Data)
        fmt.Println(apiResponse.Response.StatusCode)
    }
}
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-go">package main

import (
    &quot;fmt&quot;
    &quot;log&quot;
    &quot;context&quot;
    &quot;tester&quot;
    &quot;time&quot;
    &quot;tester/models&quot;
)

func main() {
    parseTime := func(layout, value string, errCallback func(error)) time.Time {
        dateTime, err := time.Parse(layout, value)
        if err != nil {
            errCallback(err) 
       }
        return dateTime
    }
    client := tester.NewClient(
        tester.CreateConfiguration(),
    )
    bodyParamsController := client.BodyParamsController()

    ctx := context.Background()

    model := models.EmployeeInterface(&amp;models.Employee{
        Department:  &quot;department8&quot;,
        Dependents:  []models.PersonInterface{
            models.PersonInterface(&amp;models.Person{
                Address:    &quot;address4&quot;,
                Age:        int64(28),
                Birthday:   parseTime(models.DEFAULT_DATE, &quot;2016-03-13T12:52:32.123Z&quot;, func(err error) { log.Fatalln(err) }),
                Name:       &quot;name8&quot;,
                Uid:        &quot;uid8&quot;,
                PersonType: models.ToPointer(&quot;Per&quot;),
            }),
        },
        HiredAt:     parseTime(time.RFC1123, &quot;Mon, 15 Jun 2009 20:45:30 GMT&quot;, func(err error) { log.Fatalln(err) }),
        JoiningDay:  models.Days(&quot;Monday&quot;),
        Salary:      240,
        WorkingDays: []models.Days{
            models.Days(&quot;Thursday&quot;),
            models.Days(&quot;Wednesday&quot;),
            models.Days(&quot;Tuesday&quot;),
        },
    })

    apiResponse, err := bodyParamsController.SendModel(ctx, model)
    if err != nil {
        log.Fatalln(err)
    } else {
        // Printing the result and response
        fmt.Println(apiResponse.Data)
        fmt.Println(apiResponse.Response.StatusCode)
    }
}
</code></pre>
<h2>Bugs Fixed</h2>
<ul>
<li>Fixed indentation issues in the parameters initialization section.</li>
</ul>
]]></content:encoded>
      <category>Improvement</category>
      <category>Golang</category>
      <category>Code Samples</category>
    </item>
    <item>
      <title>Introducing Configurable Logging Support in PHP, Python, Ruby, Go, and C# SDKs</title>
      <link>https://docs.apimatic.io/changelog/added-support-for-logging-php-ruby-cshsarp-python</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/added-support-for-logging-php-ruby-cshsarp-python</guid>
      <pubDate>Mon, 13 May 2024 00:00:00 GMT</pubDate>
      <description>We have introduced configurable logging for API calls in PHP, Python, Ruby, Go, and C# SDKs.</description>
      <content:encoded><![CDATA[<p>We have introduced configurable logging for API calls in PHP, Python, Ruby, Go, and C# SDKs.</p>
<p>In one of our previous updates, we introduced the configurable logging feature in both Java and TypeScript SDKs. You can find more details <a href="https://docs.apimatic.io/v4/changelog#added-support-for-logging">here</a>.</p>
<h2>What&#39;s New?</h2>
<p>Logging in a software application is essential when it comes to capturing activity data for troubleshooting, security auditing, and performance analysis. This feature can now be activated in SDKs using the <code>EnableLogging</code> codegen setting.</p>
<pre><code class="language-yaml">info:
  x-codegen-settings:
    EnableLogging: true
</code></pre>
<p>For more details on the <code>EnableLogging</code> CodegenSetting and its impact on SDK behavior, please refer to the <a href="https://docs.apimatic.io/generate-sdks/customize-sdks/codegen-settings/sdk-interface-customization/#enable-logging">EnableLogging documentation</a>.</p>
<p>Below are the logging configuration options that users can apply when logging API calls.</p>
<h3>General Logging Configuration Options</h3>
<ul>
<li><strong>Level</strong>: Defines the log message severity or priority (e.g., DEBUG, INFO, WARN, ERROR, FATAL).</li>
<li><strong>Logger</strong>: Allows users to provide a custom logger implementation.</li>
<li><strong>Mask Sensitive Headers</strong>: A global setting to mask sensitive HTTP headers in both requests and responses before logging, safeguarding confidential data.</li>
</ul>
<h4>Request Logging Configuration Options</h4>
<ul>
<li><strong>Log Body</strong>: Controls the logging of the request body.</li>
<li><strong>Log Headers</strong>: Controls the logging of request headers.</li>
<li><strong>Exclude Headers</strong>: Excludes specified headers from the log output.</li>
<li><strong>Include Headers</strong>: Includes only specified headers in the log output.</li>
<li><strong>Unmask Headers</strong>: Logs specified headers without masking, revealing their actual values.</li>
<li><strong>Include Query in Path</strong>: Determines whether to include query parameters in the logged request path.</li>
</ul>
<h4>Response Logging Configuration Options</h4>
<ul>
<li><strong>Log Body</strong>: Controls the logging of the response body.</li>
<li><strong>Log Headers</strong>: Controls the logging of response headers.</li>
<li><strong>Exclude Headers</strong>: Excludes specified headers from the log output.</li>
<li><strong>Include Headers</strong>: Includes only specified headers in the log output.</li>
<li><strong>Unmask Headers</strong>: Logs specified headers without masking, revealing their actual values.</li>
</ul>
<p>These configurations can be set during SDK client initialization. Below are examples demonstrating how to use these configurations in various programming languages.</p>
<p><strong>PHP</strong></p>
<pre><code class="language-php">$client = SdkClientBuilder::init()
    -&gt;loggingConfiguration(
        LoggingConfigurationBuilder::init()
            -&gt;level(LogLevel::INFO)
            -&gt;maskSensitiveHeaders(true)
            -&gt;requestConfiguration(
                RequestLoggingConfigurationBuilder::init()
                    -&gt;body(true)
                    -&gt;headers(true)
                    -&gt;includeQueryInPath(true)
                    -&gt;includeHeaders(&#39;Content-Type&#39;, &#39;Content-Encoding&#39;)
            )
            -&gt;responseConfiguration(
                ResponseLoggingConfigurationBuilder::init()
                    -&gt;headers(true)
                    -&gt;excludeHeaders(&#39;X-Powered-By&#39;)
            )
    )
    -&gt;build();
</code></pre>
<p><strong>Python</strong></p>
<pre><code class="language-python">client = SDKClient(
    logging_configuration=LoggingConfiguration(
        log_level=logging.INFO,
        mask_sensitive_headers=True,
        request_logging_config=RequestLoggingConfiguration(
            log_body=True,
            log_headers=True,
            include_query_in_path=True,
            headers_to_include=[&#39;Content-Type&#39;, &#39;Content-Encoding&#39;]
        ),
        response_logging_config=ResponseLoggingConfiguration(
            log_headers=True,
            headers_to_exclude=[&#39;X-Powered-By&#39;]
        )
    )
)
</code></pre>
<p><strong>Ruby</strong></p>
<pre><code class="language-ruby">client = SDKClient.new(
  logging_configuration: LoggingConfiguration.new(
    log_level: Logger::INFO,
    mask_sensitive_headers: true,
    request_logging_config: RequestLoggingConfiguration.new(
      log_body: true,
      log_headers: true,
      include_query_in_path: true,
      headers_to_include: %w[Content-Type Content-Encoding]
    ),
    response_logging_config: ResponseLoggingConfiguration.new(
      log_headers: true,
      headers_to_exclude: [&#39;X-Powered-By&#39;]
    )
  )
)
</code></pre>
<p><strong>Go</strong></p>
<pre><code class="language-go">config := CreateConfigurationFromEnvironment(
  WithLoggerConfiguration(
    WithLevel(&quot;info&quot;),
    WithMaskSensitiveHeaders(true),
    WithRequestConfiguration(
        WithRequestBody(true),
        WithRequestHeaders(true),
        WithIncludeQueryInPath(true),
        WithIncludeRequestHeaders(&quot;Content-Type&quot;, &quot;Content-Encoding&quot;),
    ),
    WithResponseConfiguration(
        WithResponseHeaders(true),
        WithExcludeResponseHeaders(&quot;X-Powered-By&quot;),
    ),
  ),
)

client := NewClient(config)
</code></pre>
<p><strong>C#</strong></p>
<pre><code class="language-csharp">SdkClient client = new SdkClient.Builder()
    .LoggingConfig(config =&gt; config
        .LogLevel(LogLevel.Information)
        .MaskSensitiveHeaders(true)
        .RequestConfig(reqConfig =&gt; reqConfig
            .Body(true)
            .Headers(true)
            .IncludeQueryInPath(true)
            .IncludeHeaders(&quot;Content-Type&quot;, &quot;Content-Encoding&quot;))
        .ResponseConfig(respConfig =&gt; respConfig
            .Headers(true)
            .ExcludeHeaders(&quot;X-Powered-By&quot;))
    )
    .Build();
</code></pre>
]]></content:encoded>
      <category>Improvement</category>
      <category>Logging</category>
    </item>
    <item>
      <title>Introducing Fix My OpenAPI VS Code Extension v0.5.0-beta</title>
      <link>https://docs.apimatic.io/changelog/introducing-fix-my-openapi-extension-verison-0-5-0</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/introducing-fix-my-openapi-extension-verison-0-5-0</guid>
      <pubDate>Fri, 03 May 2024 18:00:00 GMT</pubDate>
      <description>We've released the latest version 0.5.0-beta of our FixMyOpenAPI VS Code extension with new features and improvements for better OpenAPI spec validation. You may upgrade now to enhance your API development workflow!</description>
      <content:encoded><![CDATA[<p>We&#39;ve released the latest version 0.5.0-beta of our FixMyOpenAPI VS Code extension with new features and improvements for better OpenAPI spec validation. You may upgrade now to enhance your API development workflow!</p>
<h2>Details</h2>
<h3>Improved User Experience</h3>
<ul>
<li><strong>Getting Started Guide:</strong> A new walkthrough to help users get started with the extension quickly.</li>
<li><strong>Large Workspace Validation:</strong> Informational message with an option to cancel long-running validations (&gt; 20 seconds) for large workspaces.</li>
<li><strong>Clearer View Names:</strong> Renamed &quot;Violations at Current File Position&quot; to &quot;Active Violations&quot; for better understanding.</li>
<li><strong>Enhanced Validation Summary:</strong> <ul>
<li>New &quot;Code Generation&quot; and &quot;Documentation&quot; categories for easier navigation. </li>
<li>Improved tooltips with user-friendly descriptions. </li>
<li>Added collapsing functionality for better organization.</li>
</ul>
</li>
<li><strong>Synchronized Views:</strong> Validation Summary now reacts to selected violations in the Active Violations view. A &quot;Selected&quot; category in Active Violations displays details of the chosen violation.</li>
<li><strong>Active Violations View Enhancements:</strong> <ul>
<li>Option to show all build messages at the start of the main API definition file. </li>
<li>Display of file information in violation details.</li>
</ul>
</li>
<li><strong>File Navigator Improvements:</strong> <ul>
<li>Loading view while the view is populating. </li>
<li>Ability to exclude files/folders using a new &quot;Exclude&quot; option. </li>
<li>Automatic highlighting of the active file in the editor. </li>
<li>Faster loading times.</li>
</ul>
</li>
<li><strong>Improved Status Bar:</strong> Fixed glitches in messages caused by multiple components updating simultaneously.</li>
<li><strong>Help and User Session:</strong> <ul>
<li>Renamed &quot;Report Issues&quot; to &quot;Help&quot; with enhanced content and default visibility. </li>
<li>Option to start the Getting Started walkthrough from Help. </li>
<li>Manage Session view now visible by default with options to close the workspace and reset &amp; logout. </li>
<li>Improved confirmation message for logout.</li>
</ul>
</li>
<li><strong>File Recognition:</strong> Fixed issue of OpenAPI files not being recognized due to JSON/YAML syntax errors.</li>
<li><strong>Performance Optimizations:</strong> <ul>
<li>Reduced number of API workspace validation calls. </li>
<li>Faster File Navigator loading and Build feature execution times.</li>
</ul>
</li>
<li><strong>Auto-fixing:</strong> Added support for auto-fixing actions that involve file creation with undo functionality.</li>
<li><strong>General Fixes:</strong> <ul>
<li>Resolved issues with editor diagnostic messages persisting, workspace closing behavior, export/transform functionality, workspace opening responsiveness, empty workspace error, and status bar message visibility. </li>
<li>Fixed empty main API file import on Linux. </li>
<li>Improved messages for File Navigator refresh.</li>
</ul>
</li>
</ul>
<h3>API Validator Updates</h3>
<p>We are actively expanding our set of validation/linting rules to better validate an OpenAPI definition. In pursuit of this goal, we have added certain rules to our existing rulesets.</p>
<h4><a href="https://docs.apimatic.io/rulesets/openapi-v3-apimatic-linting/overview/">OpenAPI v3 APIMatic Linting</a></h4>
<h5>Newly Added Rules</h5>
<ul>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-apimatic-linting/alphabetical-global-tags/">Alphabetical Global Tags</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-apimatic-linting/alphabetical-operation-tags/">Alphabetical Operation Tags</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-apimatic-linting/no-additional-apimatic-vendor-extension-property/">No Additional Apimatic Vendor Extension Property</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-apimatic-linting/no-binary-schema-for-json-request-body-content/">No Binary Schema for JSON Request Body Content</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-apimatic-linting/no-binary-schema-for-json-response-content/">No Binary Schema for JSON Response Content</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-apimatic-linting/no-binary-schema-for-operation-parameter/">No Binary Schema for Operation Parameter</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-apimatic-linting/no-dynamic-form-parameters-in-delete-operation/">No Dynamic Form Parameters in Delete Operation</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-apimatic-linting/no-dynamic-form-parameters-in-get-operation/">No Dynamic Form Parameters in Get Operation</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-apimatic-linting/no-dynamic-form-parameters-in-head-operation/">No Dynamic Form Parameters in Head Operation</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-apimatic-linting/no-equivalent-schema-definitions/">No Equivalent Schema Definitions</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-apimatic-linting/no-explicit-schema-type-implies-any-type/">No Explicit Schema Type Implies Any Type</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-apimatic-linting/no-query-string-in-path/">No Query String in Path</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-apimatic-linting/no-response-content-implies-reponse-with-no-body/">No Response Content Implies Response with No Body</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-apimatic-linting/no-schema-default-for-required-property/">No Schema Default for Required Property</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-apimatic-linting/non-conflicting-api-key-header-and-additional-header/">Non-Conflicting API Key Header and Additional Header</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-apimatic-linting/non-empty-license-name/">Non-Empty License Name</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-apimatic-linting/object-schema-boundaries-defined/">Object Schema Boundaries Defined</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-apimatic-linting/sorted-responses-keys/">Sorted Responses Keys</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-apimatic-linting/unique-discriminator-mapping-key/">Unique Discriminator Mapping Key</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-apimatic-linting/unique-oauth-flow-scopes-key/">Unique OAuth Flow Scopes Key</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-apimatic-linting/unique-schema-component-key/">Unique Schema Component Key</a></li>
</ul>
<h4><a href="https://docs.apimatic.io/rulesets/openapi-v3-apimatic-syntax-linting/overview/">OpenAPI v3 APIMatic Syntax Linting</a></h4>
<h5>Newly Added Rules</h5>
<ul>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-apimatic-syntax-linting/valid-image-uri/">Valid Image URI</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-apimatic-syntax-linting/valid-info-version/">Valid Info Version</a></li>
</ul>
<h4><a href="https://docs.apimatic.io/rulesets/openapi-v3-codegen-syntax-linting/overview/">OpenAPI v3 Syntax Linting for APIMatic Code Generation</a></h4>
<h5>Newly Added Rules</h5>
<ul>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-codegen-syntax-linting/no-trailing-leading-spaces-in-test-case-name/">No Trailing Leading Spaces in Test Case Name</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-codegen-syntax-linting/test-case-request-uri-begins-with-forward-slash/">Test Case Request URI Begins With Forward Slash</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-codegen-syntax-linting/valid-additional-header-name/">Valid Additional Header Name</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-codegen-syntax-linting/valid-api-key-security-scheme-name/">Valid API Key Security Scheme Name</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-codegen-syntax-linting/valid-apimatic-extension-property-type/">Valid Apimatic Extension Property Type</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-codegen-syntax-linting/valid-controller-postfix-codegen-setting/">Valid Controller Postfix Codegen Setting</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-codegen-syntax-linting/valid-do-not-split-words-codegen-setting-entry/">Valid Do Not Split Words Codegen Setting Entry</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-codegen-syntax-linting/valid-error-templates-codegen-setting-key/">Valid Error Templates Codegen Setting Key</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-codegen-syntax-linting/valid-error-templates-codegen-setting-message-format/">Valid Error Templates Codegen Setting Message Format</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-codegen-syntax-linting/valid-java-artifact-id-codegen-setting/">Valid Java Artifact ID Codegen Setting</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-codegen-syntax-linting/valid-java-group-id-codegen-setting/">Valid Java Group ID Codegen Setting</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-codegen-syntax-linting/valid-operation-error-template-key/">Valid Operation Error Template Key</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-codegen-syntax-linting/valid-operation-error-template-message-format/">Valid Operation Error Template Message Format</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-codegen-syntax-linting/valid-operation-method-name/">Valid Operation Method Name</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-codegen-syntax-linting/valid-operation-summary/">Valid Operation Summary</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-codegen-syntax-linting/valid-php-composer-package-name-codegen-setting/">Valid PHP Composer Package Name Codegen Setting</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-codegen-syntax-linting/valid-php-namespace-name-codegen-setting/">Valid PHP Namespace Name Codegen Setting</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-codegen-syntax-linting/valid-test-case-name/">Valid Test Case Name</a></li>
</ul>
<h4><a href="https://docs.apimatic.io/rulesets/openapi-v3-docsgen-linting/overview/">OpenAPI v3 Syntax Linting for APIMatic Portal Generation</a></h4>
<h5>Newly Added Rules</h5>
<ul>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-docsgen-syntax-linting/no-trailing-leading-spaces-in-any-of-cases-meta-description/">No Trailing Leading Spaces in Any of Cases Meta Description</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-docsgen-syntax-linting/no-trailing-leading-spaces-in-environment-description/">No Trailing Leading Spaces in Environment Description</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-docsgen-syntax-linting/no-trailing-leading-spaces-in-link-description/">No Trailing Leading Spaces in Link Description</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-docsgen-syntax-linting/no-trailing-leading-spaces-in-one-of-cases-meta-description/">No Trailing Leading Spaces in One of Cases Meta Description</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-docsgen-syntax-linting/no-trailing-leading-spaces-in-path-item-description/">No Trailing Leading Spaces in Path Item Description</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-docsgen-syntax-linting/no-trailing-leading-spaces-in-path-item-summary/">No Trailing Leading Spaces in Path Item Summary</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-docsgen-syntax-linting/no-trailing-leading-spaces-in-security-options-meta-description/">No Trailing Leading Spaces in Security Options Meta Description</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-docsgen-syntax-linting/no-trailing-leading-spaces-in-server-description/">No Trailing Leading Spaces in Server Description</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-docsgen-syntax-linting/no-trailing-leading-spaces-in-test-case-description">No Trailing Leading Spaces in Test Case Description</a>/</li>
</ul>
]]></content:encoded>
      <category>Improvement</category>
      <category>VSCode Extension</category>
    </item>
    <item>
      <title>Experience Improvements in Dx-Portal</title>
      <link>https://docs.apimatic.io/changelog/experience-improvement-in-dx-portal</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/experience-improvement-in-dx-portal</guid>
      <pubDate>Fri, 03 May 2024 00:00:00 GMT</pubDate>
      <description>This change log encompasses three significant enhancements aimed at streamlining user experience across our platform:</description>
      <content:encoded><![CDATA[<p>This change log encompasses three significant enhancements aimed at streamlining user experience across our platform:</p>
<ol>
<li><a href="#streamlining-table-of-content-in-the-documentation">Streamlining Table of Content in the Documentation</a>.</li>
<li><a href="#improving-the-get-sdk-experience">Improving the Get SDK Experience</a>.</li>
<li><a href="#enhancing-the-experience-of-the-language-selector">Enhancing the experience of the Language Selector</a>.</li>
</ol>
<h2>Streamlining Table of Content in the Documentation</h2>
<p>Previously, headings in markdown were being represented in two levels giving an incorrect sense of hierarchy of the document. Now, all headings are displayed flatly, simplifying browsing and improving user experience.</p>
<p><strong>Before</strong></p>
<p><img src="https://docs.apimatic.io/images/changelog/experience-improvements/toc-with-hierarchy.png" alt="Toc-with-hierarchy"></p>
<p><strong>After</strong></p>
<p><img src="https://docs.apimatic.io/images/changelog/experience-improvements/toc-without-hierarchy.png" alt="toc-without-hierarchy"></p>
<h2>Improving the Get SDK Experience</h2>
<p>Here is the list of improvements:</p>
<ul>
<li>The installation command box has undergone a makeover, now featuring a sleek design with the installation command and a convenient copy button side by side.</li>
<li>The Guide icon has been relocated and redesigned as a hyperlink labeled “How to setup SDK,” providing clearer guidance.</li>
<li>We’ve fine-tuned the spacing between the package installation command and other sources for improved visual grouping.</li>
</ul>
<p><strong>Before</strong></p>
<p><img src="https://docs.apimatic.io/images/changelog/experience-improvements/getSdk-popup-before.png" alt="getSdk-popup-before"></p>
<p><strong>After</strong></p>
<p><img src="https://docs.apimatic.io/images/changelog/experience-improvements/getSdk-popup-after.png" alt="getSdk-popup-after"></p>
<h2>Enhancing the experience of the Language Selector</h2>
<p>Bid farewell to confusion with our Language Selector’s scroll arrows. Previously, users encountered frustration when the scroll reached its extreme positions, as the arrows failed to indicate this state. Now, with our latest update, the left arrow disables when the scroll is at the extreme left, and similarly, the right arrow disables when the scroll reaches the far right.</p>
<p><img src="https://docs.apimatic.io/images/changelog/experience-improvements/language-selector.gif" alt="languageSelector-arrows-disable"></p>
<h2>Why these matter ?</h2>
<p>These enhancements collectively prioritize user accessibility, efficiency, and satisfaction and also aims to provide a seamless and intuitive experience for our users. These improvements contribute to a more user-friendly platform, ultimately enhancing productivity and satisfaction.</p>
]]></content:encoded>
      <category>Improvement</category>
      <category>Developer Portal</category>
    </item>
    <item>
      <title>Introducing Support for Accepting Unlisted Enum Properties</title>
      <link>https://docs.apimatic.io/changelog/accepting-unknown-enum-properties</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/accepting-unknown-enum-properties</guid>
      <pubDate>Fri, 26 Apr 2024 00:00:00 GMT</pubDate>
      <description>We have introduced the acceptance of unlisted enum values in the API response in SDKs for all languages.</description>
      <content:encoded><![CDATA[<p>We have introduced the acceptance of unlisted enum values in the API response in SDKs for all languages.</p>
<h2>Details</h2>
<p>Enums are typically used to define collections of constants that are related in some context. They allow developers to work with these values in a more meaningful and structured manner. Within OpenAPI, an enum can be defined as follows:</p>
<pre><code class="language-yaml">components:
  schemas:
    Days:
       type: string
       enum:
         - Monday
         - Tuesday
         - Wednesday
</code></pre>
<p>Occasionally, API definitions may evolve, adding new values such as <code>Thursday</code> and <code>Friday</code> to an existing enum. These frequent updates in the API specifications will lead to the incompatibility between client and server side implementaions.</p>
<p>Previously, our auto generated SDKs were also facing the same challenge and any older versions of generated SDKs would not permit additional values in enums. Consequently, such SDKs risked crashing the wrapping application when encountering these new values in server responses.</p>
<h2>What&#39;s New?</h2>
<p>With our latest update, you can now configure enums to accommodate potential future additions, ensuring seamless integration with applications by enabling the <code>x-allow-additional-enum-items</code> extension, which is disabled by default. For example:</p>
<pre><code class="language-yaml">components:
  schemas:
    Days:
      type: string
      enum:
        - Monday
        - Tuesday
        - Wednesday
      x-allow-additional-enum-items: true
</code></pre>
<blockquote>
<p><strong>Note</strong></p>
<p>This feature exclusively enables the acceptance of additional enum items in API responses but does not provide the capability to send unlisted enum properties in API requests.</p>
</blockquote>
<p>To apply the configuration globally in the API definition, you can enable the import setting <code>AllowAdditionalEnumItems</code>, which is disabled by default in <code>APIMATIC-META.json</code> as following:</p>
<pre><code class="language-json">{
    &quot;ImportSettings&quot;: {
        &quot;AllowAdditionalEnumItems&quot;: true
    }
}
</code></pre>
]]></content:encoded>
      <category>New</category>
      <category>Feature</category>
      <category>OpenAPI</category>
    </item>
    <item>
      <title>Introducing Configurable Logging Support in Java and TypeScript</title>
      <link>https://docs.apimatic.io/changelog/added-support-for-logging</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/added-support-for-logging</guid>
      <pubDate>Wed, 24 Apr 2024 00:00:00 GMT</pubDate>
      <description>We have introduced configurable logging for API calls in Java and TypeScript SDKs.</description>
      <content:encoded><![CDATA[<p>We have introduced configurable logging for API calls in Java and TypeScript SDKs.</p>
<h2>What&#39;s New?</h2>
<p>Logging in a software application is essential when it comes to capturing activity data for troubleshooting, security auditing, and performance analysis, which can now be activated in SDKs using the <code>EnableLogging</code> codegen setting.</p>
<pre><code class="language-yaml">info:
  x-codegen-settings:
    EnableLogging: true
</code></pre>
<p>For more details on the <code>EnableLogging</code> CodegenSetting and its impact on SDK behavior, refer to the <a href="https://docs.apimatic.io/generate-sdks/customize-sdks/codegen-settings/sdk-interface-customization/#enable-logging">EnableLogging documentation</a>.</p>
<p>Below are the logging configuration options that users can apply when logging API calls.</p>
<h3>General Logging Configuration Options</h3>
<ul>
<li><strong>Level</strong>: Defines the log message severity or priority (e.g., DEBUG, INFO, WARN, ERROR, FATAL).</li>
<li><strong>Logger</strong>: Allows users to provide a custom logger implementation.</li>
<li><strong>Mask Sensitive Headers</strong>: A global setting to mask sensitive HTTP headers in both requests and responses before logging, safeguarding confidential data.</li>
</ul>
<h4>Request Logging Configuration Options</h4>
<ul>
<li><strong>Log Body</strong>: Controls the logging of the request body.</li>
<li><strong>Log Headers</strong>: Controls the logging of request headers.</li>
<li><strong>Exclude Headers</strong>: Excludes specified headers from the log output.</li>
<li><strong>Include Headers</strong>: Includes only specified headers in the log output.</li>
<li><strong>Unmask Headers</strong>: Logs specified headers without masking, revealing their actual values.</li>
<li><strong>Include Query in Path</strong>: Determines whether to include query parameters in the logged request path.</li>
</ul>
<h4>Response Logging Configuration Options</h4>
<ul>
<li><strong>Log Body</strong>: Controls the logging of the response body.</li>
<li><strong>Log Headers</strong>: Controls the logging of response headers.</li>
<li><strong>Exclude Headers</strong>: Excludes specified headers from the log output.</li>
<li><strong>Include Headers</strong>: Includes only specified headers in the log output.</li>
<li><strong>Unmask Headers</strong>: Logs specified headers without masking, revealing their actual values.</li>
</ul>
<p>These configurations can be set during SDK client initialization. Below are examples demonstrating how to use these configurations in various programming languages.</p>
<p><strong>Java</strong></p>
<pre><code class="language-java">SDKClient client = new SDKClient.Builder()
    .loggingConfig(builder -&gt; builder
            .level(Level.DEBUG)
            .maskSensitiveHeaders(true)
            .requestConfig(reqConfig -&gt; reqConfig
                    .body(true)
                    .headers(true)
                    .includeQueryInPath(true)
                    .includeHeaders(&quot;Content-Type&quot;, &quot;Content-Encoding&quot;))
            .responseConfig(resConfig -&gt; resConfig
                    .headers(true)
                    .excludeHeaders(&quot;X-Powered-By&quot;)))
    .build();
</code></pre>
<p><strong>TypeScript</strong></p>
<pre><code class="language-ts">const client = new SDKClient({
  logging: {
    logLevel: LogLevel.Debug,
    maskSensitiveHeaders: true,
    logRequest: {
      logBody: true,
      logHeaders: true,
      includeQueryInPath: true,
      headersToInclude: [&quot;Content-Type&quot;, &quot;Content-Encoding&quot;]
    },
    logResponse: {
      logHeaders: true,
      headersToExclude: [&quot;X-Powered-By&quot;]
    }
  }
});
</code></pre>
]]></content:encoded>
      <category>Improvement</category>
      <category>Logging</category>
    </item>
    <item>
      <title>Introducing Automatic Auth-Token Retrieval in Java and TypeScript</title>
      <link>https://docs.apimatic.io/changelog/auth-token-auto-refreshing-changelog</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/auth-token-auto-refreshing-changelog</guid>
      <pubDate>Mon, 15 Apr 2024 00:00:00 GMT</pubDate>
      <description>We are introducing automatic token retrieval and refreshing in the OAuth 2.0 grant types.</description>
      <content:encoded><![CDATA[<p>We are introducing automatic token retrieval and refreshing in the OAuth 2.0 grant types.</p>
<h2>Details</h2>
<p>SDKs now have automated auth-token retrieval or refreshing feature prior to any API call necessitating OAuth 2.0 Grant Type.</p>
<h2>What&#39;s New?</h2>
<p>Earlier, it was user&#39;s responsibility to fetch/refresh the auth-token and update the SDK client with newly fetched auth-token. </p>
<p>Now, after configuring OAuth 2.0 grant type credentials in the SDK client, the SDK handles this automatically before making any API call that requires an auth-token.</p>
<blockquote>
<p><strong>Note</strong></p>
<p>This feature is currently limited to only Java and TS SDKs using OAuth 2.0 client credentials grant type.</p>
</blockquote>
<p>The SDK automatically retrieves or refreshes the auth-token from the auth server if it&#39;s expired or undefined by default.</p>
<p>For those wanting a custom auth-token provider, you can register a hook to supply the auth-token from a unique source. Additionally, you can register for the auth-token update event, which triggers whenever the auth-token is updated.</p>
<p>Here&#39;s how to set up callbacks in the client for the auth-token provider and auth-token update event.</p>
<p><strong>Java</strong></p>
<pre><code class="language-java">SDKClient client = new SDKClient.Builder()
    .clientCredentialsAuth(new ClientCredentialsAuthModel.Builder(
            &quot;OAuthClientId&quot;,
            &quot;OAuthClientSecret&quot;
        )
        .oAuthTokenProvider((lastOAuthToken, credentialsManager) -&gt; {
            // Add the callback handler to provide a new OAuth token
            // It will be triggered whenever the lastOAuthToken is null or expired
            OAuthToken token = loadTokenFromDatabase();
            if (token == null) {
                return credentialsManager.fetchToken();
            }
            return token;
        })
        .oAuthOnTokenUpdate(oAuthToken -&gt; {
            // Add the callback handler to perform operations like save to DB or file etc.
            // It will be triggered whenever the token gets updated
            saveTokenToDatabase(oAuthToken);
        })
        .build())
    .build();
</code></pre>
<p><strong>TypeScript</strong></p>
<pre><code class="language-ts">const client = new SDKClient({
  clientCredentialsAuthCredentials: {
    oAuthClientId: &#39;OAuthClientId&#39;,
    oAuthClientSecret: &#39;OAuthClientSecret&#39;,
    oAuthTokenProvider: (lastOAuthToken: OAuthToken | undefined, authManager: ClientCredentialsAuthManager) =&gt; {
      // Add the callback handler to provide a new OAuth token
      // It will be triggered whenever the lastOAuthToken is undefined or expired
      var token = loadTokenFromDatabase();
      if (token === undefined) {
        return authManager.fetchToken();
      }
      return token;
    },
    oAuthOnTokenUpdate: (token: OAuthToken) =&gt; {
      // Add the callback handler to perform operations like save to DB or file etc.
      // It will be triggered whenever the token gets updated
      saveTokenToDatabase(token);
    }
  },
});
</code></pre>
]]></content:encoded>
      <category>Improvement</category>
      <category>Security</category>
      <category>Auth2.0</category>
    </item>
    <item>
      <title>Introducing API Copilot - Your AI-powered Integration Assistant</title>
      <link>https://docs.apimatic.io/changelog/introducing-api-copilot</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/introducing-api-copilot</guid>
      <pubDate>Tue, 09 Apr 2024 00:00:00 GMT</pubDate>
      <description>Introducing API Copilot - a powerful AI-driven assistant designed to streamline integration processes without any misleading information. Utilizing APIMatic’s developer experience suite, API Copilot empowers developers to expedite integration tasks and drive application develo...</description>
      <content:encoded><![CDATA[<p>Introducing API Copilot - a powerful AI-driven assistant designed to streamline integration processes without any misleading information. Utilizing APIMatic’s developer experience suite, API Copilot empowers developers to expedite integration tasks and drive application development towards market success.</p>
<p><strong>See API Copilot in Action!</strong></p>
<p>Experience API Copilot firsthand on the <a href="https://apimatic-api-copilot.netlify.app/">Spotify Web API Developer Portal</a> - a live implementation showcasing its capabilities.</p>
<iframe width="688" height="418" src="https://www.youtube.com/embed/Ziwm2MSSxnk" title="API Copilot | APIMatic" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

<h2>Details​</h2>
<p>Combining APIMatic-generated SDKs, idiomatic code samples, and API documentation with cutting-edge AI technology, API Copilot is a sophisticated chatbot engineered to enhance the API integration experience. This intelligent tool can generate customized code snippets tailored to your specific requirements across various programming languages. Whether your project involves complex combinations of endpoints or intricate scenarios, API Copilot has the capabilities to assist you.</p>
<blockquote>
<p><strong>Note</strong></p>
<p><strong>API Copilot</strong> is currently in the beta testing phase. It can make mistakes. Consider checking important information.</p>
</blockquote>
<h2>Key Features of API Copilot</h2>
<ul>
<li><strong>Hallucination-Free Code Generation</strong>: Ensure accuracy and efficiency in your development process with API Copilot. Our AI-powered tool generates idiomatic code in seven programming languages tailored to your query, minimising errors and speeding up integration.</li>
<li><strong>Deterministic Code Generation</strong>: API Copilot ensures consistency and predictability in your development process. Our tool provides deterministic code generation, guaranteeing that the same inputs result in the same outputs every time.</li>
<li><strong>Dynamic Use Case Guides</strong>: Empower developers with personalised, real-time guidance. API Copilot provides dynamic code samples for your API use case with code explanation, assisting developers in understanding and implementing API functionalities effectively.</li>
<li><strong>Instant Assistance</strong>: Help developers understand your API functionality faster by providing instant guidance and support 24/7. API Copilot removes the need to consume all your API documentation.</li>
</ul>
<h2>What’s Next?</h2>
<p><a href="https://app.apimatic.io/account/register?utm_campaign=api_copilot_changelog">Sign up to APIMatic</a> for a free 14-day trial and experience the power of API Copilot for yourself!</p>
<h3>Enabling API Copilot</h3>
<p>To start using API Copilot on your portal, follow these easy steps:</p>
<ol>
<li>Go to the API Copilot page in the portal editor.</li>
<li>Turn on the switch to enable it.</li>
<li>Customize the user&#39;s experience by adding a welcome message and suggestive prompts.</li>
<li>Save your settings.</li>
<li>Publish your portal.</li>
</ol>
<p>By doing this, API Copilot will smoothly integrate into your portal and improve user experiences.</p>
<blockquote>
<p><strong>Note</strong></p>
<p><strong>API Copilot</strong> is not available in preview portals.</p>
</blockquote>
<h4>How to add assistive Prompts in the Welcome Message</h4>
<p>Adding assistive prompts with API Copilot in your portal editor is simple. Just access the API Copilot page, and within your welcome message, add <strong>inline code elements</strong> in an <strong>unordered list</strong>. API Copilot will then recognize these as your suggested prompts.</p>
<p>Here is an example:</p>
<pre><code class="language-md">Welcome to the Spotify Web API Developer Portal!

Explore the following prompts and harness the power of the Spotify Web API with API Copilot&#39;s assistance!

- `How to create a new playlist and add the 10 most popular Taylor Swift songs?`
- `How do I get the primary genre or category I listen to most, based on my top 50 tracks?`
- `How to add the song &quot;Mockingbird&quot; by Eminem to the end of the user&#39;s current playback queue.`
- `How can I follow the top 15 artists I listen to the most?`
</code></pre>
]]></content:encoded>
      <category>AI Chatbot</category>
      <category>Developer Portal</category>
    </item>
    <item>
      <title>Introducing Multiple Authentication Scheme Support</title>
      <link>https://docs.apimatic.io/changelog/introducing-multiple-authentication</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/introducing-multiple-authentication</guid>
      <pubDate>Mon, 15 Jan 2024 00:00:00 GMT</pubDate>
      <description>We have added support for generating SDKs and documentation for API definitions that use Multiple Authentication schemes.</description>
      <content:encoded><![CDATA[<p>We have added support for generating SDKs and documentation for API definitions that use Multiple Authentication schemes.</p>
<h2>Details</h2>
<p>We are excited to announce that you can now define multiple security schemes in your API references and authorize your API Calls using multiple combinations of your security schemes through our newly designed authorization section in your API Playground. This release also brings in a new interface for setting up authentication credentials in your SDK&#39;s client.</p>
<h2>What&#39;s New?</h2>
<p>We can define multiple authentication schemes in components of an OpenAPI specification file like the following:</p>
<pre><code class="language-yaml">components:
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic
    apiToken:
      type: apiKey
      name: token
      in: header
</code></pre>
<p>The above components define two different security schemes. These security components can either be applied to the whole specification globally or to an individual endpoint locally like the following example. You can follow this <a href="https://swagger.io/docs/specification/authentication/">documentation</a> to learn more about applying security in OpenAPI specification.</p>
<p><strong>AND Case</strong></p>
<p>The following security definition represents the <strong>basicAuth AND apiToken</strong> combination:</p>
<pre><code class="language-yaml">security:
  - basicAuth: []
    apiToken: []
</code></pre>
<p><strong>OR Case</strong></p>
<p>The following security definition represents the <strong>basicAuth OR apiToken</strong> combination:</p>
<pre><code class="language-yaml">security:
  - basicAuth: []
  - apiToken: []
</code></pre>
<p>Previously, we were only selecting the first defined security scheme and applying it globally for all the endpoints. We are now introducing multiple authentication support across our tooling. This brings major improvements and enhancements in the following areas:</p>
<ul>
<li>SDKs and documentation for all languages</li>
<li>Getting Started Guides for SDKs</li>
<li>API Code Playground in the API Portal</li>
</ul>
<h2>Multiple Authentication in SDKs</h2>
<p>With Multiple Authentication Support our SDKs now can apply more than one security scheme to any request. Our SDKs can also now distinguish between the <code>AND</code> or <code>OR</code> combination of multiple security definitions.</p>
<h3>Auth Validation Errors</h3>
<p>Our SDKs now can check the combination type i.e. <code>AND</code> or <code>OR</code> of the security definitions for each request with an abstraction layer for the SDK user. Whenever an endpoint method call is invoked we check if that endpoint requires more authentication credentials than the ones specified in the client configurations. We will throw an <code>AuthValidationException</code> like the one following:</p>
<pre><code>AuthValidationException: The following authentication credentials were required:
-&gt; Missing required auth credential: token
-&gt; Missing required auth credential: api-key
</code></pre>
<p>Catching such errors on the client side will also save network costs and help the developers show relevant error messages for their application users.</p>
<h3>Multiple Auth Configurations</h3>
<p>We came up with a new simpler interface to set up authentication credentials in our SDKs for all languages. You can now set authentication credentials directly into your client instance. That authorized client can later be used to perform any number of API Calls directly.</p>
<p>The credentials for each security scheme are now grouped into one instance, keeping the client initialization clean and descriptive. Let us have a look at what&#39;s new in the client initialization for all languages.</p>
<p>To create an authorized client instance for our SDKs, there are two different flows for Single or Multiple Authentication. Single authentication credentials can be set directly into the client. If your API uses multiple security flows you would then be able to set the credentials using a grouped instance for each security flow as shown in the following example. We are also deprecating the existing single authentication flow. Please follow the deprecated method documentation and use the new authentication setter.</p>
<p><strong>TypeScript</strong></p>
<h4>Single Authentication</h4>
<pre><code class="language-ts">const client = new Client({
  basicAuthUsername: &quot;Username&quot;, // Deprecated
  basicAuthPassword: &quot;Password&quot;, // Deprecated
  basicAuthCredentials: {
    username: &quot;Username&quot;,
    password: &quot;Password&quot;,
  },
});
</code></pre>
<h4>Multiple Authentication</h4>
<pre><code class="language-ts">const client = new Client({
  basicAuthCredentials: {
    username: &quot;Username&quot;,
    password: &quot;Password&quot;,
  },
  apiKeyCredentials: {
    token: &quot;Token&quot;,
  },
});
</code></pre>
<p><strong>Java</strong></p>
<h4>Single Authentication</h4>
<pre><code class="language-java">SdkClient client = new SdkClient.Builder()
    .basicAuthCredentials(&quot;Username&quot;, &quot;Password&quot;) // Deprecated
    .basicAuthCredentials(
        new BasicAuthModel.Builder(
            &quot;Username&quot;,
            &quot;Password&quot;
        )
        .build())
    .build();
</code></pre>
<h4>Multiple Authentication</h4>
<pre><code class="language-java">SdkClient client = new SdkClient.Builder()
    .basicAuthCredentials(
        new BasicAuthModel.Builder(
              &quot;Username&quot;,
              &quot;Password&quot;
        )
        .build())
    .apiKeyCredentials(
        new ApiKeyModel.Builder(
            &quot;Token&quot;
        )
        .build())
    .build();
</code></pre>
<p><strong>Python</strong></p>
<h4>Single Authentication</h4>
<pre><code class="language-python">client = SdkClient(
    basic_auth_user_name=&#39;BasicAuthUserName&#39;, # Deprecated
    basic_auth_password=&#39;BasicAuthPassword&#39;, # Deprecated
    basic_auth_credentials=BasicAuthCredentials(
        username=&#39;Username&#39;,
        password=&#39;Password&#39;
    )
)
</code></pre>
<h4>Multiple Authentication</h4>
<pre><code class="language-python">client = SdkClient(
    basic_auth_credentials=BasicAuthCredentials(
        username=&#39;Username&#39;,
        password=&#39;Password&#39;
    ),
    api_key_credentials=ApiKeyCredentials(
        token=&#39;Token&#39;
    )
)
</code></pre>
<p><strong>PHP</strong></p>
<h4>Single Authentication</h4>
<pre><code class="language-php">$client = SdkClientBuilder::init()
    -&gt;basicAuthUserName(&#39;BasicAuthUserName&#39;) // Deprecated
    -&gt;basicAuthPassword(&#39;BasicAuthPassword&#39;) // Deprecated
    -&gt;basicAuthCredentials(
        BasicAuthCredentialsBuilder::init(
            &#39;Username&#39;,
            &#39;Password&#39;
        )
    )
    -&gt;build();
</code></pre>
<h4>Multiple Authentication</h4>
<pre><code class="language-php">$client = SdkClientBuilder::init()
    -&gt;basicAuthCredentials(
        BasicAuthCredentialsBuilder::init(
            &#39;Username&#39;,
            &#39;Password&#39;
        )
    )
    -&gt;apiKeyCredentials(
        ApiKeyCredentialsBuilder::init(
            &#39;Token&#39;
        )
    )
    -&gt;build();
</code></pre>
<p><strong>.NET</strong></p>
<h4>Single Authentication</h4>
<pre><code class="language-csharp">SdkClient client = new SdkClient.Builder()
    .BasicAuthCredentials(&quot;BasicAuthUserName&quot;, &quot;BasicAuthPassword&quot;) // Deprecated
    .BasicAuthCredentials(
        new BasicAuthModel.Builder(
            &quot;Username&quot;,
            &quot;Password&quot;
        )
        .Build())
    .Build();
</code></pre>
<h4>Multiple Authentication</h4>
<pre><code class="language-csharp">SdkClient client = new SdkClient.Builder()
    .BasicAuthCredentials(
        new BasicAuthModel.Builder(
            &quot;Username&quot;,
            &quot;Password&quot;
        )
        .Build())
    .ApiKeyCredentials(
        new ApiKeyModel.Builder(
            &quot;Token&quot;
        )
        .Build())
    .Build();
</code></pre>
<p><strong>Ruby</strong></p>
<h4>Single Authentication</h4>
<pre><code class="language-ruby">client = Sdk::Client.new(
  basic_auth_user_name: &#39;BasicAuthUserName&#39;, # Deprecated
  basic_auth_password: &#39;BasicAuthPassword&#39;, # Deprecated
  basic_auth_credentials: BasicAuthCredentials.new(
    username: &#39;Username&#39;,
    password: &#39;Password&#39;
  )
)
</code></pre>
<h4>Multiple Authentication</h4>
<pre><code class="language-ruby">client = Sdk::Client.new(
  basic_auth_credentials: BasicAuthCredentials.new(
    username: &#39;Username&#39;,
    password: &#39;Password&#39;
  ),
  api_key_credentials: ApiKeyCredentials.new(
    token: &#39;Token&#39;,
  )
)
</code></pre>
<p><strong>Go</strong></p>
<pre><code class="language-go">config := CreateConfigurationFromEnvironment(
  WithBasicAuthCredentials(
    NewBasicAuthCredentials(&quot;Username&quot;, &quot;Password&quot;),
  ),
  WithApiKeyCredentials(
    NewApiKeyCredentials(&quot;Token&quot;, &quot;Key&quot;),
  ),
)

client := NewClient(config)
</code></pre>
<h3>Exclude Deprecated Single Authentication Flow</h3>
<p>As you can see from the above code snippets, we have now deprecated the existing flow to set up a client with authentication credentials if the API specification has a single security scheme defined. The older flow is kept in the generated SDK to avoid breaking changes for our existing customers. So if you are new to the APIMatic and looking to exclude the deprecated code from your SDKs, set the <code>AddSingleAuthDeprecatedCode</code> codegen setting to false.</p>
<pre><code class="language-yaml">info:
  x-codegen-settings:
    AddSingleAuthDeprecatedCode: false
</code></pre>
<p>However, if you are already using APIMatic and onboarded all of your SDK users to the new authentication flow, feel free to remove the deprecated code from SDKs. You can read more about <a href="https://docs.apimatic.io/generate-sdks/customize-sdks/codegen-settings/miscellaneous-settings/#add-single-auth-deprecated-code">AddSingleAuthDeprecatedCode</a> CodegenSetting on the changes it can apply to your SDK.</p>
<h2>UI Refinement and Accessibility Upgrade</h2>
<p>The authentication section has been relocated from the configuration area within the code samples to a prominent position above the API playground. The UI has also been revamped with an elegant design, ensuring a visually appealing and user-friendly experience. This reorganization along with the UI update makes the authentication section more accessible and visible.</p>
<p><strong>Before</strong></p>
<p><img src="https://docs.apimatic.io/images/changelog/multiple-auth/auth-location-before.gif" alt="Auth Position Before"></p>
<p><strong>After</strong></p>
<p><img src="https://docs.apimatic.io/images/changelog/multiple-auth/auth-location-after.gif" alt="Auth Position After"></p>
<p>We have presented the <code>AND</code> security definitions in a clear and vertical layout, stacking one below the other. Meanwhile for the <code>OR</code> security definitions switchable pills, similar to those used in the API playground, are incorporated in the UI. We have ensured that the design ensures a consistent and familiar experience for users, promoting ease of use and reducing the learning curve.</p>
<p><strong>AND Case</strong></p>
<p><img src="https://docs.apimatic.io/images/changelog/multiple-auth/and-case.gif" alt="And Case"></p>
<p><strong>OR Case</strong></p>
<p><img src="https://docs.apimatic.io/images/changelog/multiple-auth/or-case.gif" alt="OR Case"></p>
<h2>Improvements in ReadMe and Step-By-Step Guide</h2>
<p>We have updated the SDK READMEs.
Previously, we showed the API client initialization and documentation for only a single security scheme defined in the spec (OAuth2 Client Credentials Grant in this case).</p>
<p>Now, we show the API client initialization for all the security schemes and have split the documentation of each security scheme into its markdown file.</p>
<p><strong>Before</strong></p>
<p><img src="https://docs.apimatic.io/images/changelog/multiple-auth/readme-before.gif" alt="README Before"></p>
<p><strong>After</strong></p>
<p><img src="https://docs.apimatic.io/images/changelog/multiple-auth/readme-after.gif" alt="README After"></p>
<p>The documentation for each security scheme has been moved to the <code>doc/auth/</code> folder. The following is from <code>doc/auth/oauth-2-client-credentials-grant.md</code>.</p>
<p><img src="https://docs.apimatic.io/images/changelog/multiple-auth/readme-auth-doc.gif" alt="Each auth in its file"></p>
<p>We have also updated the step-by-step guide on the portal similarly. In this case, all auth documentation is on a single page.</p>
<p><strong>Before</strong></p>
<p><img src="https://docs.apimatic.io/images/changelog/multiple-auth/getting-started-before.png" alt="Step By Step Guide Before"></p>
<p><strong>After</strong></p>
<p><img src="https://docs.apimatic.io/images/changelog/multiple-auth/getting-started-after.png" alt="Step By Step Guide After"></p>
<h2>Opt Out of Multiple Authentication</h2>
<p>As we have discussed we were only selecting the first defined security scheme and applying it globally for all the endpoints before the introduction of this feature. If you happen to have multiple security schemes defined in your API specifications until today. You might find the interface of your generated SDK switched to the new multiple authentication design after regeneration. This will bring breaking changes to your SDKs. To avoid such breaking changes you can opt out of this feature using the following CodegenSetting:</p>
<pre><code class="language-yaml">info:
  x-codegen-settings:
    DisableMultipleAuth: true
</code></pre>
<p>However, we recommend you should stick with the newly improved multiple-authentication flow of your SDKs because this flag will be deprecated eventually. It is the true representation of your API specification. We have enabled MultipleAuth by default. You can read more about <a href="https://docs.apimatic.io/generate-sdks/customize-sdks/codegen-settings/miscellaneous-settings/#disable-multiple-auth">DisableMultipleAuth</a> CodegenSetting on the changes it can apply to your SDK.</p>
]]></content:encoded>
      <category>New</category>
      <category>Security</category>
      <category>MultipleAuth</category>
    </item>
    <item>
      <title>Enhancing the Get SDK Experience</title>
      <link>https://docs.apimatic.io/changelog/get-sdk-ui</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/get-sdk-ui</guid>
      <pubDate>Tue, 07 Nov 2023 00:00:00 GMT</pubDate>
      <description>We're thrilled to unveil the latest enhancement to our API Developer Portal: the upgraded Get SDK user interface!</description>
      <content:encoded><![CDATA[<p>We&#39;re thrilled to unveil the latest enhancement to our API Developer Portal: the upgraded Get SDK user interface!</p>
<h2>What&#39;s New</h2>
<p>With our recent SDK publishing feature, we&#39;ve revitalized the Get SDK UI in our API Developer Portal. Now, it not only provides package installation commands but also includes a direct link to the published package repository within the Get SDK pop-up.</p>
<p><img src="https://docs.apimatic.io/images/changelog/get-sdk-ui.png" alt="Enhancing the Get SDK Experience"></p>
<h2>Why it Matters</h2>
<p>At APIMatic, our top priority is to provide an exceptional developer experience for our portal users. We believe that making the SDK installation process more accessible and user-friendly is a significant step toward achieving that goal.</p>
]]></content:encoded>
      <category>Enhancement</category>
      <category>API Developer Portal</category>
      <category>Get SDK</category>
    </item>
    <item>
      <title>Enchancing Language Selector in Developer Portal</title>
      <link>https://docs.apimatic.io/changelog/new-language-selector</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/new-language-selector</guid>
      <pubDate>Wed, 25 Oct 2023 00:00:00 GMT</pubDate>
      <description>We're thrilled to introduce the latest enhancement in our API Developer Portal: the all-new Language Selector!</description>
      <content:encoded><![CDATA[<p>We&#39;re thrilled to introduce the latest enhancement in our API Developer Portal: the all-new Language Selector!</p>
<h2>What&#39;s New?</h2>
<p>Gone are the days of clunky dropdown menus that made it a hassle to explore the supported languages in our Developer Portal. We&#39;ve completely overhauled the language selection experience. Say hello to our brand new grid of vibrant language cards!</p>
<p><img src="https://docs.apimatic.io/images/changelog/language-selector.jpg" alt="New Language Selector"></p>
<h2>Why It Matters</h2>
<p>This isn&#39;t just a fancy makeover – it&#39;s all about you, our amazing users. With this sleek and user-friendly update, finding and selecting your preferred language has never been easier. No more guesswork or scrolling through long lists. It&#39;s as straightforward as a few clicks!</p>
]]></content:encoded>
      <category>Enhancement</category>
      <category>API Developer Portal</category>
      <category>Language Selector</category>
    </item>
    <item>
      <title>Adding Support for oneOf/anyOf with Discriminator in Developer Portal across all languages</title>
      <link>https://docs.apimatic.io/changelog/dev-portal-support-for-oneOf-anyOf-with-discriminator</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/dev-portal-support-for-oneOf-anyOf-with-discriminator</guid>
      <pubDate>Mon, 25 Sep 2023 00:00:00 GMT</pubDate>
      <description>We're thrilled to announce a significant enhancement to APIMatic's Developer Portal, aimed at making the API onboarding experience smoother and more insightful. With this update, we've added robust support for OpenAPI's oneOf/anyOf with discriminator features across documentat...</description>
      <content:encoded><![CDATA[<p>We&#39;re thrilled to announce a significant enhancement to APIMatic&#39;s Developer Portal, aimed at making the API onboarding experience smoother and more insightful. With this update, we&#39;ve added robust support for OpenAPI&#39;s <code>oneOf</code>/<code>anyOf</code> with discriminator features across documentation for six programming languages and HTTP.</p>
<h2>Understanding <code>oneOf</code> and <code>anyOf</code></h2>
<h3><code>oneOf</code></h3>
<p>The <code>oneOf</code> keyword allows you to specify that exactly one of the subschemas must validate. It&#39;s perfect for situations in which multiple schemas might apply, but only one should be chosen.</p>
<h3><code>anyOf</code></h3>
<p>On the other hand, <code>anyOf</code> lets you specify that at least one of the subschemas must validate. This is incredibly useful when you have multiple valid options for a given field or condition.</p>
<h3><code>oneOf</code> with Discriminator</h3>
<p>Sometimes, you need to differentiate between several options within a schema. That&#39;s where <code>oneOf</code> with discriminator comes into play. It allows you to use a discriminator field to select the right schema based on a predefined value. This is particularly handy when you need to handle different types of objects in your API.</p>
<h3><code>anyOf</code> with Discriminator</h3>
<p>Similarly, <code>anyOf</code> with discriminator enables you to use a discriminator field to choose from multiple valid schemas. This can be invaluable in scenarios where you want to provide flexibility while ensuring data consistency.</p>
<h2>What&#39;s New?</h2>
<h3>Improved API Playground</h3>
<p>We&#39;ve updated our API playground on the portal. Now, you can easily select and configure any of the cases defined under <code>oneOf</code>/<code>anyOf</code> with discriminator, making it an easy to understand and interact with the API endpoints right from the developer portal.</p>
<p><img src="https://docs.apimatic.io/images/changelog/oaf-portal-api-playground.png" alt="Improved API Playground"></p>
<h3>Enhanced Code Samples &amp; &quot;Try it Out&quot;</h3>
<p>Our idiomatic and dynamic code samples have been meticulously updated to showcase the power of <code>oneOf</code>/<code>anyOf</code> with discriminator scenarios. Developers can also execute API calls directly from the developer portal.</p>
<p>See the enhanced TypeScript code samples below</p>
<p><strong>Before</strong></p>
<pre><code class="language-typescript">const body = { &#39;productId&#39;: &#39;2013-09-3402&#39;, &#39;quantity&#39;: &#39;506&#39; };

try {
  const { result, ...httpResponse } = await apiController.createANewOrder(body);
} catch (error) {
  if (error instanceof ApiError) {
    const errors = error.result;
  }
}
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-typescript">const body: CreateANewOrderBody = {
  productId: 2013-09-3402,
  quantity: 506,
};

try {
  const { result, ...httpResponse } = await apiController.createANewOrder(body);
} catch (error) {
  if (error instanceof ApiError) {
  }
}
</code></pre>
<h3>Comprehensive <code>oneOf</code> and <code>anyOf</code> Definitions</h3>
<p>All new schema structures defined using <code>oneOf</code> and <code>anyOf</code> are now elegantly documented under <strong>Models &gt; oneOf/anyOf Definitions</strong>.  This makes it effortless for developers to understand and work with complex data structures.</p>
<p><img src="https://docs.apimatic.io/images/changelog/oaf-portal-models.png" alt="Comprehensive Definitions"></p>
<h2>Why It Matters</h2>
<p>These enhancements are designed to significantly improve your developer experience, reducing onboarding time and making API integration a breeze. We believe these updates will empower developers to build better, faster, and more robust applications.</p>
]]></content:encoded>
      <category>Enhancement</category>
      <category>API Developer Portal</category>
      <category>OneOf</category>
      <category>AnyOf</category>
    </item>
    <item>
      <title>Adding Support for Multiple Request Examples in Developer Portal</title>
      <link>https://docs.apimatic.io/changelog/dev-portal-support-for-multiple-request-examples</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/dev-portal-support-for-multiple-request-examples</guid>
      <pubDate>Wed, 30 Aug 2023 00:00:00 GMT</pubDate>
      <description>API providers can now display multiple examples of request bodies to illustrate how an endpoint supports different use cases through a variety of request payloads. This feature enhancement to our Developer Portal product greatly improves the experience for API consumers. Devel...</description>
      <content:encoded><![CDATA[<p>API providers can now display multiple examples of request bodies to illustrate how an endpoint supports different use cases through a variety of request payloads. This feature enhancement to our Developer Portal product greatly improves the experience for API consumers. Developers will have the option to view these request body examples next to the designated operation.  </p>
<h2>Why support more than one examples</h2>
<p>Helping developers integrate with your API is a top priority and this enhancement significantly contributes to this goal. Developers can easily access different request examples to better understand the options available and the use cases supported by the operation. This information streamlines the development process, saving developers time. </p>
<p>Moreover, this enhancement contributes to comprehensive and user-friendly API documentation, facilitating the API onboarding process for developers.</p>
<h2>A Closer Look at the Feature</h2>
<p>At the core of this enhancement lies the intuitive Request Example selector, positioned prominently at the top of the Code Sample section. This user-friendly design ensures every user engaging with API documentation can effortlessly explore and engage with the various request scenarios.</p>
<p><img src="https://docs.apimatic.io/images/changelog/mre-dx-portal.png" alt="Multiple Request Examples"></p>
<h2>How It Works Behind the Scenes</h2>
<p>It&#39;s important to note that, for now, this enhancement specifically focuses on examples defined at the endpoint parameter level within the API Specification. This strategic choice ensures that you&#39;re presented with real-world use cases, aiding your understanding.</p>
<p>To create a unified view of examples for each API Endpoint, we&#39;ve leveraged the <strong>Example Name</strong> as a unifying factor. By employing this approach, we consolidate a spectrum of examples from the API Spec, delivering a well-rounded and insightful understanding of the possibilities. </p>
<h2>Example Usecase</h2>
<p>In a fintech API, let&#39;s consider the <code>createPayment</code> endpoint. This endpoint allows users to make payments using either a Debit or Credit Card or their PayPal account.</p>
<p><strong>Endpoint:</strong> <code>POST /createPayment</code></p>
<p><strong>Description:</strong> This endpoint enables users to initiate payments using different payment methods, such as Debit/Credit Card or PayPal.</p>
<p><strong>Request Body:</strong></p>
<ul>
<li><p>For Credit Card Payment:</p>
<ul>
<li>Card Number (string): The 16-digit card number.</li>
<li>Cardholder Name (string): The name of the cardholder.</li>
<li>Card Expiry (string): The expiration date of the card in the format MM/YY.</li>
<li>CVV Number (string): The 3-digit security code on the back of the card.</li>
</ul>
</li>
<li><p>For PayPal Payment:</p>
<ul>
<li>PayPal Email (string): The registered email address of the user&#39;s PayPal account.</li>
<li>PayPal ID (string): The unique identifier associated with the PayPal account.</li>
</ul>
</li>
</ul>
<p><strong>Example Usage:</strong></p>
<ol>
<li><p>To make a payment using a Credit Card:</p>
<pre><code class="language-json">{
  &quot;cardNumber&quot;: &quot;1234567890123456&quot;,
  &quot;cardholderName&quot;: &quot;John Doe&quot;,
  &quot;cardExpiry&quot;: &quot;12/25&quot;,
  &quot;cvvNumber&quot;: &quot;123&quot;
}
</code></pre>
</li>
<li><p>To make a payment using a PayPal account:</p>
<pre><code class="language-json">{
  &quot;paypalEmail&quot;: &quot;john.doe@example.com&quot;,
  &quot;paypalID&quot;: &quot;abc123xyz456&quot;
}
</code></pre>
</li>
</ol>
<p>Defining multiple request examples in the API documentation provides valuable insights to developers about how the endpoint behaves under different scenarios. It clarifies the expected request payload structure for each payment method. Developers can understand the specific requirements for Credit Card and PayPal payments without ambiguity. This clear documentation improves the integration process, reduces errors, and streamlines development by eliminating guesswork. It empowers developers to send accurate and properly formatted requests, enhancing the overall user experience and the reliability of the API integration.</p>
<blockquote>
<p><strong>Note</strong></p>
<p>The feature enhancement will be enabled automatically for all newly generated portals. There is no need to change/update any settings.</p>
</blockquote>
]]></content:encoded>
      <category>Improvement</category>
      <category>API Developer Portal</category>
      <category>Request Examples</category>
    </item>
    <item>
      <title>Introducing Support for oneOf and anyOf in Typescript SDKs</title>
      <link>https://docs.apimatic.io/changelog/introducing-support-for-oneof-anyof-in-typescript</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/introducing-support-for-oneof-anyof-in-typescript</guid>
      <pubDate>Mon, 07 Aug 2023 00:00:00 GMT</pubDate>
      <description>We are introducing the special oneOf and anyOf types in our Typescript SDKs.</description>
      <content:encoded><![CDATA[<p>We are introducing the special oneOf and anyOf types in our Typescript SDKs.</p>
<h2>Details</h2>
<p>In OpenAPI, any request parameter or response payload could use union types i.e. OneOf/AnyOf, which provides the flexibility of accepting different types of request parameters and returning various types of response payload. Here is an example of an API call using union types,</p>
<pre><code class="language-yaml">paths:
 /users/create:
    post:
      summary: Create a new user
      operationId: createUser
      requestBody:
        required: true
        content:
          application/json:
            schema:
              anyOf:
                - $ref: &#39;#/components/schemas/Accountant&#39;
                - $ref: &#39;#/components/schemas/Manager&#39;
      responses:
        &#39;201&#39;:
          description: User created successfully
          content:
            application/json:
              schema:
                oneOf:
                  - $ref: &#39;#/components/schemas/AccountantResponse&#39;
                  - $ref: &#39;#/components/schemas/ManagerResponse&#39;
...
</code></pre>
<p>The API call, shown in the OpenApi format above, is a post-call that takes in either <code>Accountant</code> or <code>Manager</code> as request payload. Previously, union-types were not supported therefore the endpoint was expecting the combined schema <code>UsersCreateRequest</code> as a parameter. Here is how the parameter initialization would look like when calling the endpoint,
<strong>Before</strong></p>
<pre><code class="language-ts">const body: UsersCreateRequest = {
  accountId: &#39;A001&#39;,
  firstName: &#39;John&#39;,
  lastName: &#39;Doe&#39;,
  managerId: &#39;M001&#39;,
};

async () =&gt; {
    const { result, ...httpResponse } = await apiController.createUser(body);
};
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-ts">const body: CreateUserBody = {
  accountId: &#39;A001&#39;,
  firstName: &#39;John&#39;,
  lastName: &#39;Doe&#39;,
};

async () =&gt; {
    const { result, ...httpResponse } = await apiController.createUser(body);
};
</code></pre>
<p>Now let&#39;s look at the response type of the same API call in the following example,</p>
<p><strong>Before</strong></p>
<pre><code class="language-ts">async () =&gt; {
    const { result, ...httpResponse } = await apiController.createUser(body);
}
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-ts">async () =&gt; {
    const { result, ...httpResponse } = await apiController.createUser(body);
    if (CreateUserResponse.isAccountantResponse(result)) {
      // Use the result narrowed down to AccountantResponse type.
    } else if (CreateUserResponse.isManagerResponse(result)) {
      // Use the result narrowed down to ManagerResponse type.
    } else {
      // Result is narrowed down to type &#39;never&#39;.
    }
  };
</code></pre>
<p>In the above code snippet, <code>createUser</code> will return either the <code>AccountantResponse</code> or <code>ManagerResponse</code> instance as response payload. Previously, response was of type <code>unknown</code> which allowed any type of response payload. Now, with the introduction of OneOf and AnyOf support, we can check that the response can be of either <code>AccountantResponse</code> or <code>ManagerResponse</code>.</p>
<h2>What has Changed?</h2>
<p>The Typescript SDK now has the ability to handle union types in an endpoint&#39;s request and response. The type validation for union types is also added to support the OneOf/AnyOf constraints.</p>
<h3>Introducing Containers</h3>
<p>Containers are introduced in the Typescript SDK to manage union types. The union types cases are contained in a Container, and this container type comes with the <code>validate&lt;#CaseName&gt;</code> methods to validate the case values. Union-type validation and mapping/un-mapping are being handled by the schema.</p>
<h3>Changes in Endpoints:</h3>
<h4>Endpoint Doc Changes:</h4>
<p>The endpoint&#39;s doc string has been updated to describe union-type parameters or return types.</p>
<p><strong>Before</strong></p>
<pre><code class="language-ts">/**
 * Create a new user
 *
 * @param body
 * @return Response from the API call
 */
async createUser(
  body: UsersCreateRequest,
  requestOptions?: RequestOptions
  ): Promise&lt;ApiResponse&lt;unknown&gt;&gt; 
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-ts">/**
 * Create a new user
 *
 * @param body
 * @return Response from the API call
 */
async createUser(
  body: CreateUserBody,
  requestOptions?: RequestOptions
): Promise&lt;ApiResponse&lt;CreateUserResponse&gt;&gt; 
</code></pre>
<h4>Response Deserialization:</h4>
<p>The union-type response is container-type schema instead of unknown.</p>
<p><strong>Before</strong></p>
<pre><code class="language-ts">return req.callAsJson(unknown(), requestOptions);
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-ts">return req.callAsJson(createUserResponseSchema, requestOptions);
</code></pre>
<h3>Validation Errors:</h3>
<p>Validation errors with helpful messages will be thrown whenever an input with an invalid type is provided to an endpoint or invalid typed data is received via a response from the server. This will enforce type strictness and validation of requests and responses within the SDK. These exceptions will be thrown for:</p>
<p><code>OneOf</code> types: When either more than one acceptable type matches or no type matches at all against the provided value.</p>
<p><code>AnyOf</code> types: When no acceptable type matches at all against the provided value.</p>
<h3>README Changes:</h3>
<p>Now, the Typescript SDK README will reflect the support for union types in parameter types or response types.
<strong>Before</strong></p>
<p><img src="https://user-images.githubusercontent.com/50887243/258311528-f69492d8-b5f0-46d2-a10e-6d7b33077597.png" alt="README Before"></p>
<p><strong>After</strong></p>
<p><img src="https://user-images.githubusercontent.com/50887243/258311549-3736b13e-aab1-4b34-9f40-e554a836b3c1.png" alt="README After"></p>
<h3>Portal Changes</h3>
<p>We have added the capability to select and configure any case mentioned as union type through our API Code Playground on the portal. With this feature, you can now generate code samples for different cases of union types.</p>
<p><img src="https://user-images.githubusercontent.com/50887243/258409976-e8b029e8-4526-46c2-aad9-7130fd448800.gif" alt="portal changes"></p>
]]></content:encoded>
      <category>New</category>
      <category>Typescript</category>
    </item>
    <item>
      <title>Introducing Support for oneOf and anyOf in CSharp SDKs</title>
      <link>https://docs.apimatic.io/changelog/introducing-support-for-oneof-anyof-in-csharp</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/introducing-support-for-oneof-anyof-in-csharp</guid>
      <pubDate>Thu, 03 Aug 2023 00:00:00 GMT</pubDate>
      <description>We are introducing the special oneOf and anyOf types in our CSharp SDKs.</description>
      <content:encoded><![CDATA[<p>We are introducing the special oneOf and anyOf types in our CSharp SDKs.</p>
<h2>Details</h2>
<p>In OpenAPI, any request parameter or response payload could use union types i.e. OneOf/AnyOf, which provides the flexibility of accepting different types of request parameters and returning various types of response payload. Here is an example of an API call using union types,</p>
<pre><code class="language-yaml">paths:
 /users/create:
    post:
      summary: Create a new user
      operationId: createUser
      requestBody:
        required: true
        content:
          application/json:
            schema:
              anyOf:
                - $ref: &#39;#/components/schemas/Accountant&#39;
                - $ref: &#39;#/components/schemas/Manager&#39;
      responses:
        &#39;201&#39;:
          description: User created successfully
          content:
            application/json:
              schema:
                oneOf:
                  - $ref: &#39;#/components/schemas/AccountantResponse&#39;
                  - $ref: &#39;#/components/schemas/ManagerResponse&#39;
...
</code></pre>
<p>The API call, shown in the OpenApi format above, is a post-call that takes in either <code>Accountant</code> or <code>Manager</code> as request payload. Previously, union types were not supported therefore the endpoint was expecting the combined schema <code>UsersCreateRequest</code> as a parameter. Here is how the parameter initialization would look like when calling the endpoint,
<strong>Before</strong></p>
<pre><code class="language-csharp">UsersCreateRequest accountantOrManager = new UsersCreateRequest
    {
        AccountId = &quot;A001&quot;,
        FirstName = &quot;John&quot;,
        LastName = &quot;Doe&quot;,
        ManagerId = &quot;M001&quot;,
    };

dynamic result = await aPIController.CreateUserAsync(accountantOrManager);
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-csharp">CreateUserBody accountantOrManager = CreateUserBody.FromAccountant(
    new Accountant
    {
        AccountId = &quot;A001&quot;,
        FirstName = &quot;John&quot;,
        LastName = &quot;Doe&quot;,
    }
);

CreateUserResponse result = await aPIController.CreateUserAsync(accountantOrManager);
</code></pre>
<p>Now, we have containers that can hold different types of data combined. With these containers, you can check what type of data is inside using the Functions.</p>
<p>You can see an example of this concept in the <code>Match</code> method.</p>
<p><strong>Before</strong></p>
<pre><code class="language-csharp">dynamic result = await aPIController.CreateUserAsync(accountantOrManager);

if (result is AccountantResponse accountantResponse)
{
    // use the accountantResponse
}

if (result is ManagerResponse managerResponse)
{
    // use the managerResponse
}
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-csharp">CreateUserResponse result = await aPIController.CreateUserAsync(accountantOrManager);
result.Match&lt;VoidType&gt;(
    accountantResponse: @case =&gt;
    {
        Console.WriteLine(@case);
        return null;
    },
    managerResponse: @case =&gt;
    {
        Console.WriteLine(@case);
        return null;
    });
</code></pre>
<p>In the above code snippet, <code>CreateUserAsync</code> will return either an <code>AccountantResponse</code> or <code>ManagerResponse</code> instance as the response payload. Previously, it was considered a dynamic response which allowed any type of response payload. Now, with the introduction of OneOf and AnyOf support, we can match that the response can be either <code>AccountantResponse</code> or <code>ManagerResponse</code>.</p>
<h2>What has Changed?</h2>
<p>The CSharp SDK now can handle union types in an endpoint&#39;s request and response. The type validation for union types is also added to support the OneOf/AnyOf constraints.</p>
<h3>Introducing Containers</h3>
<p>Containers are introduced in the CSharp SDK to manage union types. The union types cases are contained in a Container, and this container class exposes the <code>From&lt;#CaseName&gt;</code> method to set the case value. Containers and case classes are assigned the attributes <code>UnionTypeConverter</code> and <code>UnionTypeCaseConverter</code>, respectively. Union-type serialization and deserialization are handled by these converters. </p>
<h3>Changes in Models</h3>
<p>Now, any model type participating as a union type has the <code>[JsonRequired]</code> annotation on all the required properties to verify that required properties are present in the model. Number Enum is now annotated with <code>NumberEnumConverter</code> to serialize and deserialize the number enum. </p>
<h3>Changes in Endpoints</h3>
<h4>Endpoint Doc Changes</h4>
<p>The endpoint&#39;s doc string has been updated to describe union-type parameters or return types.</p>
<p><strong>Before</strong></p>
<pre><code class="language-csharp">/// &lt;summary&gt;
/// Create a new user.
/// &lt;/summary&gt;
/// &lt;param name=&quot;body&quot;&gt;Required parameter: Example: .&lt;/param&gt;
/// &lt;param name=&quot;cancellationToken&quot;&gt; cancellationToken. &lt;/param&gt;
/// &lt;returns&gt;Returns the dynamic response from the API call.&lt;/returns&gt;
public async Task&lt;dynamic&gt; CreateUserAsync(
    Models.UsersCreateRequest body,
    CancellationToken cancellationToken = default)
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-csharp">/// &lt;summary&gt;
/// Create a new user.
/// &lt;/summary&gt;
/// &lt;param name=&quot;body&quot;&gt;Required parameter: Example: .&lt;/param&gt;
/// &lt;param name=&quot;cancellationToken&quot;&gt; cancellationToken. &lt;/param&gt;
/// &lt;returns&gt;Returns the CreateUserResponse response from the API call.&lt;/returns&gt;
public async Task&lt;CreateUserResponse&gt; CreateUserAsync(
    CreateUserBody body,
    CancellationToken cancellationToken = default)
</code></pre>
<h3>Validation Exceptions</h3>
<p>We have introduced <code>OneOfValidationException</code> and <code>AnyOfValidationException</code> which will be thrown whenever an input with an invalid type is provided to an endpoint or invalid typed data is received via a response from the server. This feature will enforce type strictness and validation of requests and responses within the SDK.</p>
<p>Following are the trigger points for raising these exceptions:</p>
<p><code>OneOfValidationException</code>: It is raised when either more than one type is matched or no type is matched at all against the provided value.</p>
<p><code>AnyOfValidationException</code>: It is raised when no type matches at all against the provided value.
 You can explicitly rescue the OneOfValidationException and AnyOfValidationException in the code snippet.</p>
<pre><code class="language-csharp">try
{
    CreateUserResponse result = await aPIController.CreateUserAsync(accountantOrManager);
    result.Match&lt;VoidType&gt;(
        accountantResponse: @case =&gt;
        {
            Console.WriteLine(@case);
            return null;
        },
        managerResponse: @case =&gt;
        {
            Console.WriteLine(@case);
            return null;
        });
}
catch (OneOfValidationException e)
{
    // TODO: Handle exception here
    Console.WriteLine(e.Message);
}
catch (AnyOfValidationException e)
{
    // TODO: Handle exception here
    Console.WriteLine(e.Message);
}
catch (ApiException e)
{
    // TODO: Handle exception here
    Console.WriteLine(e.Message);
}
</code></pre>
<h3>README Changes</h3>
<p>Now, the CSharp SDK README will reflect the support for union types in parameter types or response types.
<strong>Before</strong></p>
<p><img src="https://user-images.githubusercontent.com/50887243/257705339-ff858b1b-79b5-44ba-941b-73ae7653fcb8.png" alt="readme_before"></p>
<p><strong>After</strong></p>
<p><img src="https://user-images.githubusercontent.com/50887243/257705358-d73de59d-7b59-4d61-9968-c5671733894d.png" alt="readme_after"></p>
<h3>Portal Changes</h3>
<p>We have added the capability to select and configure any of the cases mentioned as union type through our API Code Playground on the portal. With this feature, you can now generate code samples for different cases of union types.</p>
<p><img src="https://user-images.githubusercontent.com/50887243/257710091-6245e518-1890-4097-bfcb-e431f3c87674.gif" alt="portal changes"></p>
]]></content:encoded>
      <category>New</category>
      <category>CSharp</category>
    </item>
    <item>
      <title>Introducing Support for oneOf and anyOf in Python SDKs</title>
      <link>https://docs.apimatic.io/changelog/introducing-support-for-oneof-anyof-in-python</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/introducing-support-for-oneof-anyof-in-python</guid>
      <pubDate>Wed, 02 Aug 2023 00:00:00 GMT</pubDate>
      <description>We are introducing the special oneOf and anyOf types in our Python SDKs.</description>
      <content:encoded><![CDATA[<p>We are introducing the special oneOf and anyOf types in our Python SDKs.</p>
<h2>Details</h2>
<p>In OpenAPI, any request parameter or response payload could use union types i.e. OneOf/AnyOf, which provides the flexibility of accepting different types of request parameters and returning various types of response payload. Here is an example of an API call using union types,</p>
<pre><code class="language-yaml">paths:
 /users/create:
    post:
      summary: Create a new user
      operationId: createUser
      requestBody:
        required: true
        content:
          application/json:
            schema:
              anyOf:
                - $ref: &#39;#/components/schemas/Accountant&#39;
                - $ref: &#39;#/components/schemas/Manager&#39;
      responses:
        &#39;201&#39;:
          description: User created successfully
          content:
            application/json:
              schema:
                oneOf:
                  - $ref: &#39;#/components/schemas/AccountantResponse&#39;
                  - $ref: &#39;#/components/schemas/ManagerResponse&#39;
...
</code></pre>
<p>The API call, shown in the OpenApi format above, is a post-call that takes in either <code>Accountant</code> or <code>Manager</code> as request payload. Previously, union-types were not supported therefore the endpoint was expecting the combined schema <code>UsersCreateRequest</code> as a parameter. Here is how the parameter initialization would look like when calling the endpoint,
<strong>Before</strong></p>
<pre><code class="language-python">body = UsersCreateRequest(
    account_id=&#39;A001&#39;,
    first_name=&#39;John&#39;,
    last_name=&#39;Doe&#39;,
    manager_id=&#39;M001&#39;
)

response = client.user_controller.create_user(body)
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-python">body = Accountant(
    account_id=&#39;A001&#39;,
    first_name=&#39;John&#39;,
    last_name=&#39;Doe&#39;
)

response = client.user_controller.create_user(body)
</code></pre>
<p>Now let&#39;s look at the response type of the same API call in the following example,</p>
<p><strong>Before</strong></p>
<pre><code class="language-python">response = client.user_controller.create_user(body)

assert isinstance(response, AccountantResponse)  # False
assert isinstance(response, ManagerResponse)  # False
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-python">response = client.user_controller.create_user(body)

assert isinstance(response, AccountantResponse)  # True
assert isinstance(response, ManagerResponse)  # False
</code></pre>
<p>In the above code snippet, <code>createUser</code> will return either the <code>AccountantResponse</code> or <code>ManagerResponse</code> instance as response payload. Previously, it was considered a dynamic response which allowed any type of response payload. Now, with the introduction of OneOf and AnyOf support, we can assert that the response can be of either <code>AccountantResponse</code> or <code>ManagerResponse</code>.</p>
<h2>What has Changed?</h2>
<p>The Python SDK now has the ability to handle union types in an endpoint&#39;s request and response. The type validation for union types is also added to support the OneOf/AnyOf constraints.</p>
<h3>Introducing UnionTypeLookUp</h3>
<p>All union types (i.e. OneOf/AnyOf) instances defined in the spec are now being accessed through <code>UnionTypeLookUp</code>. We introduced a class in utilities by the name of <code>UnionTypeLookUp</code> which holds a dictionary of unionTypes. The responsibility of the <code>UnionTypeLookUp</code> class is to provide the already in-place union-type instances. The instance returned by the <code>UnionTypeLookUp</code> class, is then used for validation, deserialization, and serialization.</p>
<p>For the given endpoint, the union-type instance would look like,</p>
<pre><code class="language-python">{
    &#39;CreateUserBody&#39;: AnyOf(
            [
                LeafType(Accountant),
                LeafType(Manager)
            ]
        ),
    &#39;CreateUserResponse&#39;: OneOf(
        [
            LeafType(AccountantResponse),
            LeafType(ManagerResponse)
        ]
    )
}
</code></pre>
<h3>Changes in Models:</h3>
<p>Now, any custom type (i.e. models or enums) participating as union-type, has the validate method to verify all required properties are present in the case of models and the provided value is a valid enum value in the case of enums.</p>
<h3>Changes in Endpoints:</h3>
<h4>Endpoint Doc Changes:</h4>
<p>The endpoint&#39;s doc string has been updated to describe union-type parameters or return types.</p>
<p><strong>Before</strong></p>
<pre><code class="language-python">def create_user(self,
                body):
    &quot;&quot;&quot;Does a POST request to /users/create.

    Create a new user

    Args:
        body (UsersCreateRequest): TODO: type description here.

    Returns:
        mixed: Response from the API. User created successfully

    Raises:
        APIException: When an error occurs while fetching the data from
            the remote API. This exception includes the HTTP Response
            code, an error message, and the HTTP body that was received in
            the request.

    &quot;&quot;&quot;
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-python">def create_user(self,
                body):
    &quot;&quot;&quot;Does a POST request to /users/create.

    Create a new user

    Args:
        body (Accountant | Manager): TODO: type description here.

    Returns:
        AccountantResponse | ManagerResponse: Response from the API. User
            created successfully

    Raises:
        APIException: When an error occurs while fetching the data from
            the remote API. This exception includes the HTTP Response
            code, an error message, and the HTTP body that was received in
            the request.

    &quot;&quot;&quot;
</code></pre>
<h4>Parameter Validation:</h4>
<p>The union-type parameters are now being validated when sending the request.</p>
<p><strong>Before</strong></p>
<pre><code class="language-python">return super().new_api_call_builder.request(
    RequestBuilder().server(Server.DEFAULT)
    .path(&#39;/users/create&#39;)
    .http_method(HttpMethodEnum.POST)
    .body_param(Parameter()
                .value(body))
    .body_serializer(APIHelper.json_serialize)
).execute()
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-python">return super().new_api_call_builder.request(
    RequestBuilder().server(Server.DEFAULT)
    .path(&#39;/users/create&#39;)
    .http_method(HttpMethodEnum.POST)
    .body_param(Parameter()
                .value(body)
                .validator(lambda value: UnionTypeLookUp.get(&#39;CreateUserBody&#39;).validate(value)))
    .body_serializer(APIHelper.json_serialize)
).execute()
</code></pre>
<h4>Response Deserialization:</h4>
<p>The union-type response is now being validated and then deserialized.</p>
<p><strong>Before</strong></p>
<pre><code class="language-python">return super().new_api_call_builder.response(
    ResponseHandler()
    .deserializer(APIHelper.dynamic_deserialize)
).execute()
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-python">return super().new_api_call_builder.response(
    ResponseHandler()
    .deserializer(lambda value: APIHelper.deserialize_union_type(
         UnionTypeLookUp.get(&#39;CreateUserResponse&#39;), value))
).execute()
</code></pre>
<h3>Validation Exceptions:</h3>
<p>We have introduced <code>OneOfValidationException</code> and <code>AnyOfValidationException</code> which will be thrown whenever an input with an invalid type is provided to an endpoint or invalid typed data is received via a response from the server. This feature will enforce type strictness and validation of requests and responses within the SDK.</p>
<p>Following are the trigger points for raising these exceptions:</p>
<p><code>OneOfValidationException</code>: It is raised when either more than one type is matched or no type is matched at all against the provided value.</p>
<p><code>AnyOfValidationException</code>: It is raised when no type matched at all against the provided value.
 You can explicitly rescue the OneOfValidationException and AnyOfValidationException in the code snippet.</p>
<pre><code class="language-python">try:
    result = client.user_controller.create_user(body)
    print(result)
except OneOfValidationException as e: 
    print(e)
except AnyOfValidationException as e: 
    print(e)
except APIException as e: 
    print(e)
</code></pre>
<h3>README Changes:</h3>
<p>Now, the Python SDK README will reflect the support for union types in parameter types or response types.
<strong>Before</strong></p>
<p><img src="https://user-images.githubusercontent.com/26116671/255819705-18e36a81-2114-4d2c-b4ee-2b44a5b93087.png" alt="README Before"></p>
<p><strong>After</strong></p>
<p><img src="https://user-images.githubusercontent.com/26116671/255819874-5f3160ad-9864-4d88-9233-2bad300fb7f8.png" alt="README After"></p>
<h3>Portal Changes</h3>
<p>We have added the capability to select and configure any case mentioned as union type through our API Code Playground on the portal. With this feature, you can now generate code samples for different cases of union types.</p>
<p><img src="https://user-images.githubusercontent.com/50887243/251092476-bc571b2b-84ec-4793-8407-28ed1ade8586.gif" alt="portal changes"></p>
]]></content:encoded>
      <category>New</category>
      <category>Python</category>
    </item>
    <item>
      <title>Improved Validation Messages</title>
      <link>https://docs.apimatic.io/changelog/added-improvements-to-validation-messages</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/added-improvements-to-validation-messages</guid>
      <pubDate>Wed, 19 Jul 2023 09:35:04 GMT</pubDate>
      <description>Notifies users about changes to validation messages.</description>
      <content:encoded><![CDATA[<p>We have significantly revamped the content of our validation messages shown when importing/transforming API specifications or generating artifacts like SDKs/Portal, etc. in order to make it easier for our end-users to quickly understand issues and apply relevant fixes.</p>
<h2>Details</h2>
<p>Here are some of the improvements made to the validation messages content:</p>
<h3>1. More messages now contain source information to trace root of issue.</h3>
<p>For API specifications, where line information may not be available, we have introduced breadcrumb paths to give an approximate location of the problematic component:</p>
<p><strong>Before</strong>:</p>
<p><img src="https://docs.apimatic.io/images/changelog/trace-issue-before.PNG" alt="Trace - Before"></p>
<p><strong>After</strong>:</p>
<p><img src="https://docs.apimatic.io/images/changelog/trace-issue-after.PNG" alt="Trace - After"></p>
<p>For messages where line information is available, we have additionally introduced JSON reference paths to give an exact location of problematic component. This makes it easier to locate a component even when line numbers change if the input document is updated:</p>
<p><strong>Before</strong>:</p>
<p><img src="https://docs.apimatic.io/images/changelog/json-path-before.PNG" alt="JSON Path - Before"></p>
<p><strong>After</strong>:</p>
<p><img src="https://docs.apimatic.io/images/changelog/json-path-after.PNG" alt="JSON Path - After"></p>
<h3>2. Improved structure of messages.</h3>
<p>We have greatly increased the user-friendliness of messages by firstly simplifying the wording, making the messages clearer and easier to understand. We have enhanced readability by making them more concise and by removing any inconsistencies or ambiguities. Moreover, we have tried to ensure consistency in the tone and language used across all messages to improve experience further.</p>
<p><strong>Before</strong>:</p>
<p><img src="https://docs.apimatic.io/images/changelog/message-structure-before.PNG" alt="Message Structure - Before"></p>
<p><strong>After</strong>:</p>
<p><img src="https://docs.apimatic.io/images/changelog/message-structure-after.PNG" alt="Message Structure - After"></p>
<h3>3. Messages are now more organized so you can focus on what matters first.</h3>
<p>Related messages will be grouped together and not scattered all over the place:</p>
<p><strong>Before</strong>:</p>
<p><img src="https://docs.apimatic.io/images/changelog/grouped-before.PNG" alt="Grouped - Before"></p>
<p><strong>After</strong>:</p>
<p><img src="https://docs.apimatic.io/images/changelog/grouped-after.PNG" alt="Grouped - After"></p>
<p>Validation/linting messages will be at the top while any informational logs will be placed at the end:</p>
<p><img src="https://docs.apimatic.io/images/changelog/logs.PNG" alt="Logs"></p>
<h3>4. Documentation for all validation/linting messages available now.</h3>
<p>Reference documentation for each validation/linting message is now available as part of our ruleset collection which can be viewed <a href="https://docs.apimatic.io/rulesets/overview/#available-rulesets">here</a>. Against each message, a <code>View Details</code> hyperlink will be shown which will point to the relevant documentation for that message and include a detailed description of the issue, external links that can help provide more information and tips/hints that can be followed to resolve the issue, etc. No need to hunt FAQs and troubleshooting sections for relevant answers. </p>
<p><img src="https://docs.apimatic.io/images/changelog/view-details.PNG" alt="Logs"></p>
<h3>5. Ability to toggle between stricter and more flexible validation.</h3>
<p>By default, the import/transformation feature is quite tolerant i.e. it may ignore certain issues in your API specification document or apply a lower severity for them during validation. However, if you wish to strictly validate your API specification documents to get an optimal output, we now provide an ability to enable stricter validation using the <code>UseStrictValidation</code> import setting. This will require you to upload a <a href="https://docs.apimatic.io/manage-apis/apimatic-metadata/">APIMatic Metadata</a> file with the flag enabled in the <a href="https://docs.apimatic.io/manage-apis/create-or-import-api/#import-settings"><code>ImportSettings</code></a> object as follows:</p>
<pre><code class="language-json">{
	&quot;ImportSettings&quot;: {
		&quot;UseStrictValidation&quot;: true
	}
}
</code></pre>
<p>Note, that this may enforce additional checks or increase severity of some issues. You can, however, choose to <a href="https://docs.apimatic.io/validate-lint-apis/configuring-validation">configure validation</a> and tune it as per your needs.</p>
]]></content:encoded>
      <category>Improvement</category>
      <category>Validation</category>
    </item>
    <item>
      <title>Improved Search Results with Keyword Highlighting on Developer Portal</title>
      <link>https://docs.apimatic.io/changelog/portal-search-improvements</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/portal-search-improvements</guid>
      <pubDate>Wed, 19 Jul 2023 00:00:00 GMT</pubDate>
      <description>We are excited to introduce an enhancement that significantly improves the user experience of our Developer Portal's search functionality. With this improvement, when you perform a search, the relevant keyword(s) will now be visually highlighted within the search results.</description>
      <content:encoded><![CDATA[<p>We are excited to introduce an enhancement that significantly improves the user experience of our Developer Portal&#39;s search functionality. With this improvement, when you perform a search, the relevant keyword(s) will now be visually highlighted within the search results.</p>
<h2>Why the Change?</h2>
<p>We understand that the sheer volume of search results can sometimes be overwhelming for users, making it difficult to identify why a specific result appears in the list. To address this issue, we&#39;ve implemented a solution that allows you to easily spot the relevant keyword in the search results, providing you with a clearer indication of why a particular result is being presented.</p>
<h3>Before</h3>
<p><img src="https://docs.apimatic.io/images/changelog/no-keyword-highlight-search-dx-portal.png" alt="No Keywords Highlighted in Search Results"></p>
<h3>After</h3>
<p><img src="https://docs.apimatic.io/images/changelog/keyword-highlight-search-dx-portal.png" alt="Keywords Highlighted in Search Results"></p>
<blockquote>
<p><strong>Note</strong></p>
<p>The updated search will be enabled automatically for all newly generated portals. There is no need to change/update any setting.</p>
</blockquote>
]]></content:encoded>
      <category>Improvement</category>
      <category>API Developer Portal</category>
      <category>Search</category>
    </item>
    <item>
      <title>Introducing Support for oneOf and anyOf in Ruby SDKs</title>
      <link>https://docs.apimatic.io/changelog/introducing-support-for-oneof-anyof-in-ruby</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/introducing-support-for-oneof-anyof-in-ruby</guid>
      <pubDate>Tue, 27 Jun 2023 00:00:00 GMT</pubDate>
      <description>We are introducing the special oneOf and anyOf types in our Ruby SDKs.</description>
      <content:encoded><![CDATA[<p>We are introducing the special oneOf and anyOf types in our Ruby SDKs.</p>
<h2>Details</h2>
<p>In OpenAPI, any request parameter or response payload could use union-types i.e. OneOf/AnyOf, which provides the flexibility of accepting different types of request parameters and returning various types of response payload. Here is an example of an API call using union types,</p>
<pre><code class="language-yaml">paths:
 /users/create:
    post:
      summary: Create a new user
      operationId: createUser
      requestBody:
        required: true
        content:
          application/json:
            schema:
              anyOf:
                - $ref: &#39;#/components/schemas/Accountant&#39;
                - $ref: &#39;#/components/schemas/Manager&#39;
      responses:
        &#39;201&#39;:
          description: User created successfully
          content:
            application/json:
              schema:
                oneOf:
                  - $ref: &#39;#/components/schemas/AccountantResponse&#39;
                  - $ref: &#39;#/components/schemas/ManagerResponse&#39;
...
</code></pre>
<p>The API call, shown in the OpenApi format above, is a post-call that takes in either <code>Accountant</code> or <code>Manager</code> as request payload. Previously, union types were not supported therefore the endpoint was expecting the combined schema <code>UsersCreateRequest</code> as a parameter. Here is how the parameter initialization would look like when calling the endpoint,
<strong>Before</strong></p>
<pre><code class="language-ruby">body = UsersCreateRequest.new(
  &#39;accountantId&#39;,
  &#39;john&#39;,
  &#39;doe&#39;,
  &#39;managerId&#39;
)

response = client.user.create_user(body)
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-ruby">body = Accountant.new(
  &#39;accountantId&#39;,
  &#39;john&#39;,
  &#39;doe&#39;
)

response = client.user.create_user(body)
</code></pre>
<p>Now let&#39;s look at the response type of the same API call in the following example,</p>
<p><strong>Before</strong></p>
<pre><code class="language-ruby">response = client.user.create_user(body)

assert response.instance_of? AccountantResponse # false
assert response.instance_of? ManagerResponse # false
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-ruby">response = client.user.create_user(body)

assert response.instance_of? AccountantResponse # true
assert response.instance_of? ManagerResponse # false
</code></pre>
<p>In the above code snippet, <code>createUser</code> will return either an <code>AccountantResponse</code> or <code>ManagerResponse</code> instance as the response payload. Previously, it was considered a dynamic response which allowed any type of response payload. Now, with the introduction of OneOf and AnyOf support, we can assert that the response can be either <code>AccountantResponse</code> or <code>ManagerResponse</code>.</p>
<h2>What has Changed?</h2>
<p>The Ruby SDK now has the ability to handle union types in an endpoint&#39;s request and response. The type validation for union types is also added to support the OneOf/AnyOf constraints.</p>
<h3>Introducing UnionTypeLookUp</h3>
<p>All instances of union types (i.e. OneOf/AnyOf) instances that are defined in the spec are now being accessed through <code>UnionTypeLookUp</code>. We introduced a class in utilities by the name of <code>UnionTypeLookUp</code> which holds a hash of unionTypes. The responsibility of the <code>UnionTypeLookUp</code> class is to provide the already in-place union-type instances. The instance returned by the <code>UnionTypeLookUp</code> class, is then used for validation, deserialization, and serialization.</p>
<p>For the above endpoint, the union-type instance would look like,</p>
<pre><code class="language-ruby">{
    :CreateUserBody =&gt; AnyOf.new(
      [
        LeafType.new(Accountant),
        LeafType.new(Manager)
      ]
    ),

    :CreateUserResponse =&gt; OneOf.new(
      [
        LeafType.new(AccountantResponse),
        LeafType.new(ManagerResponse)
      ]
    )
}
</code></pre>
<h3>Changes in Models</h3>
<p>Now, any custom type (i.e. models or enums) participating as union-type, has the validate method to verify all required properties are present in the case of models and the provided value is a valid enum value in the case of enums.</p>
<h3>Changes in Endpoints</h3>
<h4>Endpoint Doc Changes</h4>
<p>The endpoint&#39;s doc string has been updated to describe union-type parameters or return types.</p>
<p><strong>Before</strong></p>
<pre><code class="language-ruby"># Create a new user
# @param [UsersCreateRequest] The user instance to create.
# @return [Mixed] The created user.
def create_user(body)

end
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-ruby"># Create a new user
# @param [UsersCreateRequest] The user instance to create.
# @return [AccountantResponse | ManagerResponse] The created user.
def create_user(body)

end
</code></pre>
<h4>Parameter Validation</h4>
<p>The union-type parameters are now being validated when sending the request.</p>
<p><strong>Before</strong></p>
<pre><code class="language-ruby">new_api_call_builder
   .request(new_request_builder(HttpMethodEnum::POST,
                                  &#39;/users/create&#39;,
                                  Server::DEFAULT)
                .body_param(new_parameter(body))
                .body_serializer(proc do |param| param.to_json unless param.nil? end))
   .execute
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-ruby">new_api_call_builder
   .request(new_request_builder(HttpMethodEnum::POST,
                                  &#39;/users/create&#39;,
                                  Server::DEFAULT)
                .body_param(new_parameter(body)
                            .validator(proc do |value|
                              UnionTypeLookUp.get(:CreateUserBody)
                                              .validate(value)
                            end))
                .body_serializer(proc do |param| param.to_json unless param.nil? end))
   .execute
</code></pre>
<h4>Response Deserialization</h4>
<p>The union-type response is now being validated and then deserialized.</p>
<p><strong>Before</strong></p>
<pre><code class="language-ruby">new_api_call_builder
   .response(new_response_handler
                .deserializer(APIHelper.method(:dynamic_deserializer)))
   .execute
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-ruby">new_api_call_builder
   .response(new_response_handler
                .deserializer(proc do |response, should_symbolize|
                  APIHelper.deserialize_union_type(
                    UnionTypeLookUp.get(:CreateUserResponse),
                    response, should_symbolize, true
                  )
                end))
   .execute
</code></pre>
<h3>Validation Exceptions</h3>
<p>We have introduced <code>OneOfValidationException</code> and <code>AnyOfValidationException</code> which will be thrown whenever an input with an invalid type is provided to an endpoint or invalid typed data is received via a response from the server. This feature will enforce type strictness and validation of requests and responses within the SDK.</p>
<p>Following are the trigger points for raising these exceptions:</p>
<p><code>OneOfValidationException</code>: It is raised when either more than one type is matched or no type is matched at all against the provided value.</p>
<p><code>AnyOfValidationException</code>: It is raised when no type matches at all against the provided value.
 You can explicitly rescue the OneOfValidationException and AnyOfValidationException in the code snippet.</p>
<pre><code class="language-ruby">begin
  result = client.user.create_user(accountantOrManager)
  puts result
rescue OneOfValidationException =&gt; e
  puts &quot;Caught OneOfValidationException: #{e.message}&quot;
rescue AnyOfValidationException =&gt; e
  puts &quot;Caught AnyOfValidationException: #{e.message}&quot;
rescue APIException =&gt; e
  puts &quot;Caught APIException: #{e.message}&quot;
end
</code></pre>
<h3>README Changes</h3>
<p>Now, the Ruby SDK README will reflect the support for union types in parameter types or response types.
<strong>Before</strong></p>
<p><img src="https://user-images.githubusercontent.com/50887243/249127545-24800a03-a420-431c-9e5d-a99c6e70ac7a.png" alt="readme endpoint before">   </p>
<p><strong>After</strong></p>
<p><img src="https://user-images.githubusercontent.com/50887243/249127368-b6f37f5d-ae8f-4911-a238-3f81049f46dd.png" alt="readme endpoint after"></p>
<h3>Portal Changes</h3>
<p>We have added the capability to select and configure any of the cases mentioned as union type through our API Code Playground on the portal. With this feature, you can now generate code samples for different cases of union types.</p>
<p><img src="https://user-images.githubusercontent.com/50887243/250786436-53d5225c-0f50-4f9e-ac1f-f7c157abfd29.gif" alt="portal2"></p>
]]></content:encoded>
      <category>New</category>
      <category>Ruby</category>
    </item>
    <item>
      <title>Added Support For Swagger v2.0 and OpenAPI v3.0 Validation and Linting</title>
      <link>https://docs.apimatic.io/changelog/adding-support-for-swagger2-openapi3-validation-linting</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/adding-support-for-swagger2-openapi3-validation-linting</guid>
      <pubDate>Mon, 26 Jun 2023 00:00:00 GMT</pubDate>
      <description>As part of our efforts to improve existing format-specific validation, we are now introducing validators for Swagger v2.0 and OpenAPI v3.0 specifications.</description>
      <content:encoded><![CDATA[<p>As part of our efforts to improve existing format-specific validation, we are now introducing validators for Swagger v2.0 and OpenAPI v3.0 specifications.</p>
<h2>Previous Status of Validation</h2>
<p>Previously, we were only utilizing flexible format-specific validation approach, which did not encompass all standard checks. Our primary focus was to make the best possible attempt to import or transform a specification even in the presence of issues, except for those that completely blocked the process. </p>
<p>Furthermore, the validation messages that we provided offered minimal metadata pertaining to the actual issues, making it occasionally arduous to resolve the problems within the specification.</p>
<p>We also lacked the capability to configure the linting checks within our validation system.</p>
<h2>Introducing Stricter Validation and Enhanced Linting</h2>
<p>We are now announcing the support for format-specific stricter validation and enhanced linting in APIMatic, where your specifications get scrutinized by our new validators according to the standards defined by the respective format. This provides you with a detailed summary of the issues, including all the metadata needed to resolve an issue, such as the message itself that lets you know about the violation, the line number where the issue exactly occurred in the spec, the hints that help you think about possible ways to fix the issue and many more.</p>
<h3>Using the Newer Validation</h3>
<p>To enable the new stricter form of validation, we have introduced a new import setting called <code>UseStrictValidation</code>. This setting can be enabled by importing a metadata file along with the specification, with the <code>UseStrictValidation</code> import setting enabled.</p>
<p>Here&#39;s an example metadata file with the <code>UseStrictValidation</code> setting enabled:</p>
<pre><code class="language-json">{
	&quot;ImportSettings&quot;: {
		&quot;UseStrictValidation&quot;: true
	}
}
</code></pre>
<h3>OpenAPI v3.0 Standards</h3>
<p>The OpenAPI v3.0 standards define a set of rules that must be adhered to by an OpenAPI specification, using reserved keywords such as <strong>MUST</strong>, <strong>MUST NOT</strong>, <strong>REQUIRED</strong>, <strong>SHALL</strong>, and <strong>SHALL NOT</strong>. These reserved keywords are employed to define certain rules that are mandatory for an OpenAPI spec to be valid, and these rules are referred to as standard validation rules.</p>
<p>Our new validation uses the concept of rulesets, where each ruleset is a group of rules with similar characteristics. 
The OpenAPI 3.0 standard validation rules have been segregated into 2 validation rulesets:</p>
<ol>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-syntax-validation/overview/">OpenAPI v3.0 Syntax Validation</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-standards-validation/overview/">OpenAPI v3.0 Standard validation</a></li>
</ol>
<p>In addition to the mandatory rules, there are some rules that are considered good to have for an OpenAPI spec. These rules, referred to as standard linting rules, are defined using the reserved keywords such as <strong>SHOULD</strong>, <strong>SHOULD NOT</strong>, <strong>RECOMMENDED</strong>, and <strong>NOT RECOMMENDED</strong>.</p>
<p>The standard linting rules have been segregated into two linting rulesets:</p>
<ol>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-syntax-linting/overview/">OpenAPI v3.0 Syntax Linting</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-standards-linting/overview/">OpenAPI v3.0 Standard Linting</a></li>
</ol>
<p>Our new format-specific validation incorporates all the standard validation and linting rules defined in the official <a href="https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md">OpenAPI standard documentation</a>.</p>
<h4>Validation Example</h4>
<pre><code class="language-yaml">&quot;/api/path&quot;: {
      &quot;get&quot;: {
        &quot;summary&quot;: &quot;Sample API with a path&quot;,
        &quot;description&quot;: &quot;A sample API with a path URL that contains no templates.&quot;,
        &quot;operationId&quot;: &quot;SampleAPI&quot;,
        &quot;parameters&quot;: [
          {
            &quot;name&quot;: &quot;pathParam&quot;,
            &quot;in&quot;: &quot;path&quot;,
            &quot;description&quot;: &quot;The path parameter.&quot;,
          }
        ]
    }
}
</code></pre>
<p>In the above example, we have an unused path parameter since there is no template expression in the path URL. According to the <a href="https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#fixed-fields-10">OpenAPI v3.0 standard document</a>, </p>
<blockquote>
<p>If <code>in</code> is <code>&quot;path&quot;</code>, the name field MUST correspond to a template expression occurring within the path field in the Paths Object.</p>
</blockquote>
<p>So, the newer validation will log this as a violation:</p>
<p><img src="https://docs.apimatic.io/images/changelog/unused-path-parameter-found.png" alt="Unused path parameter validation"></p>
<p>Furthermore, when you click on the provided link within the validation message, it will direct you to a page that provides comprehensive details regarding the specific violated rule. This allows for easy access to in-depth information related to the rule that was flagged during the validation process. Follow <a href="https://docs.apimatic.io/rulesets/openapi-v3-standards-validation/path-parameter-exists-in-path-url-template/">this link</a> for more details.</p>
<blockquote>
<p><strong>Note</strong></p>
<p>We are working towards format-specific strict validation for OpenAPI v3.1 standards as well and will be announcing their support in the near future.</p>
</blockquote>
<h2>Linting OpenAPI v3 Beyond Standards for Better API Consumption</h2>
<p>While the OpenAPI v3.0 standard document tells you exactly what you need to do to ensure your OpenAPI v3.0 specification is compliant with the standards, if you need to increase your API consumption using the auto-generated SDKs and the developer experience portal, linting plays an important role. It guarantees that the generated SDK and Developer Portal offer all the necessary components to facilitate seamless API consumption.</p>
<p>In order to facilitate linting of the OpenAPI specification for Code and Docs Generation purposes, we have established our own set of rules. These rules ensure that the API specification provided for Code Generation meets the requirements for generating high-quality SDKs as well as producing comprehensive documentation. By adhering to these rules, we ensure that the generated SDKs and documentation are of the highest standard and effectively support developers in utilizing the API.</p>
<p>Here are a few examples of these rules in action:</p>
<ol>
<li>Very long titles, names, and summaries, which exceed 50 characters, can disrupt the user-friendliness of the generated Developer Portal. Subsequently, this can also lead to issues in the code generation process for SDKs. The following example illustrates this scenario:</li>
</ol>
<pre><code class="language-yaml">&quot;info&quot;: {
    &quot;title&quot;: &quot;This is a very long info title which exceeds the limit of 50 characters.&quot;,
  }
</code></pre>
<p><img src="https://docs.apimatic.io/images/changelog/title-too-long.png" alt="Title too long validation rule"></p>
<ol start="2">
<li>Another scenario is of missing examples for parameters, media types, or schemas. In addition to demonstrating the intended payload that an object is expected to accept, we use these examples for automatic generation of test cases for the API. So, it is essential for example(s) to be defined using the example or examples property.</li>
</ol>
<pre><code class="language-yaml">
&quot;parameters&quot;: [
          {
            &quot;name&quot;: &quot;language&quot;,
            &quot;in&quot;: &quot;query&quot;,
            &quot;required&quot;: false,
            &quot;type&quot;: &quot;string&quot;
          }
]
</code></pre>
<p><img src="https://docs.apimatic.io/images/changelog/example-property-openapi-file.png" alt="Set examples ruleset"></p>
<h3>Code Generation Rulesets</h3>
<ul>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-codegen-linting/overview/">OpenAPI v3 Linting for APIMatic Code Generation</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-codegen-syntax-linting/overview/">OpenAPI v3 Syntax Linting for APIMatic Code Generation</a></li>
</ul>
<h3>Docs Generation Rulesets</h3>
<ul>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-docsgen-linting/overview/">OpenAPI v3 Linting for APIMatic Portal Generation</a></li>
<li><a href="https://docs.apimatic.io/rulesets/openapi-v3-docsgen-syntax-linting/overview/">OpenAPI v3 Syntax Linting for APIMatic Portal Generation</a></li>
</ul>
<p>For more detailed information on following best practices when creating your OpenAPI v3.0 specifications to improve API consumption, we invite you to read our blog post <a href="https://www.apimatic.io/blog/2022/11/14-best-practices-to-write-openapi-for-better-api-consumption/">14 Best Practices to Write OpenAPI for Better API Consumption</a>.</p>
<h3>Swagger v2.0 Standards</h3>
<p>Despite the introduction of OpenAPI v3.0 and more recently, OpenAPI v3.1, there is still a need to cover all the validation checks for older versions as well. Swagger v2.0 is a format that is still used by many worldwide. So, we have added support for Swagger v2.0 standard rules as part of our format-specific stricter validation. </p>
<p>These cover all the mandatory validation checks from the <a href="https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md">Swagger v2.0 standard document</a>, marked with keywords such as:</p>
<ul>
<li>“MUST”, “MUST NOT”, “REQUIRED”, “SHALL”, “SHALL NOT”.</li>
</ul>
<p>The Swagger v2.0 standard validation rulesets are available here.</p>
<ul>
<li><a href="https://docs.apimatic.io/rulesets/swagger-v2-standards-validation/overview/">Swagger v2 Standard Validation</a></li>
<li><a href="https://docs.apimatic.io/rulesets/swagger-v2-syntax-validation/overview/">Swagger v2 Syntax Validation</a></li>
</ul>
<h2>Validating APIMatic Metadata files</h2>
<p>Apart from OpenAPI v3.0, Swagger v2.0 validation, and linting, we have also introduced APIMatic Metadata file validation. Writing metadata files is now easier than ever for our users. Common syntax and semantic issues are now a thing of the past as the new metadata file validation aims to highlight such errors in the metadata file uploaded along with the API specification file. Further information about APIMatic Metadata files can be found <a href="https://docs.apimatic.io/manage-apis/apimatic-metadata/">here</a>.</p>
<h3>Metadata File Validation Ruleset</h3>
<p>Please find the validation rulesets for metadata file <a href="https://docs.apimatic.io/rulesets/metadata-validation/overview/">here</a>.</p>
<h2>Support for Custom Rules Beyond Built-in Rulesets</h2>
<p>Beyond APIMatic built-in rulesets, users can also define their own customized rulesets. Their specs would then be validated against the built-in rulesets plus the rulesets defined by them.</p>
<p>Custom rulesets can be defined in a file and referenced in the metadata file. Please refer to the <a href="https://docs.apimatic.io/validate-lint-apis/adding-your-own-rules">official documentation</a> on how to define your own custom rulesets.</p>
<p>In order to avoid any mistakes in defining custom rulesets, a few rules are in place to ensure that the custom rulesets have all the relevant information needed. Some of these rules are described below:</p>
<ul>
<li><strong>Required Custom Rule Id</strong>: This rule helps ensure that the rules specified in the custom ruleset have rule &quot;id&quot; defined that is used as a unique identifier for the rule.</li>
<li><strong>Unique Custom Rule Id</strong>: To uniquely identify each rule. This rule is in place to prevent any rules from being introduced with a duplicate &quot;id&quot; property.</li>
<li><strong>Required Custom Rule Targets</strong>: The property ‘targets’ must be specified when defining a custom rule. This helps identify the target component(s) that need to be validated.</li>
</ul>
<h3>Custom Rulesets Validation Ruleset</h3>
<p>Please refer to <a href="https://docs.apimatic.io/rulesets/custom-ruleset-syntax-validation/overview/">this document</a> to learn more about the validation rulesets that are set in place for defining custom rulesets. </p>
<h3>Link Custom Ruleset through Metadata File</h3>
<p>To link a custom ruleset file through the metadata file, see the following example:</p>
<pre><code class="language-yaml">{
    &quot;Id&quot;: &quot;my-custom-ruleset&quot;,
    &quot;Rules&quot;: [
        {
            &quot;Id&quot;: &quot;max-operation-id-length-30&quot;,
            &quot;VerificationMethod&quot;: &quot;Length&quot;,
            &quot;Targets&quot;: [
                {
                    &quot;JsonPath&quot;: &quot;$.paths.*.*.operationId&quot;
                }
            ],
            &quot;VerificationMethodArgs&quot;: {
                &quot;Maximum&quot;: 30
            },
            &quot;Message&quot;: &quot;Operation id is too long.&quot;
        }
    ]
}
</code></pre>
<pre><code class="language-yaml">{
    &quot;ValidationConfiguration&quot;: {
        &quot;Rulesets&quot;: {
            &quot;my-custom-ruleset&quot;: {
                &quot;FilePath&quot;: &quot;/path/to/ruleset/file&quot;
            }
        }
    }
}
</code></pre>
<h2>Ability to Configure Validation</h2>
<p>Both validation and linting are configurable, however, there are a greater number of configurable options for linting than there are for validation. </p>
<p>For instance, in the case of validation configurations, we can enable either a specific set of rules that are disabled by default or all of them. Whereas in the case of linting, we have the options to enable only a set of rules, skip a set of rules, configure the severity of rules, and skip rulesets altogether. </p>
<p>The following example shows how to configure linting using configuration:</p>
<pre><code class="language-yaml">{
    &quot;Rulesets&quot;: {
        &quot;openapi-v3-standards-linting&quot;: {
            &quot;Severity&quot;: &quot;Information&quot;,
            &quot;Rules&quot;: {
                &quot;Skip&quot;: [&quot;no-ambiguous-path&quot;]
            }
        }
    }
}
</code></pre>
<p>For further details on configuring linting and validation, visit the <a href="https://docs.apimatic.io/validate-lint-apis/configuring-validation">relevant documentation</a>.</p>
<p>Visit <a href="http://www.apimatic.io">www.apimatic.io</a> or <a href="https://www.apimatic.io/contact/">contact us</a> for more information.</p>
]]></content:encoded>
      <category>Improvement</category>
      <category>Validation</category>
      <category>Linting</category>
    </item>
    <item>
      <title>Improved oneOf and anyOf Support in Java</title>
      <link>https://docs.apimatic.io/changelog/improved-oneof-anyof-in-java</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/improved-oneof-anyof-in-java</guid>
      <pubDate>Thu, 08 Jun 2023 00:00:00 GMT</pubDate>
      <description>We have incorporated oneOf and anyOf discriminator and meta case support in Java SDKs to enable seamless value mapping. This enhancement enhances the versatility and ease of use of our Java SDKs, allowing developers to efficiently handle complex data structures and streamline...</description>
      <content:encoded><![CDATA[<p>We have incorporated oneOf and anyOf discriminator and meta case support in Java SDKs to enable seamless value mapping. This enhancement enhances the versatility and ease of use of our Java SDKs, allowing developers to efficiently handle complex data structures and streamline their workflow.</p>
<h2>Details</h2>
<p>This release brings additions to the generated Java SDK, including the introduction of oneOf and anyOf discriminators, as well as enhanced support for meta cases. Furthermore, it improves the developer experience through enhancements to the Java SDK Documentation and Readme file.</p>
<h2>What&#39;s Changed?</h2>
<p>Following improvements are now made part of the Java SDK and Documentation:</p>
<ul>
<li>Added discriminator support for oneOf and anyOf types</li>
<li>Added meta case support for oneOf and anyOf types</li>
<li>Added support for oneOf and anyOf Validation Exceptions</li>
</ul>
<p>Following changes are made in the Java Documentation and ReadMe:</p>
<ul>
<li>Added oneOf and anyOf type containers in the generated Readme file</li>
<li>Added oneOf and anyOf type response handling with match cases in generated code samples</li>
</ul>
<h2>Discriminator support for oneOf and anyOf types</h2>
<p>We have added support for the discriminator defined with oneOf and anyOf types. The following example shows a discriminator <code>type</code> defined between oneOf <em>Lion</em> and <em>Deer</em> instance.</p>
<pre><code class="language-json">&quot;OneOfLionDeerType&quot;: {
  &quot;oneOf&quot;: [
    {
      &quot;$ref&quot;: &quot;#/components/schemas/Lion&quot;
    },
    {
      &quot;$ref&quot;: &quot;#/components/schemas/Deer&quot;
    }
  ],
  &quot;description&quot;: &quot;OneOf (Lion, Deer) with type discriminator of mapping (hunter:Lion, Hunted:Deer)&quot;,
  &quot;discriminator&quot;: {
    &quot;propertyName&quot;: &quot;type&quot;,
    &quot;mapping&quot;: {
      &quot;hunter&quot;: &quot;Lion&quot;,
      &quot;Hunted&quot;: &quot;Deer&quot;
    }
  },
}
</code></pre>
<p>The discriminator value mapping defines that the instance would be of <em>Lion</em> if <code>type</code> value is defined as <code>hunter</code> or <em>Deer</em> if <code>type</code> value is defined as <code>Hunted</code>. </p>
<p>The oneOf and anyOf discriminator support has also been added to the SDK documentation.</p>
<p><img src="https://gist.githubusercontent.com/hamzamahmood/f96c4bc570c6035665428286a3dd40d3/raw/oaf-discriminator.gif" alt="oaf-discriminator.gif"></p>
<h2>Meta Case support for oneOf and anyOf types</h2>
<p>The support for assigning names or descriptions to the Type Cases within oneOf and anyOf has now been added to the Java SDK and documentation. The following example shows how to add <code>name</code> and <code>description</code> for <code>OneOfPrimitive</code> oneOf type using <code>x-oneof-cases-meta</code> extension tag.</p>
<pre><code class="language-json">&quot;OneOfPrimitive&quot;: {
  &quot;example&quot;: 2,
  &quot;oneOf&quot;: [
    {
      &quot;type&quot;: &quot;string&quot;
    },
    {
      &quot;type&quot;: &quot;integer&quot;,
      &quot;format&quot;: &quot;int32&quot;
    }
  ],
  &quot;description&quot;: &quot;OneOf with primitive types and metadata.&quot;,
  &quot;x-oneof-cases-meta&quot;: [
    {
      &quot;name&quot;: &quot;Sender name&quot;,
      &quot;description&quot;: &quot;Name of sender.&quot;
    },
    {
      &quot;name&quot;: &quot;Message id&quot;,
      &quot;description&quot;: &quot;&quot;
    }
  ]
},
</code></pre>
<p>The generated SDK will now use the name provided with the oneOf cases meta instead of auto generated names.</p>
<pre><code class="language-java">OneOfPrimitive OneOfPrimitive = OneOfPrimitive.fromSenderName(
    &quot;John Doe&quot;
);

OneOfPrimitive OneOfPrimitive = OneOfPrimitive.fromMessageId(
    2
);
</code></pre>
<h2>oneOf and anyOf Validation Exception</h2>
<p>The support for exceptions of oneOf and anyOf validation has now been added to the Java SDK. The Java SDK throws oneOf and anyOf Validation Exception whenever an invalid request or response for oneOf/anyOf type is encountered. This feature enforces type strictness and validation of request and response within the SDK.</p>
<p>Following code example will end up in <code>OneOfValidationException</code> catch block if response JSON data maps to more then one of the multiple types. If none of the types could be mapped on to the response JSON data, then <code>AnyOfValidationException</code> catch block will be executed.</p>
<pre><code class="language-java">try {
  result = client.getConnectionController().getConnection();
} catch (OneOfValidationException e) {
  // If more then one type matches
  System.out.println(e.getMessage());
} catch (AnyOfValidationException e) {
  // If none of the types matches
  System.out.println(e.getMessage());
}
</code></pre>
<h2>Code sample of endpoint response handling</h2>
<p>The code samples for utilizing the oneOf and anyOf endpoint response has been added to the SDK documentation.</p>
<pre><code class="language-java">queryController.sendPrimitiveAsync(OneOfPrimitive, AnyOfPrimitive, OneOfAndAnyOfPrimitive).thenAccept(result -&gt; {
  result.match(new AnyOfPrimitive.Cases&lt;Void&gt;() {
  
    @Override
    public Void senderName(String senderName) {
      // TODO success callback handler
      System.out.println(senderName);
      return null;
    }
  
    @Override
    public Void messageId(int messageId) {
      // TODO success callback handler
      System.out.println(messageId);
      return null;
    }
  });
</code></pre>
<h2>oneOf and anyOf containers in ReadMe</h2>
<p>The missing oneOf and anyOf containers are now added to local ReadMe file generated with the SDK. The broken links in the endpoint and controller ReadMe have also been fixed.</p>
]]></content:encoded>
      <category>Improvement</category>
      <category>Java</category>
      <category>oneOf</category>
      <category>anyOf</category>
    </item>
    <item>
      <title>Improved TypeScript Code Samples</title>
      <link>https://docs.apimatic.io/changelog/improved-typescript-code-samples</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/improved-typescript-code-samples</guid>
      <pubDate>Thu, 25 May 2023 00:00:00 GMT</pubDate>
      <description>The generated code samples are now idiomatic with no errors. This improves the developer experience by allowing developers to run the code samples without any errors in their applications and to get started quickly.</description>
      <content:encoded><![CDATA[<p>The generated code samples are now idiomatic with no errors. This improves the developer experience by allowing developers to run the code samples without any errors in their applications and to get started quickly.</p>
<h2>Details</h2>
<p>This release introduces significant improvements to the code samples generated for your API. We&#39;ve made several updates to the code samples to ensure that they are idiomatic, easier to understand, and production-ready. </p>
<p>The new code samples are designed to enhance the developer experience which will allow users to grasp the intention of an endpoint as to what the parameters are and how they are being initialized. This will let them get started with your API quickly by skimming through the code samples.</p>
<h2>What Has Changed?</h2>
<p>To meet the standards, the updated code samples are passed through the linter i.e. <strong>eslint</strong> (click <a href="https://github.com/apimatic/codegen/blob/main/code-sample-analysis-tools/config/typescript/.eslintrc.json">here</a> to see the configuration being used). </p>
<p>The following major improvements are now made part of the TypeScript code samples:</p>
<ul>
<li>Simplified code samples to make them easier to read and understand with the help of properly indented code samples and inline-initialization of the parameters.</li>
<li>Fixed linting issues in the updated code samples to ensure that they comply with the best practices in terms of coding styles and standards.</li>
<li>Fixed bugs and errors in the updated code samples to ensure that they work as expected.</li>
</ul>
<h2>Parameter Initialization Section</h2>
<h3>Model Initialization</h3>
<p>Made the model&#39;s field initialization in-line which ensures that the object structure is intact, improving code readability.</p>
<pre><code class="language-typescript">const modelBoss: Person = {
  age: BigInt(30),
  name: &#39;Joe&#39;,
};


const model: Employee = {
  name: &#39;John&#39;,
  hiredAt: &#39;Mon, 15 Jun 2009 20:45:30 GMT&#39;,
  boss: modelBoss
}
</code></pre>
<pre><code class="language-typescript">const model: Employee = {
  name: &#39;John&#39;,
  hiredAt: &#39;Mon, 15 Jun 2009 20:45:30 GMT&#39;,
  boss: {
    age: BigInt(30),
    name: &#39;Joe’
  },
}
</code></pre>
<h3>Array Initialization</h3>
<p>Updated the array initialization step to multi-line to improve code readability.</p>
<pre><code class="language-typescript">const numberArray: number[] = [210, 211, 212];
</code></pre>
<pre><code class="language-typescript">const numberArray: number[] = [
  210,
  211,
  212
];
</code></pre>
<h3>Map Initialization</h3>
<p>Updated the map initialization step to multi-line to improve code readability.</p>
<pre><code class="language-typescript">const numberMap: Record&lt;string, number&gt; = {&#39;key0&#39;: 110, &#39;key1&#39;: 111, &#39;key2&#39;: 112 };
</code></pre>
<pre><code class="language-typescript">const numberMap: Record&lt;string, number&gt; = {
  &#39;key0&#39;: 110,
  &#39;key1&#39;: 111,
  &#39;key2&#39;: 112
};
</code></pre>
<h2>Client Initialization Section</h2>
<p>Server Configuration Parameters are now configurable through portal.</p>
<pre><code class="language-typescript">const client = new Client({
  timeout: 0,
});
</code></pre>
<pre><code class="language-typescript">const client = new Client({
  timeout: 0,
  port: &#39;8080&#39;,
  suites: SuiteCode.Spades,
});
</code></pre>
<h2>Imports Section Improvements​</h2>
<p>Previously, model imports were added even if they were not required in the parameters initialization sections. The inclusion of unnecessary imports was causing compilation issues but now we are adding imports on demand for optional parameters.</p>
<pre><code class="language-typescript">import {
  ApiError,
  Client,
  Person,
  ResponseTypesController,
} from &#39;testerlib&#39;;

# By removing the Person optional parameter, Person import is not removed from import section
  
  const { result, ...httpResponse } = await responseTypesController.send(numberArray, numberMap);
</code></pre>
<pre><code class="language-typescript">import {
  ApiError,
  Client,
  ResponseTypesController,
} from &#39;testerlib&#39;;

# By removing the Person optional parameter, Person import is also removed from import section

  const { result, ...httpResponse } = await responseTypesController.send(
    numberArray,
    numberMap
  );
</code></pre>
<h2>API Call Section</h2>
<h3>With Parameters</h3>
<p>Addressed the styling of an API call method with parameters and made it multi-line in case the parameters count is more than 1. This will improves the overall readability of an endpoint call.</p>
<pre><code class="language-typescript">const responseTypesController = new ResponseTypesController(client);

try {
  const { result, ...httpResponse } = await responseTypesController.send(employeeModel, numberArray, numberMap);
  // Get more response info...
  // const { statusCode, headers } = httpResponse;
} catch(error) {
  if (error instanceof ApiError) {
    const errors = error.result;
    // const { statusCode, headers } = error;
  }
}
</code></pre>
<pre><code class="language-typescript">const responseTypesController = new ResponseTypesController(client);

try {
  const { result, ...httpResponse } = await responseTypesController.send(
    employeeModel,
    numberArray,
    numberMap
  );
  // Get more response info...
  // const { statusCode, headers } = httpResponse;
} catch (error) {
  if (error instanceof ApiError) {
    const errors = error.result;
    // const { statusCode, headers } = error;
  }
}
</code></pre>
<h2>A Comparison of Complete Example Code Sample</h2>
<p>The following example shows the complete comparison between the code sample generation for initializing an employee model as an input parameter for <code>ResponseTypesController Send</code> endpoint.</p>
<h3>Employee Model</h3>
<pre><code class="language-json">&quot;employee_model&quot;: {
  &quot;name&quot;: &quot;John&quot;,
  &quot;hiredAt&quot;: &quot;Mon, 15 Jun 2009 20:45:30 GMT&quot;,
  &quot;boss&quot;: {
    &quot;name&quot;: &quot;Joe&quot;,
    &quot;age&quot;: 30
  }
}
</code></pre>
<pre><code class="language-typescript">import { ApiError, Client, Person, ResponseTypesController } from &#39;testerlib&#39;;

const client = new Client({
  timeout: 0,
});
const responseTypesController = new ResponseTypesController(client);
const array = null;
const numberArray: number[] = [210, 211, 212];
const numberMap: Record&lt;string, number&gt; = {&#39;key0&#39; : 110, &#39;key1&#39; : 111, &#39;key2&#39; : 112 };
const boss: Person = {
  name: &#39;Joe&#39;,
  age: BigInt(30),
};
const employeeModel: Employee = {
  name: &#39;John&#39;,
  hiredAt: &#39;Mon, 15 Jun 2009 20:45:30 GMT&#39;,
  boss: boss,
};

try {
  const { result, ...httpResponse } = await responseTypesController.send(employeeModel, numberArray, numberMap);
  // Get more response info...
  // const { statusCode, headers } = httpResponse;
} catch(error) {
  if (error instanceof ApiError) {
    const errors = error.result;
    // const { statusCode, headers } = error;
  }
}
</code></pre>
<pre><code class="language-typescript">import {
  ApiError,
  Client,
  Employee,
  ResponseTypesController,
} from &#39;testerlib&#39;;

const client = new Client({
  timeout: 0,
});

const responseTypesController = new ResponseTypesController(client);

const employeeModel: Employee = {
  name: &#39;John&#39;,
  hiredAt: &#39;Mon, 15 Jun 2009 20:45:30 GMT&#39;,
  boss: {
    name: &#39;Joe&#39;,
    age: BigInt(30),
  },
};

const numberArray: number[] = [
  210,
  211,
  212
];

const numberMap: Record&lt;string, number&gt; = {
  &#39;key0&#39;: 110,
  &#39;key1&#39;: 111,
  &#39;key2&#39;: 112
};

try {
  const { result, ...httpResponse } = await responseTypesController.send(
    employeeModel,
    numberArray,
    numberMap
  );
  // Get more response info...
  // const { statusCode, headers } = httpResponse;
} catch (error) {
  if (error instanceof ApiError) {
    const errors = error.result;
    // const { statusCode, headers } = error;
  }
}
</code></pre>
<h2>Bugs Fixed</h2>
<ul>
<li>Fixed an issue with DateTime initialization for Unix Timestamp formats.</li>
<li>Fixed a missing semicolon and extra line issue at the end of a map field.</li>
<li>Fixed Enum, Enum Array initialization and import issues.</li>
<li>Fixed multiple indentation issues in parameters initialization section.</li>
<li>Fixed the inconsistent behavior SDK in case of <code>CollapseToArray</code> CodeGen setting enabled.</li>
</ul>
]]></content:encoded>
      <category>Improvement</category>
      <category>TypeScript</category>
      <category>Code Samples</category>
    </item>
    <item>
      <title>Introducing Support for oneOf and anyOf in PHP SDKs</title>
      <link>https://docs.apimatic.io/changelog/introducing-support-for-oneof-anyof-in-php</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/introducing-support-for-oneof-anyof-in-php</guid>
      <pubDate>Tue, 09 May 2023 00:00:00 GMT</pubDate>
      <description>We are introducing the special oneOf and anyOf types in our PHP SDKs.</description>
      <content:encoded><![CDATA[<p>We are introducing the special oneOf and anyOf types in our PHP SDKs.</p>
<h2>Details</h2>
<p>In OpenAPI specification, an API call can return multiple types of responses, or take in multiple types of requests:</p>
<pre><code class="language-yaml">paths:
  /connection:
    post:
      requestBody:
        content:
          application/json:
            schema:
              anyOf:
                - $ref: &#39;#/components/schemas/Cat&#39;
                - $ref: &#39;#/components/schemas/Dog&#39;
      responses:
        &#39;200&#39;:
          description: Updated,
          content:
            application/json&quot;:
              schema:
                anyOf:
                  - $ref: &#39;#/components/schemas/Contact&#39;
                  - $ref: &#39;#/components/schemas/Employee&#39;
...
</code></pre>
<p>The above OAS API call description shows a post API call that takes in either <code>Cat</code> or <code>Dog</code> as request and returns <code>Contact</code> or <code>Employee</code> as response, which in APIMatic&#39;s PHP SDK should look like:</p>
<p><strong>Before</strong></p>
<pre><code class="language-php">$catOrDog = [
  &quot;name&quot; =&gt; &quot;kitty&quot;,
  &quot;weight&quot; =&gt; 15
];

$contactOrEmployee = $client-&gt;getConnectionController()-&gt;sendConnection($catOrDog);
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-php">$catOrDog = CatBuilder::init()
    -&gt;name(&quot;kitty&quot;)
    -&gt;weight(15);

$contactOrEmployee = $client-&gt;getConnectionController()-&gt;postConnection($catOrDog);
</code></pre>
<p>In the above API call code sample, <code>$catOrDog</code> can be <code>anyOf</code> <code>Cat</code> or <code>Dog</code> instance. Previously, it was sent as an associative <code>array</code> instead of proper model instances. </p>
<p>Let&#39;s look at the response type of the same API call in the following example:</p>
<p><strong>Before</strong></p>
<pre><code class="language-php">$contactOrEmployee = $client-&gt;getConnectionController()-&gt;postConnection($catOrDog);

Assert::assertInstanceOf(Contact::class, $contactOrEmployee); // false
Assert::assertInstanceOf(Employee::class, $contactOrEmployee); // false
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-php">$contactOrEmployee = $client-&gt;getConnectionController()-&gt;postConnection($catOrDog);

Assert::assertInstanceOf(Contact::class, $contactOrEmployee); // true
Assert::assertInstanceOf(Employee::class, $contactOrEmployee); // false
</code></pre>
<p>In the above example, the API call <code>postConnection()</code> could return <code>anyOf</code> <code>Contact</code> or <code>Employee</code> instance in its response. But previously, it was only returning an associative <code>array</code>. </p>
<p>Now, with the introduction of oneOf and anyOf support, we can assert that the response can be of either types based on the received JSON data.</p>
<h2>What has Changed?</h2>
<p>Our PHP SDKs now have the ability to handle multiple types in requests and responses. This support for oneOf and anyOf also brings in type validations in our PHP SDKs.</p>
<h3>Introducing @MapsBy annotation</h3>
<p>We are introducing the special oneOf and anyOf type group string formats for our PHP SDKs, which will be used via annotation <code>@mapsBy</code>. </p>
<p>To have a deeper understanding of this, consider <strong>A</strong> and <strong>B</strong> are any two types, then:</p>
<ul>
<li><code>oneOf(A,B)</code> represents either A or B not both.</li>
<li><code>anyOf(A,B)</code> represents either A, B or both.</li>
<li><code>oneOf(A,B)[]</code> represents an <code>array</code> where an element can either be A or B not both.</li>
<li><code>anyOf(A,B)[]</code> represents an <code>array</code> where an element can either be A, B or both.</li>
<li><code>array&lt;string,oneOf(A,B)&gt;</code> represents a <code>map</code> where an element can either be A or B not both.</li>
<li><code>array&lt;string,anyOf(A,B)&gt;</code> represents a <code>map</code> where an element can either be A, B or both.</li>
<li><code>oneOf{discField}(A{discValA},B{discValB})</code> represents the oneOf between A and B while the <code>discField</code> represents the discriminator property while <code>discValA</code> and <code>discValB</code> represents the discriminator values for their respective models.</li>
</ul>
<p>In all the above formats, A or B might represent a simple type like <code>string</code>, <code>int</code>, <code>Model</code>, <code>float[]</code> or they may also represent a combination of types like, anyOf string and int i.e. <code>anyOf(string,int)</code>, oneOf Car and map of float i.e. <code>oneOf(Car,array&lt;string,float&gt;)</code> or an array of oneOf Person and Employee i.e. <code>oneOf(Person,Employee)[]</code>.</p>
<h3>Changes in Models</h3>
<p>Introducing union type hints over setters for combination of multiple types along with a newly introduced annotation <code>@mapsBy</code> which shows the actual combination of types in a special string format that we have already discussed above. 
The following example shows a setter with union type hint <code>Morning|Evening</code> while <code>@mapsBy</code> annotation shows the type of combination <code>anyOf</code>.</p>
<p><strong>Before</strong></p>
<pre><code class="language-php">/**
* Sets Connection.
*
* @required
* @maps connection
*
* @param array $connection
*/
public function setConnection(array $connection): void
{
   $this-&gt;connection = $connection;
}
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-php">/**
* Sets Connection.
*
* @required
* @maps connection
* @mapsBy anyOf(Contact,Employee)
*
* @param Contact|Employee $connection
*/
public function setConnection($connection): void
{
   $this-&gt;connection = $connection;
}
</code></pre>
<p>The <code>@mapsBy</code> annotation will be used during the deserialization of a JSON into a specific response model.</p>
<p>Actual union types are only introduced for <strong>PHP 8.1 and above</strong>, but our SDKs must support <strong>PHP 7.2 runtime</strong>. Which is why we are currently using union type hints in setters and getters. </p>
<p>So, this actual <code>mixed</code> type opens door for our SDK users to still use our traditional setter to set any value other than the required one. To avoid such cases, we are now verifying types for all fields which are using multiple type groups before the model&#39;s serialization in <code>jsonSerialize()</code>, i.e.</p>
<p><strong>Before</strong></p>
<pre><code class="language-php">public function jsonSerialize()
{
    $json = [];
    $json[&#39;connection&#39;] = $this-&gt;connection;

    return $json;
}
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-php">public function jsonSerialize()
{
    $json = [];
    $json[&#39;connection&#39;] = ApiHelper::getJsonHelper()-&gt;verifyTypes(
        $this-&gt;connection,
        &#39;anyOf(Contact,Employee)&#39;
    );

    return $json;
}
</code></pre>
<p>In the above example <code>verifyTypes</code> will verify whether the field <code>connection</code> can be mapped by a model <code>Contact</code> or <code>Employee</code>.</p>
<h3>Changes in Endpoints</h3>
<p>We have now started using union type hints for endpoint&#39;s requests and responses.</p>
<p>In requests, type verification is also being done through <code>strictType</code> method by passing the union type format with the parameters. </p>
<p>The following endpoint example shows oneOf/anyOf changes and type verification in the request parameter <code>connection</code>. Here connection’s union type hint is <code>Contact|Employee</code>.</p>
<p><strong>Before</strong></p>
<pre><code class="language-php">/**
 * @param array $connection
 *
 * @return ServerResponse Response from the API call
 *
 * @throws ApiException Thrown if API call fails
 */
public function sendConnection(array $connection): ServerResponse {
   $_reqBuilder = $this-&gt;requestBuilder(RequestMethod::POST, &#39;/send/connection&#39;)
        -&gt;parameters(
            FormParam::init(&#39;connection&#39;, $connection)
        );

    $_resHandler = $this-&gt;responseHandler()-&gt;type(ServerResponse::class);

    return $this-&gt;execute($_reqBuilder, $_resHandler);
}
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-php">/**
 * @param Contact|Employee $connection
 *
 * @return ServerResponse Response from the API call
 *
 * @throws ApiException Thrown if API call fails
 */
public function sendConnection($connection): ServerResponse {
   $_reqBuilder = $this-&gt;requestBuilder(RequestMethod::POST, &#39;/send/connection&#39;)
        -&gt;parameters(
            FormParam::init(&#39;connection&#39;, $connection)
                -&gt;strictType(&#39;anyOf(Contact,Employee)&#39;)
        );

    $_resHandler = $this-&gt;responseHandler()-&gt;type(ServerResponse::class);

    return $this-&gt;execute($_reqBuilder, $_resHandler);
}
</code></pre>
<p>In responses, type verification will be done through <code>typeGroup</code> method by passing the union type format in the response handler. </p>
<p>The following endpoint example shows oneOf/anyOf changes in response, where its type is described by a union type hint <code>Contact|Employee</code> while the function call <code>typeGroup</code> is responsible for mapping response JSON data by the specified type group.</p>
<p><strong>Before</strong></p>
<pre><code class="language-php">/**
 * @return array Response from the API call
 *
 * @throws ApiException Thrown if API call fails
 */
public function getConnection(): array {
   $_reqBuilder = $this-&gt;requestBuilder(RequestMethod::POST, &#39;/get/connection&#39;);

    return $this-&gt;execute($_reqBuilder);
}
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-php">/**
 * @return Contact|Employee Response from the API call
 *
 * @throws ApiException Thrown if API call fails
 */
public function getConnection() {
   $_reqBuilder = $this-&gt;requestBuilder(RequestMethod::POST, &#39;/get/connection&#39;);

    $_resHandler = $this-&gt;responseHandler()-&gt;typeGroup(&#39;anyOf(Contact,Employee)&#39;);

    return $this-&gt;execute($_reqBuilder, $_resHandler);
}
</code></pre>
<h3>Validation Exceptions</h3>
<p>We are now introducing <code>OneOfValidationException</code> and <code>AnyOfValidationException</code> which will be thrown whenever an input with invalid type is provided to an endpoint or invalid typed data is received via response from the server. This feature will enforce type strictness and validation of requests and responses within the SDK.</p>
<p>Following code example will end up in <code>OneOfValidationException</code> catch block if the response JSON data maps to more then one of the multiple types. If none of the types are mapped to the response JSON data, then <code>AnyOfValidationException</code> catch block will be executed.</p>
<pre><code class="language-php">try {
    $result = $client-&gt;getConnectionController()-&gt;getConnection();
    var_dump($result);
} catch (OneOfValidationException $e) {
    // If more then one type matches
    echo &#39;Caught OneOfValidationException: &#39;,  $e-&gt;getMessage(), &quot;\n&quot;;
} catch (AnyOfValidationException $e) {
    // If none of the types matches
    echo &#39;Caught AnyOfValidationException: &#39;,  $e-&gt;getMessage(), &quot;\n&quot;;
}
</code></pre>
<h3>Readme Changes</h3>
<p>Now, the PHP SDK README docs will also reflect the changes for oneOf and anyOf types in Parameters. It will also properly link all of the models to the model documentation.</p>
<p><strong>Before</strong></p>
<p><img src="https://user-images.githubusercontent.com/26116671/246088651-2134b808-45cb-4acb-8fb7-c43a5b03e93b.png" alt="readme before"></p>
<p><strong>After</strong></p>
<p><img src="https://user-images.githubusercontent.com/26116671/246088109-7c3aa1e4-61e0-4c27-b6bc-638030bbb03d.png" alt="readme after"></p>
<p>Similarly, we have also covered the response types for oneOf and anyOf cases like:</p>
<p><strong>Before</strong></p>
<p><img src="https://user-images.githubusercontent.com/26116671/246090438-988f3bfa-064b-4cfb-a7f3-3e97a89d3e0e.png" alt="readme response types before"></p>
<p><strong>After</strong></p>
<p><img src="https://user-images.githubusercontent.com/26116671/246090245-8034ccd8-b39d-4118-a955-3d2ab69c60c8.png" alt="readme response types after"></p>
<h3>Portal Changes</h3>
<p>We have also added the capability to select and configure any of the types from our API Code Playground. With this feature, you can generate your own code samples for all the types.</p>
<p><img src="https://user-images.githubusercontent.com/26116671/246384585-d37ad3cf-7adc-48cc-87d3-e11c41a46893.gif" alt="Send Connection Portal"></p>
]]></content:encoded>
      <category>New</category>
      <category>PHP</category>
    </item>
    <item>
      <title>Improvements to DX Portal Search</title>
      <link>https://docs.apimatic.io/changelog/improvements-to-dx-portal-search</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/improvements-to-dx-portal-search</guid>
      <pubDate>Mon, 10 Apr 2023 00:00:00 GMT</pubDate>
      <description>We have added improvements to the search capability of our DX Suite to help API consumers quickly find their respective documentation and endpoints with ease.</description>
      <content:encoded><![CDATA[<p>We have added improvements to the search capability of our DX Suite to help API consumers quickly find their respective documentation and endpoints with ease. </p>
<h2>Details​</h2>
<p>We have made two major improvements to the search capabilities of the DX portal. Here are the details:</p>
<h3>Improved Search Results</h3>
<p>The <strong>fuzzy</strong> search algorithm has been replaced with a <strong>full-text</strong> search algorithm that produces more relevant search results. This search algorithm uses a relevance scoring model to sort search results, ensuring that the most relevant results appear at the top of the list.</p>
<h3>Filters and Segregation</h3>
<p>We have added filters to the search box, allowing users to segregate between documentation, API endpoints, and models. The user experience has been improved with the introduction of tabs for filtering, as seen in the following image.</p>
<p><img src="https://docs.apimatic.io/images/changelog/improved-portal-search-results.png" alt="Improved APIMatic Portal Search Result"></p>
<p>You will find the search box on the left top of the API portal generated via APIMatic. Click on the search box and search for the desired keywords. </p>
<p><img src="https://docs.apimatic.io/images/changelog/portal-search.png" alt="APIMatic Portal Search"></p>
<blockquote>
<p><strong>Note</strong></p>
<p>The updated search will be enabled automatically for all newly generated portals. There is no need to change/update any setting.</p>
</blockquote>
]]></content:encoded>
      <category>Improvement</category>
      <category>Portal</category>
      <category>Search</category>
    </item>
    <item>
      <title>Updated Language Version and Third-Party Dependencies</title>
      <link>https://docs.apimatic.io/changelog/updated-langauge-version-and-third-party-dependencies</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/updated-langauge-version-and-third-party-dependencies</guid>
      <pubDate>Tue, 04 Apr 2023 13:03:00 GMT</pubDate>
      <description>Language version and third-party dependencies have been updated in APIMatic generated SDKs.</description>
      <content:encoded><![CDATA[<p>Language version and third-party dependencies have been updated in APIMatic generated SDKs. </p>
<h2>Details</h2>
<p>This changelog summarizes the language version update made for SDKs generated in Python, PHP and Ruby, along with the updates made to third-party dependencies in our SDKs generated in C#, Java, TypeScript, Python, PHP, and Ruby.
Multiple factors were considered before updating language version like:</p>
<ul>
<li>End of life</li>
<li>Limited usage statistics</li>
<li>Compatibility issues</li>
<li>Deprecated language features</li>
</ul>
<p>Same is the case for 3rd party dependencies updates. Some of the factors considered before updating any dependency were as follows:</p>
<ul>
<li>No functional change within the SDKs</li>
<li>New features and improvements</li>
<li>Bug fixes</li>
<li>Security vulnerabilites fixes</li>
<li>Compatibility issues</li>
</ul>
<h2>What has changed</h2>
<h3>C# SDK</h3>
<h4>Updated Dependencies</h4>
<table>
<thead>
<tr>
<th>Dependency</th>
<th>Previous version</th>
<th>Updated version</th>
</tr>
</thead>
<tbody><tr>
<td>JsonSubTypes</td>
<td>1.6.0</td>
<td>2.0.1</td>
</tr>
<tr>
<td>Microsoft.NET.Test.Sdk</td>
<td>15.0.0</td>
<td>17.5.0</td>
</tr>
<tr>
<td>Nunit</td>
<td>3.12.0</td>
<td>3.13.3</td>
</tr>
<tr>
<td>NUnit3TestAdapter</td>
<td>3.15.1</td>
<td>4.3.1</td>
</tr>
<tr>
<td>Microsoft.Json.Pointer</td>
<td>2.2.0</td>
<td>2.3.0</td>
</tr>
<tr>
<td>Polly</td>
<td>7.2.1</td>
<td>7.2.3</td>
</tr>
<tr>
<td>SonarAnalyzer.CSharp</td>
<td>8.48.0.56517</td>
<td>8.55.0.65544</td>
</tr>
<tr>
<td>System.Collections.Immutable</td>
<td>1.5.0</td>
<td>7.0.0</td>
</tr>
<tr>
<td>System.Net.Http.Json</td>
<td>7.0.0</td>
<td>7.0.1</td>
</tr>
</tbody></table>
<h3>Java SDK</h3>
<h4>Updated Dependencies</h4>
<table>
<thead>
<tr>
<th>Dependency</th>
<th>Previous version</th>
<th>Updated version</th>
</tr>
</thead>
<tbody><tr>
<td>jackson-databind</td>
<td>2.14.0-rc2</td>
<td>2.14.2</td>
</tr>
<tr>
<td>jackson-core</td>
<td>2.14.0-rc2</td>
<td>2.14.2</td>
</tr>
<tr>
<td>mockito-core</td>
<td>4.7.0</td>
<td>4.11.0</td>
</tr>
<tr>
<td>mockito-inline</td>
<td>4.7.0</td>
<td>4.11.0</td>
</tr>
<tr>
<td>slf4j-api</td>
<td>1.7.30</td>
<td>2.0.7</td>
</tr>
<tr>
<td>jacoco-maven-plugin</td>
<td>0.8.5</td>
<td>0.8.8</td>
</tr>
<tr>
<td>javax.json</td>
<td>1.1.2</td>
<td>1.1.4</td>
</tr>
<tr>
<td>junit</td>
<td>4.13.1</td>
<td>4.13.2</td>
</tr>
</tbody></table>
<h3>TypeScript SDK</h3>
<h4>Runtime version upgrade</h4>
<p>Node version has been updated from <code>&gt;=10.4.0</code> to <code>&gt;=14.17.0</code>.</p>
<h4>Updated Dependencies</h4>
<table>
<thead>
<tr>
<th>Dependency</th>
<th>Previous version</th>
<th>Updated version</th>
</tr>
</thead>
<tbody><tr>
<td>size-limit/preset-small-lib</td>
<td>4.6.0</td>
<td>7.0.8</td>
</tr>
<tr>
<td>rollup-plugin-typescript2</td>
<td>0.30.0</td>
<td>0.31.0</td>
</tr>
<tr>
<td>size-limit</td>
<td>4.6.0</td>
<td>7.0.8</td>
</tr>
</tbody></table>
<h3>Python SDK</h3>
<h4>Language version upgrade</h4>
<p>Language version has been updated from <code>3 &gt;=3.7, &lt;= 3.10</code> to <code>3 &gt;=3.7, &lt;= 3.11</code>.</p>
<h4>Updated Dependencies</h4>
<table>
<thead>
<tr>
<th>Dependency</th>
<th>Previous version</th>
<th>Updated version</th>
</tr>
</thead>
<tbody><tr>
<td>jsonpickle</td>
<td>1.4.1</td>
<td>3.0.1</td>
</tr>
<tr>
<td>setuptools</td>
<td>65.5.1</td>
<td>67.6.0</td>
</tr>
<tr>
<td>pytest</td>
<td>7.1.3</td>
<td>7.2.2</td>
</tr>
<tr>
<td>coverage</td>
<td>6.5.0</td>
<td>7.2.2</td>
</tr>
<tr>
<td>pytest-cov</td>
<td>3.0.0</td>
<td>4.0.0</td>
</tr>
</tbody></table>
<h3>PHP SDK</h3>
<h4>Language Version Update</h4>
<p>Language version has been updated from <code>&gt;=7.2 &lt;8.2</code> to <code>^7.2 || ^8.0</code>.</p>
<h4>Updated Dependencies</h4>
<table>
<thead>
<tr>
<th>Dependency</th>
<th>Previous version</th>
<th>Updated version</th>
</tr>
</thead>
<tbody><tr>
<td>phan</td>
<td>5.3.1</td>
<td>5.4.2</td>
</tr>
</tbody></table>
<h3>Ruby SDK</h3>
<h4>Language version update</h4>
<p>Language version has been updated from <code>&gt;= 2.6 and &lt; 3.1</code> to <code>&gt;= 2.6 and &lt;= 3.2</code>.</p>
<h4>Updated Dependencies</h4>
<table>
<thead>
<tr>
<th>Dependency</th>
<th>Previous version</th>
<th>Updated version</th>
</tr>
</thead>
<tbody><tr>
<td>faraday-gzip</td>
<td>0.1.0</td>
<td>1.0.0</td>
</tr>
<tr>
<td>faraday-retry</td>
<td>1.0.3</td>
<td>2.1.0</td>
</tr>
</tbody></table>
]]></content:encoded>
      <category>New</category>
    </item>
    <item>
      <title>Minimum Supported Node.js Version Raised to 14.x</title>
      <link>https://docs.apimatic.io/changelog/minimum-supported-nodejs-version-raised</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/minimum-supported-nodejs-version-raised</guid>
      <pubDate>Fri, 24 Mar 2023 00:00:00 GMT</pubDate>
      <description>APIMatic generated Node.js SDK will no longer support Node.js 12.x and Node.js 10.x.</description>
      <content:encoded><![CDATA[<p>APIMatic generated Node.js SDK will no longer support Node.js 12.x and Node.js 10.x.</p>
<h2>Details</h2>
<p>Node.js 12.x reached EOL on April 30, 2022, and Node.js 10.x reached EOL on April 30, 2021. We encourage you to upgrade to Node.js 14.x or later. We recommend Node.js 18.x, which was released on April 19, 2022, and became LTS in October 2022.</p>
<h2>Why are we doing it?</h2>
<p>Node.js 12.x and Node 10.x versions have reached <a href="https://endoflife.date/nodejs">end-of-life</a>. The Node.js community is no longer maintaining these versions, and most projects have migrated to newer versions. We are following this change to provide up-to-date and secure Node.js SDKs.</p>
<h2>What was before?</h2>
<p>Previously, our Node.js SDK <em>package.json</em> <code>engines</code> field was pointing to <code>&gt;=10.4.0</code> Node version as shown below:</p>
<pre><code class="language-javascript">&quot;engines&quot;: {
  &quot;node&quot;: &quot;&gt;=10.4.0&quot;
},
</code></pre>
<h2>What has changed?</h2>
<p>Now, our Node.js SDK <em>package.json</em> <code>engines</code> field will be pointing to <code>&gt;=14.17.0</code>, officially terminating the support of Node 10.x and Node 12.x. 
The installation of newer versions of the Node.js SDK will fail for Node.js &lt;14.x when the engine-strict flag is enabled in the <em>package.json</em> file. If the flag is unset, it will produce a warning when your package is installed as a dependency.</p>
<pre><code class="language-javascript">&quot;engines&quot;: {
  &quot;node&quot;: &quot;&gt;=14.17.0&quot;
},
</code></pre>
]]></content:encoded>
      <category>New</category>
      <category>Node.js</category>
    </item>
    <item>
      <title>Improved C# Code Samples</title>
      <link>https://docs.apimatic.io/changelog/improved-csharp-code-samples</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/improved-csharp-code-samples</guid>
      <pubDate>Wed, 22 Mar 2023 12:00:00 GMT</pubDate>
      <description>In this release, we have improved the code quality of our generated C# code samples by making them idiomatic.</description>
      <content:encoded><![CDATA[<p>In this release, we have improved the code quality of our generated C# code samples by making them idiomatic.</p>
<h2>Details</h2>
<p>This release introduces significant improvements to the code samples provided for your API. We have made several updates to the code samples to ensure that they are up-to-date, easier to understand, and more user-friendly. The new code samples are designed to help developers get started with their API quickly and easily, without having to spend a lot of time reading documentation or trying to figure out how to use the API.</p>
<h2>What Has Changed?</h2>
<p>The code samples are refactored and reformatted to improve the code quality and make them style-compliant using the Dotnet code analyzer. The used &quot;.editorconfig&quot; is publicly available <a href="https://github.com/apimatic/codegen/blob/main/code-sample-analysis-tools/config/dotnet/.editorconfig">here</a>. 
Other changes made to the generated code samples are listed below.</p>
<ul>
<li>Added in-line parameter initialization.</li>
<li>Added support for multidimensional array.</li>
<li>Added comments and explanations to the code samples to provide more context and help developers understand how to use the API.</li>
<li>Fixed bugs and errors in the code samples to ensure that they work as expected.</li>
</ul>
<h2>Imports Section Improvements</h2>
<p>Imports have been sorted in alphabetical order and empty lines have been removed to fix identified lint issues.</p>
<p><strong>Before</strong></p>
<pre><code class="language-csharp">using System;
using System.IO;
using System.Collections.Generic;
using System.Globalization;
using System.Threading.Tasks;

using Tester.Standard;
using Tester.Standard.Models;
using Tester.Standard.Controllers;
using Tester.Standard.Utilities;
using Tester.Standard.Exceptions;
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-csharp">using System;
using System.Collections.Generic;
using System.Globalization;
using System.Threading.Tasks;
using Tester.Standard.Controllers;
using Tester.Standard.Exceptions;
using Tester.Standard.Models;
using Tester.Standard.Utilities;
</code></pre>
<h2>Parameters Initialization Section Improvements</h2>
<p>The explicit type parameter declaration and in-line initialization have been added to ensure the code samples are easier to understand and more user-friendly.</p>
<h3>Model Initialization</h3>
<p><strong>Before</strong></p>
<pre><code class="language-csharp">var employeeModel = new Employee();
employeeModel.Name = &quot;John Doe&quot;;
employeeModel.Salary = 4200;
employeeModel.Boss = new Person();
employeeModel.Boss.Name = &quot;Jane Doe&quot;;
employeeModel.Boss.Age = 45;
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-csharp">Employee employeeModel = new Employee
{
    Name = &quot;John Doe&quot;,
    Salary = 4200,
    Boss = new Person
    {
        Name = &quot;Jane Doe&quot;,
        Age = 45,
    },
};
</code></pre>
<h3>Array Initialization</h3>
<p><strong>Before</strong></p>
<pre><code class="language-csharp">var numberArray = new List&lt;int&gt;();
numberArray.Add(210);
numberArray.Add(211);
numberArray.Add(212);
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-csharp">List&lt;int&gt; numberArray = new List&lt;int&gt;
{
  210,
  211,
  212,
}
</code></pre>
<h3>Map Initialization</h3>
<p><strong>Before</strong></p>
<pre><code class="language-csharp">var numberMap = new Dictionary&lt;string, int&gt;();
numberMap.Add(&quot;key0&quot;, 110);
numberMap.Add(&quot;key1&quot;, 111);
numberMap.Add(&quot;key2&quot;, 112);
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-csharp">Dictionary&lt;string, int&gt; numberMap = new Dictionary&lt;string, int&gt;
{
  [&quot;key0&quot;] = 110,
  [&quot;key1&quot;] = 111,
  [&quot;key2&quot;] = 112,
};
</code></pre>
<h3>Multidimensional Array Initialization</h3>
<p>The missing support multidimensional array of primitive and non-primitive types in C# code samples has been added.</p>
<pre><code class="language-csharp">List&lt;List&lt;int&gt;&gt; numbers2dArray = new List&lt;List&lt;int&gt;&gt;
{
    new List&lt;int&gt;
    {
        158,
        159,
    },
    new List&lt;int&gt;
    {
        256,
        257,
    },
};
</code></pre>
<h2>API Call Section Improvements</h2>
<p>The code block is reformatted and comments are added to provide more context and help developers understand how to use the API.</p>
<p><strong>Before</strong></p>
<pre><code class="language-csharp">try
{
  List&lt;ServerResponse&gt; result = await responseTypesController.SendAsync(model);
}
catch (ApiException e){};
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-csharp">try
{
  List&lt;ServerResponse&gt; result = await responseTypesController.SendAsync(model);
}
catch (ApiException e)
{
  // TODO: Handle exception here
  Console.WriteLine(e.Message);
}
</code></pre>
<h2>A Comparison of Complete Example Code Sample</h2>
<p>The following code shows the complete comparison between the code sample generation for initializing an employee model as an input parameter for ResponseTypesController Send endpoint.</p>
<h3>Employee Model</h3>
<pre><code class="language-json">&quot;employee_model&quot;: {
  &quot;name&quot;: &quot;John Doe&quot;,
  &quot;salary&quot;: 4200,
  &quot;boss&quot;: {
    &quot;name&quot;: &quot;Jane Doe&quot;,
    &quot;age&quot;: 45,
  }
}
</code></pre>
<h3>Generated code samples</h3>
<p><strong>Before</strong></p>
<pre><code class="language-csharp">using System;
using System.IO;
using System.Collections.Generic;
using System.Globalization;
using System.Threading.Tasks;

using Tester.Standard;
using Tester.Standard.Models;
using Tester.Standard.Controllers;
using Tester.Standard.Utilities;
using Tester.Standard.Exceptions;

namespace Testing
{
  class Program
  {
    static async Task Main(string[] args)
    {
      TesterClient client = new TesterClient.Builder()
        .Suites(SuiteCode.Hearts)
        .Build();
      IResponseTypesController responseTypesController = client.ResponseTypesController;

      var employeeModel = new Employee();
      employeeModel.Name = &quot;John Doe&quot;;
      employeeModel.Salary = 4200;
      employeeModel.Boss = new Person();
      employeeModel.Boss.Name = &quot;Jane Doe&quot;;
      employeeModel.Boss.Age = 45;

      try
      {
        List&lt;ServerResponse&gt; result = await responseTypesController.SendAsync(employeeModel);
      }
      catch (ApiException e){};
    }
  }
}
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-csharp">using System;
using System.Collections.Generic;
using System.Globalization;
using System.Threading.Tasks;
using Tester.Standard.Controllers;
using Tester.Standard.Exceptions;
using Tester.Standard.Models;
using Tester.Standard.Utilities;

namespace Testing
{
  public class Program
  {
    public static async Task Main()
    {
      TesterClient client = new TesterClient.Builder()
        .Suites(SuiteCode.Hearts)
        .Build();

      IResponseTypesController responseTypesController = client.ResponseTypesController;

      Employee employeeModel = new Employee
      {
          Name = &quot;John Doe&quot;,
          Salary = 4200,
          Boss = new Person
          {
              Name = &quot;Jane Doe&quot;,
              Age = 45,
          },
      };

      try
      {
        List&lt;ServerResponse&gt; result = await responseTypesController.SendAsync(employeeModel);
      }
      catch (ApiException e)
      {
        // TODO: Handle exception here
        Console.WriteLine(e.Message);
      }
    }
  }
}
</code></pre>
<h2>Bugs Fixed</h2>
<ul>
<li>Fixed an issue with DateTime initialization for <code>Rfc1123</code>, <code>Rfc3339</code> and <code>Unix Timestamp</code> formats.</li>
<li>Fixed an issue where generated client initialization code block was uncompilable in the case of Basic Authentication.</li>
<li>Fixed an issue where the <code>HttpClientConfig</code> block was added to generated client initialization even if it was not configured.</li>
</ul>
]]></content:encoded>
      <category>Improvement</category>
      <category>C#</category>
      <category>Code Samples</category>
    </item>
    <item>
      <title>Improved Java Code Samples</title>
      <link>https://docs.apimatic.io/changelog/improved-java-code-samples</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/improved-java-code-samples</guid>
      <pubDate>Wed, 22 Mar 2023 12:00:00 GMT</pubDate>
      <description>The generated code samples are now idiomatic with no errors. This improves the developer experience by allowing developers to run the code samples without any error in their applications and to get started quickly.</description>
      <content:encoded><![CDATA[<p>The generated code samples are now idiomatic with no errors. This improves the developer experience by allowing developers to run the code samples without any error in their applications and to get started quickly.</p>
<h2>Details</h2>
<p>This release introduces significant improvements to the code samples generated for your API. We&#39;ve made several updates to the code samples to ensure that they are idiomatic, easier to understand and production-ready. The new code samples are designed to enhance the developer experience that will allow them to grasp the intention of an endpoint as to what are the parameters, how they are being initialized. This will let them get started with your API quickly and easily by skimming through the code samples.</p>
<h2>What Has Changed?</h2>
<p>To meet the standards, the updated code samples are passed through the linter i.e. <strong>CheckStyle</strong> (Click <a href="https://github.com/apimatic/codegen/blob/main/code-sample-analysis-tools/config/java/checkstyle.xml">here</a> to see the configuration being used). </p>
<p>Following major improvements are now made part of the Java code samples:</p>
<ul>
<li>Simplified code samples to make them easier to read and understand with the help of properly indented code samples and inline-initialization of the parameters.</li>
<li>Removed unused imports for models and utility classes.</li>
<li>Fixed linting issues in the updated code samples to ensure that they comply with the best practices in terms of coding styles and standards.</li>
<li>Fixed bugs and errors in the code samples to ensure that they work as expected.</li>
</ul>
<h2>Imports Section Improvements</h2>
<h3>Wildcard Imports</h3>
<p>Wildcard imports have been replaced with the specific imports.</p>
<p><strong>Before</strong></p>
<pre><code class="language-java">import java.util.*;

import localhost3000.*;
import localhost3000.models.*;
import localhost3000.controllers.*;
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-java">import localhost3000.TesterClient;
import localhost3000.controllers.ResponseTypesController;
import localhost3000.models.Employee;
import java.util.List;
import java.util.Map;
import java.util.Arrays;
import localhost3000.models.Person;
import localhost3000.DateTimeHelper;
import localhost3000.models.Days;
import java.util.LinkedHashMap;
</code></pre>
<h3>Unused Imports</h3>
<p>Previously imports are added even if they are not required in any other sections, but now we are adding imports on demand.</p>
<pre><code class="language-java">// imports section
import java.util.List;
import java.util.Arrays;

// parameters initialization section
List&lt;String&gt; optionalParam = Arrays.asList(
    &quot;Bob&quot;,
    &quot;Alice&quot;,
    &quot;John&quot;,
    &quot;Doe&quot;
);
String requiredParam = &#39;some string value&#39;;
</code></pre>
<p>After removing the Optional parameter <code>optionalParam</code> from the API call, all related imports will vanish:</p>
<pre><code class="language-java">// empty imports section

// parameters initialization section
String requiredParam = &#39;some string value&#39;;
</code></pre>
<h2>Parameters Initialization Section Improvements</h2>
<h3>Model Initialization</h3>
<p>The in-line initlization has been added to ensure that no intermediate variables should be used in the code samples and they are easier to understand, and more user-friendly.</p>
<p><strong>Before</strong></p>
<pre><code class="language-java">Employee model = new Employee();
model.setName(&quot;John&quot;);
model.setHiredAt(DateTimeHelper.fromRfc1123DateTime(&quot;Mon, 15 Jun 2009 20:45:30 GMT&quot;));
Person boss = new Person();
boss.setName(&quot;Doe&quot;);
boss.setAge(40);

model.setBoss(boss);
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-java">Employee model = new Employee.Builder(
    &quot;John&quot;,
    DateTimeHelper.fromRfc1123DateTime(&quot;Mon, 15 Jun 2009 20:45:30 GMT&quot;),
    new Person.Builder(
        &quot;Doe&quot;,
        40
    )
    .build()
)
.build();
</code></pre>
<h3>Date Initialization</h3>
<p>Now the code samples make use of the utility method for parsing a date.
<strong>Before</strong></p>
<pre><code class="language-java">LocalDate dateOfBirth = LocalDate.parse(&quot;2016-03-13&quot;);
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-java">LocalDate dateOfBirth = DateTimeHelper.fromSimpleDate(&quot;2016-03-13&quot;);
</code></pre>
<h3>DateTime Initialization</h3>
<p>Now the code samples make use of the utility methods for parsing date-time of different formats.</p>
<h4>RFC-3339 Initialization</h4>
<p><strong>Before</strong></p>
<pre><code class="language-java">LocalDateTime rfc3339DateTime = LocalDateTime.parse(&quot;2016-03-13T12:52:32.123Z&quot;, DateTimeFormatter.ISO_DATE_TIME);
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-java">LocalDateTime rfc3339DateTime = DateTimeHelper.fromRfc8601DateTime(&quot;2016-03-13T12:52:32.123Z&quot;);
</code></pre>
<h4>UNIX Timestamp Initialization</h4>
<p><strong>Before</strong></p>
<pre><code class="language-java">LocalDateTime unixTimestamp = LocalDateTime.ofInstant(Instant.ofEpochSecond(1480809600), ZoneId.systemDefault());
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-java">LocalDateTime unixTimestamp = DateTimeHelper.fromUnixTimestamp(1480809600L);
</code></pre>
<h3>Array Initialization</h3>
<h4>Example 1</h4>
<p><strong>Before</strong></p>
<pre><code class="language-java">List&lt;Integer&gt; stringArray = new LinkedList&lt;&gt;();
stringArray.add(&quot;Bob&quot;);
stringArray.add(&quot;Alice&quot;);
stringArray.add(&quot;John&quot;);
stringArray.add(&quot;Doe&quot;);
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-java">List&lt;String&gt; stringArray = Arrays.asList(
    &quot;Bob&quot;,
    &quot;Alice&quot;,
    &quot;John&quot;,
    &quot;Doe&quot;
);
</code></pre>
<h4>Example 2</h4>
<p><strong>Before</strong></p>
<pre><code class="language-java">List&lt;Map&lt;String, Integer&gt;&gt; numberArrayOfMap = new LinkedList&lt;&gt;();
Map&lt;String, Integer&gt; numberArrayOfMap0 = new LinkedHashMap&lt;&gt;();
numberArrayOfMap0.put(&quot;key0&quot;, 216);

numberArrayOfMap.add(numberArrayOfMap0);
Map&lt;String, Integer&gt; numberArrayOfMap1 = new LinkedHashMap&lt;&gt;();
numberArrayOfMap1.put(&quot;key0&quot;, 217);
numberArrayOfMap1.put(&quot;key1&quot;, 218);

numberArrayOfMap.add(numberArrayOfMap1);
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-java">List&lt;Map&lt;String, Integer&gt;&gt; numberArrayOfMap = Arrays.asList(
    new LinkedHashMap&lt;String, Integer&gt;() {{
        put(&quot;key0&quot;, 216);
    }},
    new LinkedHashMap&lt;String, Integer&gt;() {{
        put(&quot;key0&quot;, 217);
        put(&quot;key1&quot;, 218);
    }}
);
</code></pre>
<h3>Map Initialization</h3>
<h4>Example 1</h4>
<p><strong>Before</strong></p>
<pre><code class="language-java">Map&lt;String, Integer&gt; numberMap = new LinkedHashMap&lt;&gt;();
numberMap.put(&quot;key0&quot;, 110);
numberMap.put(&quot;key1&quot;, 111);
numberMap.put(&quot;key2&quot;, 112);
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-java">Map&lt;String, Integer&gt; numberMap = new LinkedHashMap&lt;String, Integer&gt;() {{
    put(&quot;key0&quot;, 110);
    put(&quot;key1&quot;, 111);
    put(&quot;key2&quot;, 112);
}};
</code></pre>
<h4>Example 2</h4>
<p><strong>Before</strong></p>
<pre><code class="language-java">Map&lt;String, List&lt;Integer&gt;&gt; numberMapOfArray = new LinkedHashMap&lt;&gt;();
List&lt;Integer&gt; numberMapOfArray0 = new LinkedList&lt;&gt;();
numberMapOfArray0.add(0);
numberMapOfArray0.add(1);

numberMapOfArray.put(&quot;key0&quot;, numberMapOfArray0);
List&lt;Integer&gt; numberMapOfArray1 = new LinkedList&lt;&gt;();
numberMapOfArray1.add(1);
numberMapOfArray1.add(2);
numberMapOfArray1.add(3);

numberMapOfArray.put(&quot;key1&quot;, numberMapOfArray1);
List&lt;Integer&gt; numberMapOfArray2 = new LinkedList&lt;&gt;();
numberMapOfArray2.add(2);

numberMapOfArray.put(&quot;key2&quot;, numberMapOfArray2);
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-java">Map&lt;String, List&lt;Integer&gt;&gt; numberMapOfArray = new LinkedHashMap&lt;String, List&lt;Integer&gt;&gt;() {{
    put(&quot;key0&quot;, Arrays.asList(
        0,
        1
    ));
    put(&quot;key1&quot;, Arrays.asList(
        1,
        2,
        3
    ));
    put(&quot;key2&quot;, Arrays.asList(
        2
    ));
}};
</code></pre>
<h3>Multi-Dimensional Array Initialization</h3>
<p><strong>Before</strong></p>
<pre><code class="language-java">List&lt;List&lt;Integer&gt;&gt; numbers2dArray = new LinkedList&lt;&gt;();
List&lt;Integer&gt; numbers2dArray0 = new LinkedList&lt;&gt;();
numbers2dArray0.add(158);
numbers2dArray0.add(160);

numbers2dArray.add(numbers2dArray0);

List&lt;Integer&gt; numbers2dArray1 = new LinkedList&lt;&gt;();
numbers2dArray1.add(168);
numbers2dArray1.add(170);

numbers2dArray.add(numbers2dArray1);
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-java">List&lt;List&lt;Integer&gt;&gt; numbers2dArray = Arrays.asList(
    Arrays.asList(
        158,
        160
    ),
    Arrays.asList(
        168,
        170
    )
);
</code></pre>
<h2>API Call Section Improvements</h2>
<p>The API call will print the response in case of success or exception in case of an error.</p>
<p><strong>Before</strong></p>
<pre><code class="language-java">ResponseTypesController responseTypesController = client.getResponseTypesController();
responseTypesController.sendDataAsync(param1, param2, param3).thenAccept(result -&gt; {
    // TODO success callback handler
}).exceptionally(exception -&gt; {
    // TODO failure callback handler
    return null;
});
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-java">ResponseTypesController responseTypesController = client.getResponseTypesController();
responseTypesController.sendDataAsync(param1, param2, param3).thenAccept(result -&gt; {
    // TODO success callback handler
    System.out.println(result);
}).exceptionally(exception -&gt; {
    // TODO failure callback handler
    exception.printStackTrace();
    return null;
});
</code></pre>
<h2>A Comparison of Complete Example Code Sample</h2>
<p>The following code shows the complete comparison between the code sample generation for initializing an employee model as an input parameter for <code>ResponseTypesController Send</code> endpoint.</p>
<h3>Employee Model</h3>
<pre><code class="language-json">&quot;employee_model&quot;: {
  &quot;name&quot;: &quot;John&quot;,
  &quot;hiredAt&quot;: &quot;Mon, 15 Jun 2009 20:45:30 GMT&quot;,
  &quot;salary&quot;: null,
  &quot;boss&quot;: {
    &quot;name&quot;: &quot;Doe&quot;,
    &quot;age&quot;: 40
  }
}
</code></pre>
<p><strong>Before</strong></p>
<pre><code class="language-java">package com.example;

import java.util.*;
import java.io.*;

import localhost3000.*;
import localhost3000.models.*;
import localhost3000.controllers.*;
import localhost3000.exceptions.ApiException;

import java.time.LocalDateTime;

public class Program {

    public static void main(String[] args) {
        TesterClient client = new TesterClient.Builder()
            .httpClientConfig(configBuilder -&gt; configBuilder
                    .timeout(0))
            .suites(SuiteCode.HEARTS)
            .build();
        
        ResponseTypesController responseTypesController = client.getResponseTypesController();
        
        Employee model = new Employee();
        model.setName(&quot;John&quot;);
        model.setHiredAt(DateTimeHelper.fromRfc1123DateTime(&quot;Mon, 15 Jun 2009 20:45:30 GMT&quot;));
        Person boss = new Person();
        boss.setName(&quot;Doe&quot;);
        boss.setAge(40);
        
        model.setBoss(boss);
        
        responseTypesController.sendAsync(model).thenAccept(result -&gt; {
            // TODO success callback handler
        }).exceptionally(exception -&gt; {
            // TODO failure callback handler
            return null;
        });
    }
}
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-java">package com.example;

import localhost3000.TesterClient;
import localhost3000.controllers.ResponseTypesController;
import localhost3000.models.Employee;
import localhost3000.models.Person;
import localhost3000.DateTimeHelper;

public class Program {

    public static void main(String[] args) {
        TesterClient client = new TesterClient.Builder()
            .httpClientConfig(configBuilder -&gt; configBuilder
                    .timeout(0))
            .port(&quot;80&quot;)
            .build();

        ResponseTypesController responseTypesController = client.getResponseTypesController();

        Employee model = new Employee.Builder(
            &quot;John&quot;,
            DateTimeHelper.fromRfc1123DateTime(&quot;Mon, 15 Jun 2009 20:45:30 GMT&quot;),
            new Person.Builder(
                &quot;Doe&quot;,
                40
            )
            .build()
        )
        .build();

        responseTypesController.sendAsync(model).thenAccept(response -&gt; {
            // TODO success callback handler
            System.out.println(response);
        }).exceptionally(exception -&gt; {
            // TODO failure callback handler
            exception.printStackTrace();
            return null;
        });
    }
}
</code></pre>
<h2>Bugs Fixed</h2>
<ul>
<li>Fixed an issue with <code>void</code> type response handling for synchronous API calls.</li>
</ul>
]]></content:encoded>
      <category>Improvement</category>
      <category>Java</category>
      <category>Code Samples</category>
    </item>
    <item>
      <title>Improved PHP Code Samples</title>
      <link>https://docs.apimatic.io/changelog/improved-php-code-samples</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/improved-php-code-samples</guid>
      <pubDate>Wed, 22 Mar 2023 12:00:00 GMT</pubDate>
      <description>The generated PHP code samples are now idiomatic with no errors. This improves the developer experience by allowing developers to run the code samples without any error in their applications and to get started quickly.</description>
      <content:encoded><![CDATA[<p>The generated PHP code samples are now idiomatic with no errors. This improves the developer experience by allowing developers to run the code samples without any error in their applications and to get started quickly.</p>
<h2>Details</h2>
<p>This release introduces significant improvements to the code samples provided for your API. We&#39;ve made several updates to the code samples to ensure that they are up-to-date, easier to understand, and more user-friendly. The new code samples are designed to help developers get started with your API quickly and easily, without having to spend a lot of time reading documentation or trying to figure out how to use the API.</p>
<h2>What Has Changed?</h2>
<p>Following major improvements are now made part of the PHP code samples:</p>
<ul>
<li><p>Updated code samples using PHP&#39;s <code>phan</code> analyzer checks and guidelines.</p>
</li>
<li><p>Simplified code samples using <code>phpcs</code> linter with <a href="https://www.php-fig.org/psr/psr-12/"><code>PSR12</code></a> standards and ruleset to make them easier to read and understand using the publically available <a href="https://github.com/apimatic/codegen/blob/main/code-sample-analysis-tools/config/php/phpcs-ruleset.xml">configuration</a>.</p>
</li>
<li><p>Removed unused imports from generated code samples.</p>
</li>
<li><p>Added comments and explanations to the code samples to provide more context and help developers understand how to use the API.</p>
</li>
<li><p>Fixed bugs and errors in the code samples to ensure that they work as expected.</p>
</li>
</ul>
<h3>Parameters Initialization Section Improvements</h3>
<h4>Model Initialization</h4>
<p>Made the model&#39;s field initialization in-line which ensures that the object structure is intact, enhancing the code readability.</p>
<p><strong>Before</strong></p>
<pre><code class="language-php">$employee_name = &#39;John&#39;;
$employee_age = 22;
$employee_boss_name = &#39;Doe&#39;;
$employee_boss_age = 32;
$employee_boss = new Models\Person(
    $employee_boss_name,
    $employee_boss_age
);
$employee = new Models\Employee(
    $employee_name,
    $employee_age,
    $employee_boss
);
$employee_hiredAt = DateTimeHelper::fromRfc1123DateTime(&#39;Mon, 15 Jun 2009 20:45:30 GMT&#39;);
$employee-&gt;setHiredAt($employee_hiredAt);
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-php">$employee = EmployeeBuilder::init(
    &#39;John&#39;,
    22,
    PersonBuilder::init(
        &#39;Doe&#39;,
        32
    )-&gt;build()
)
    -&gt;hiredAt(DateTimeHelper::fromRfc1123DateTime(&#39;Mon, 15 Jun 2009 20:45:30 GMT&#39;))
    -&gt;build();
</code></pre>
<h4>Array Initialization</h4>
<p>Made Array initialization more idiomatic and readable by writing it in multiple lines instead of cluttering it in the same line.</p>
<p><strong>Before</strong></p>
<pre><code class="language-php">$stringArray = [&#39;Bob&#39;, &#39;Alice&#39;, &#39;John&#39;];
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-php">$stringArray = [
    &#39;Bob&#39;,
    &#39;Alice&#39;,
    &#39;John&#39;
];
</code></pre>
<p>Take another example of nested map inside arrays. Array of Map initialization is now more idiomatic and readable.</p>
<p><strong>Before</strong></p>
<pre><code class="language-php">$stringArrayOfMap = [[&#39;key0&#39; =&gt; &#39;Bob&#39;], [&#39;key0&#39; =&gt; &#39;Alice&#39;, &#39;key1&#39; =&gt; &#39;John&#39;]];
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-php">$stringArrayOfMap = [
    [
        &#39;key0&#39; =&gt; &#39;Bob&#39;
    ],
    [
        &#39;key0&#39; =&gt; &#39;Alice&#39;,
        &#39;key1&#39; =&gt; &#39;John&#39;
    ]
];
</code></pre>
<h4>Map Initialization</h4>
<p>Made Map initialization more readable by writing it in multiple lines instead of cluttering it in the same line.</p>
<p><strong>Before</strong></p>
<pre><code class="language-php">$stringMap = [&#39;key0&#39; =&gt; &#39;Bob&#39;, &#39;key1&#39; =&gt; &#39;Alice&#39;, &#39;key2&#39; =&gt; &#39;John&#39;];
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-php">$stringMap = [
    &#39;key0&#39; =&gt; &#39;Bob&#39;,
    &#39;key1&#39; =&gt; &#39;Alice&#39;,
    &#39;key2&#39; =&gt; &#39;John&#39;
];
</code></pre>
<p>Take another example of nested array inside maps. Map of Array initialization is now more readable and idiomatic.</p>
<p><strong>Before</strong></p>
<pre><code class="language-php">$stringMapOfArray = [&#39;key0&#39; =&gt; [&#39;Bob&#39;,&#39;Alice&#39;], &#39;key1&#39; =&gt; [&#39;Bob&#39;,&#39;Alice&#39;,&#39;John&#39;], &#39;key2&#39; =&gt; [&#39;Doe&#39;]];
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-php">$stringMapOfArray = [
    &#39;key0&#39; =&gt; [
        &#39;Bob&#39;,
        &#39;Alice&#39;
    ],
    &#39;key1&#39; =&gt; [
        &#39;Bob&#39;,
        &#39;Alice&#39;,
        &#39;John&#39;
    ],
    &#39;key2&#39; =&gt; [
        &#39;Doe&#39;
    ]
];
</code></pre>
<h4>Multi Dimensional Array Initialization</h4>
<p>We are now also supporting code samples for Multi dimensional arrays.</p>
<pre><code class="language-php">$string2dArray = [
    [
        &#39;Bob&#39;,
        &#39;Alice&#39;
    ],
    [
        &#39;John&#39;,
        &#39;Doe&#39;
    ]
];
</code></pre>
<h3>Imports Section Improvements</h3>
<h4>Replaced Fully Qualified Names with imports</h4>
<p>Previously, Models and Utility Classes were referred by their full paths in the Parameters Declaration section but we have now resolved this issue by using the proper imports for these utility classes.</p>
<p><strong>Before</strong></p>
<pre><code class="language-php">// parameters initialization section
$param = TesterLib\ApiHelper::deserialize(&#39;{&quot;key1&quot;:&quot;val1&quot;,&quot;key2&quot;:&quot;val2&quot;}&#39;);
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-php">// imports section
use TesterLib\ApiHelper;

// parameters initialization section
$param = ApiHelper::deserialize(&#39;{&quot;key1&quot;:&quot;val1&quot;,&quot;key2&quot;:&quot;val2&quot;}&#39;);
</code></pre>
<h4>Unused imports</h4>
<p>Previously, imports were added even if they were not required in any other sections, but now we are adding imports on demand for optional parameters:</p>
<pre><code class="language-php">// imports section
use TesterLib\Models\Builders\ModelBuilder;

// parameters initialization section
$model = ModelBuilder::init()-&gt;build();
$nativeString = &#39;some string value&#39;;
</code></pre>
<p>Without the <code>model</code> parameter, the above code sample would look like:</p>
<pre><code class="language-php">// empty imports section

// parameters initialization section
$nativeString = &#39;some string value&#39;;
</code></pre>
<h3>Client Initialization Section Improvements</h3>
<h4>Proximity Principle</h4>
<p>Client initialization section now follows Principle of Proximity, as it is now declared close to API Call Section, where it is being used. </p>
<p><strong>Before</strong></p>
<pre><code class="language-php">// client initialization section
$client = TesterLib\TesterClientBuilder::init()
    -&gt;environment(&#39;production&#39;)
    -&gt;port(&#39;8080&#39;)
    -&gt;suites(Models\SuiteCode::CLUBS)
    -&gt;build();

$param1 = &#39;string value 1&#39;;

$param2 = &#39;string value 2&#39;;

// API call section
$queryParamController = $client-&gt;getQueryParamController();
$queryParamController-&gt;sendData($param1, $param2);
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-php">$param1 = &#39;string value 1&#39;;

$param2 = &#39;string value 2&#39;;

// client initialization section
$client = TesterClientBuilder::init()
    -&gt;environment(&#39;production&#39;)
    -&gt;port(&#39;8080&#39;)
    -&gt;suites(SuiteCode::CLUBS)
    -&gt;build();

// API call section
$client-&gt;getQueryParamController()-&gt;sendData(
    $param1,
    $param2
);
</code></pre>
<h4>Default Configuration Setup</h4>
<p>We have now followed the style guideline of calling the <code>build()</code> method on the same line when no other configurations are customized.</p>
<p><strong>Before</strong></p>
<pre><code class="language-php">$client = TesterLib\TesterClientBuilder::init()
    -&gt;build();
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-php">$client = TesterClientBuilder::init()-&gt;build();
</code></pre>
<h3>API Call Section Improvements</h3>
<h4>Multi line arguments</h4>
<p>Following the style guideline of PHP, we have addressed the styling of an API call method with multiple parameters and converted them into multi-lines to have a better readability of an endpoint call.</p>
<p><strong>Before</strong></p>
<pre><code class="language-php">$queryParamController = $client-&gt;getQueryParamController();
$queryParamController-&gt;sendData($param1, $param2, $param3);
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-php">$client-&gt;getQueryParamController()-&gt;sendData(
    $param1,
    $param2,
    $param3
);
</code></pre>
<h4>Elimination of controller&#39;s reference</h4>
<p>We removed the initialization of the controller instance variable and gave direct access to it using the <code>$client</code> variable.</p>
<p><strong>Before</strong></p>
<pre><code class="language-php">$queryParamController = $client-&gt;getQueryParamController();
$queryParamController-&gt;sendData($data);
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-php">$client-&gt;getQueryParamController()-&gt;sendData($data);
</code></pre>
<h3>Full Code Sample Comparison</h3>
<p>The following code shows the complete comparison between the code sample generation for initializing an employee model as an input parameter for <code>Query Param Controller</code> endpoint <code>Send Employee</code>.</p>
<h4>Employee Model</h4>
<pre><code class="language-json">{
  &quot;name&quot;: &quot;John&quot;,
  &quot;age&quot;: 23,
  &quot;boss&quot;: {
    &quot;name&quot;: &quot;Doe&quot;,
    &quot;age&quot;: 32,
  },
  &quot;hiredAt&quot;: &quot;Mon, 15 Jun 2009 20:45:30 GMT&quot;
}
</code></pre>
<h4>Generated code samples</h4>
<p><strong>Before</strong></p>
<pre><code class="language-php">&lt;?php

require_once &quot;vendor/autoload.php&quot;;

use TesterLib\Models;
use TesterLib\Utils\DateTimeHelper;

$client = TesterLib\TesterClientBuilder::init()
    -&gt;environment(&#39;production&#39;)
    -&gt;port(&#39;8080&#39;)
    -&gt;suites(Models\SuiteCode::CLUBS)
    -&gt;build();

$queryParamController = $client-&gt;getQueryParamController();

$employee_name = &#39;John&#39;;
$employee_age = 22;
$employee_boss_name = &#39;Doe&#39;;
$employee_boss_age = 32;
$employee_boss = new Models\Person(
    $employee_boss_name,
    $employee_boss_age
);
$employee = new Models\Employee(
    $employee_name,
    $employee_age,
    $employee_boss
);
$employee_hiredAt = DateTimeHelper::fromRfc1123DateTime(&#39;Mon, 15 Jun 2009 20:45:30 GMT&#39;);
$employee-&gt;setHiredAt($employee_hiredAt);


try {
    $result = $queryParamController-&gt;sendEmployee($employee);
} catch (TesterLib\Exceptions\ApiException $e) {
    echo &#39;Caught ApiException: &#39;,  $e-&gt;getMessage(), &quot;\n&quot;;
}
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-php">&lt;?php

require_once &quot;vendor/autoload.php&quot;;

use TesterLib\TesterClientBuilder;
use TesterLib\Exceptions\ApiException;
use TesterLib\Models\Builders\EmployeeBuilder;
use TesterLib\Models\Builders\PersonBuilder;
use TesterLib\Utils\DateTimeHelper;
use TesterLib\Models\SuiteCode;

$employee = EmployeeBuilder::init(
    &#39;John&#39;,
    22,
    PersonBuilder::init(
        &#39;Doe&#39;,
        32
    )-&gt;build()
)
    -&gt;hiredAt(DateTimeHelper::fromRfc1123DateTime(&#39;Mon, 15 Jun 2009 20:45:30 GMT&#39;))
    -&gt;build();

$client = TesterClientBuilder::init()
    -&gt;environment(&#39;production&#39;)
    -&gt;port(&#39;8080&#39;)
    -&gt;suites(SuiteCode::CLUBS)
    -&gt;build();

try {
    $result = $client-&gt;getQueryParamController()-&gt;sendEmployee($employee);
    var_dump($result);
} catch (ApiException $e) {
    echo &#39;Caught ApiException: &#39;,  $e-&gt;getMessage(), &quot;\n&quot;;
}
</code></pre>
<h2>Bugs fixed</h2>
<ul>
<li>Fixed multiple Indentation issues in parameters initialization section</li>
<li>Removed trailing comma from the endpoint call</li>
<li>Fixed issues with <code>File</code> and <code>Binary</code> request parameters</li>
</ul>
]]></content:encoded>
      <category>Improvement</category>
      <category>PHP</category>
      <category>Code Samples</category>
    </item>
    <item>
      <title>Improved Python Code Samples</title>
      <link>https://docs.apimatic.io/changelog/improved-python-code-samples</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/improved-python-code-samples</guid>
      <pubDate>Wed, 22 Mar 2023 12:00:00 GMT</pubDate>
      <description>The generated code samples are now idiomatic with no errors. This improves the developer experience by allowing developers to run the code samples without any error in their applications and to get started quickly.</description>
      <content:encoded><![CDATA[<p>The generated code samples are now idiomatic with no errors. This improves the developer experience by allowing developers to run the code samples without any error in their applications and to get started quickly.</p>
<h2>Details</h2>
<p>This release introduces significant improvements to the code samples provided for your API. We&#39;ve made several updates to the code samples to ensure that they are up-to-date, easier to understand, and more user-friendly. The new code samples are designed to help developers get started with your API quickly and easily, without having to spend a lot of time reading documentation or trying to figure out how to use the API.</p>
<h2>What Has Changed?</h2>
<p>To ensure compliance with the required standards, the code samples are analyzed and linted using tools <strong>mypy</strong> and <strong>ruff</strong>. The configurations used for these tools are publicly available <a href="https://github.com/apimatic/codegen/tree/main/code-sample-analysis-tools/config/python">here</a>.</p>
<ul>
<li><p>Removed unused imports for models and utility classes</p>
</li>
<li><p>Fixed bugs and errors in the code samples to ensure that they work as expected</p>
</li>
<li><p>Fixed linting issues in the updated code samples to ensure that they comply with the best practices in terms of coding styles and standards</p>
</li>
</ul>
<h3>Parameters Declaration Section Improvements</h3>
<h4>Model Initialization</h4>
<p>Made the model&#39;s field initialization in-line which ensures that the object structure is intact, enhancing the code readability.</p>
<p><strong>Before</strong></p>
<pre><code class="language-python">model = Employee()
model.name = &#39;john&#39;
model.hired_at = APIHelper.HttpDateTime.from_value(&#39;Mon, 15 Jun 2009 20:45:30 GMT&#39;).datetime
model.boss = Person()
model.boss.name = &#39;doe&#39;
model.boss.age = 25
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-python">model = Employee(
    name=&#39;john&#39;,
    hired_at=APIHelper.HttpDateTime.from_value(&#39;Mon, 15 Jun 2009 20:45:30 GMT&#39;).datetime,
    boss=Person(
        name=&#39;doe&#39;,
        age=25
    )
)
</code></pre>
<h4>Array Initialization</h4>
<h5>Example 1</h5>
<p><strong>Before</strong></p>
<pre><code class="language-python">number_array = [210, 211, 212]
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-python">number_array = [
    210,
    211,
    212
]
</code></pre>
<h5>Example 2</h5>
<p><strong>Before</strong></p>
<pre><code class="language-python">number_array_of_map = [{&quot;key0&quot;:216}, {&quot;key0&quot;:217,&quot;key1&quot;:218}]
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-python">number_array_of_map = [
    {
        &quot;key0&quot;: 216
    },
    {
        &quot;key0&quot;: 217,
        &quot;key1&quot;: 218
    }
]
</code></pre>
<h4>Map Initialization</h4>
<h5>Example 1</h5>
<p><strong>Before</strong></p>
<pre><code class="language-python">number_map = {&#39;key0&#39; : 110, &#39;key1&#39; : 111, &#39;key2&#39; : 112 } 
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-python">number_map = {
    &quot;key0&quot;: 110,
    &quot;key1&quot;: 111,
    &quot;key2&quot;: 112
}
</code></pre>
<h5>Example 2</h5>
<pre><code class="language-python">number_map_of_array = {
    &quot;key0&quot;: [
        0,
        1
    ],
    &quot;key1&quot;: [
        1,
        2,
        3
    ],
    &quot;key2&quot;: [
        2
    ]
}
</code></pre>
<h4>Multi-dimensional Array Initialization</h4>
<p><strong>Before</strong></p>
<pre><code class="language-python">numbers_2_d_array = [[158,258], [698,14]]
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-python">numbers_2_d_array = [
    [
        158,
        258
    ],
    [
        698,
        14
    ]
]
</code></pre>
<h3>Imports Section Improvements</h3>
<p>Previously, imports were added even if they were not required in any other sections, but now we are adding imports on demand for optional parameters. </p>
<pre><code class="language-python">from tester.models.suite_code import SuiteCode
from tester.tester_client import TesterClient
from tester.configuration import Environment

client = TesterClient(
    environment=Environment.PRODUCTION,
    suites =SuiteCode.SPADES
)
</code></pre>
<p>After removing the Optional parameter <code>environment</code> from the above code sample, it would look like:</p>
<pre><code class="language-python"># By removing the Environment parameter, Environment import is also removed from import section

#import section
from tester.models.suite_code import SuiteCode
from tester.tester_client import TesterClient

client = TesterClient(
    suites =SuiteCode.SPADES
)
</code></pre>
<h3>Client Initialization Section Improvements</h3>
<p>Addressed the trailing comma after the last configuration parameter when initializing the client.
<strong>Before</strong></p>
<pre><code class="language-python">client = TesterClient(
    suites =SuiteCode.HEARTS,)
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-python">client = TesterClient(
    suites=SuiteCode.HEARTS
)
</code></pre>
<h3>API Call Section Improvements</h3>
<p>API call is now reformatted to make it style-complaint.
<strong>Before</strong></p>
<pre><code class="language-python">try:
    result = response_types_controller.send(param1, param2, param3)
except APIException as e: 
    print(e)
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-python">try:
    result = response_types_controller.send(
        param1,
        param2,
        param3
    )
    print(result)
except APIException as e: 
    print(e)
</code></pre>
<h3>A Comparison of Complete Code Sample</h3>
<p>The following code shows the complete comparison between the code sample generation for initializing an employee model as an input parameter for <code>ResponseTypesController Send</code> endpoint.</p>
<h3>Employee Model</h3>
<pre><code class="language-json">&quot;employee_model&quot;: {
  &quot;name&quot;: &quot;john&quot;,
  &quot;hiredAt&quot;: &quot;Mon, 15 Jun 2009 20:45:30 GMT&quot;,
  &quot;salary&quot;: null,
  &quot;boss&quot;: {
    &quot;name&quot;: &quot;doe&quot;,
    &quot;age&quot;: 25
  }
}
</code></pre>
<p><strong>Before</strong></p>
<pre><code class="language-python">from tester.models.employee import Employee
from tester.models.person import Person
from tester.exceptions.api_exception import APIException
from tester.api_helper import APIHelper
from tester.tester_client import TesterClient
from tester.configuration import Environment

client = TesterClient(
    suites = SuiteCode.HEARTS,)

response_types_controller = client.response_types
model = Employee()
model.name = &#39;john&#39;
model.hired_at = APIHelper.HttpDateTime.from_value(&#39;Mon, 15 Jun 2009 20:45:30 GMT&#39;).datetime
model.boss = Person()
model.boss.name = &#39;doe&#39;
model.boss.age = 25

try:
    result = response_types_controller.send(model)
except APIException as e: 
    print(e)
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-python">from tester.exceptions.api_exception import APIException
from tester.api_helper import APIHelper
from tester.models.employee import Employee
from tester.models.person import Person
from tester.tester_client import TesterClient

client = TesterClient()

response_types_controller = client.response_types
model = Employee(
    name=&#39;john&#39;,
    hired_at=APIHelper.HttpDateTime.from_value(&#39;Mon, 15 Jun 2009 20:45:30 GMT&#39;).datetime,
    boss=Person(
        name=&#39;doe&#39;,
        age=25
    )
)

try:
    result = response_types_controller.send(model)
    print(result)
except APIException as e: 
    print(e)
</code></pre>
<h2>Bugs Fixed</h2>
<ul>
<li>Fixed an issue with DateTime initialization for Unix Timestamp formats</li>
<li>Fixed multiple indentation issues in parameters initialization section</li>
<li>Fixed an issue with OAuth 2.0 token initialization</li>
<li>Fixed issues with <code>File</code> and <code>Binary</code> type request parameters initialization</li>
</ul>
]]></content:encoded>
      <category>Improvement</category>
      <category>Python</category>
      <category>Code Samples</category>
    </item>
    <item>
      <title>Improved Ruby Code Samples</title>
      <link>https://docs.apimatic.io/changelog/improved-ruby-code-samples</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/improved-ruby-code-samples</guid>
      <pubDate>Wed, 22 Mar 2023 12:00:00 GMT</pubDate>
      <description>The generated code samples are now idiomatic with no errors. This improves the developer experience by allowing developers to run the code samples without any error in their applications and to get started quickly.</description>
      <content:encoded><![CDATA[<p>The generated code samples are now idiomatic with no errors. This improves the developer experience by allowing developers to run the code samples without any error in their applications and to get started quickly.</p>
<h2>Details</h2>
<p>This release introduces significant improvements to the code samples generated for your API. We&#39;ve made several updates to the code samples to ensure that they are idiomatic, easier to understand and production-ready. The new code samples are designed to enhance the developer experience that will allow them to grasp the intention of an endpoint as to what the parameters are and how they are being initialized. This will let them get started with your API quickly by skimming through the code samples.</p>
<h2>What Has Changed?</h2>
<p>To meet the standards, the updated code samples are passed through the linter i.e. <strong>rubocop</strong> (click <a href="https://github.com/apimatic/codegen/blob/main/code-sample-analysis-tools/config/ruby/.rubocop.yml">here</a> to see the configuration being used). </p>
<p>Following major improvements are now made part of the Ruby code samples:</p>
<ul>
<li>Simplified code samples to make them easier to read and understand with the help of properly indented code samples and inline-initialization of the parameters.</li>
<li>Fixed linting issues in the updated code samples to ensure that they comply with the best practices in terms of coding styles and standards.</li>
<li>Fixed bugs and errors in the updated code samples to ensure that they work as expected.</li>
</ul>
<h2>Parameter Initialization Section</h2>
<h3>Model Initialization</h3>
<p>Made the model&#39;s field initialization in-line which ensures that the object structure is intact, enhancing the code readability.</p>
<p><strong>Before</strong></p>
<pre><code class="language-ruby">model = Employee.new
model.name = &#39;John&#39;
model.hired_at = DateTimeHelper.from_rfc1123(&#39;Mon, 15 Jun 2009 20:45:30 GMT&#39;)
model.boss = Person.new
model.boss.name = &#39;Doe&#39;
model.boss.age = 40
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-ruby">model = Employee.new(
  Person.new(
    40,
    &#39;Doe&#39;
  ),
  DateTimeHelper.from_rfc1123(&#39;Mon, 15 Jun 2009 20:45:30 GMT&#39;),
  &#39;John&#39;
)
</code></pre>
<h3>Array Initialization</h3>
<p>Updated the array initialization step to multi-line to enhance the code readability.</p>
<h4>Example 1</h4>
<p><strong>Before</strong></p>
<pre><code class="language-ruby">string_array = [&#39;Bob&#39;, &#39;Alice&#39;, &#39;John&#39;, &#39;Doe&#39;]
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-ruby">string_array = [
  &#39;Bob&#39;,
  &#39;Alice&#39;,
  &#39;John&#39;,
  &#39;Doe&#39;
]
</code></pre>
<h4>Example 2</h4>
<p><strong>Before</strong></p>
<pre><code class="language-ruby">number_array_of_map = [{&quot;key0&quot;:215,&quot;key1&quot;:216}, {&quot;key0&quot;:217,&quot;key1&quot;:218}]
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-ruby">number_array_of_map = [
  {
    &#39;key0&#39;: 215,
    &#39;key1&#39;: 216,
  },
  {
    &#39;key0&#39;: 217,
    &#39;key1&#39;: 218
  }
]
</code></pre>
<h3>Map Initialization</h3>
<p>Updated the map initialization step to multi-line to enhance the code readability.</p>
<p><strong>Before</strong></p>
<pre><code class="language-ruby">number_map = {&#39;key0&#39; =&gt; 110, &#39;key1&#39; =&gt; 111, &#39;key2&#39; =&gt; 112 }
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-ruby">number_map = {
  &#39;key0&#39;: 110,
  &#39;key1&#39;: 111,
  &#39;key2&#39;: 112
}
</code></pre>
<h3>Multi-Dimensional Arrays Initialization</h3>
<p>Updated the n-dimensional array initialization step to multi-line to enhance the code readability.</p>
<p><strong>Before</strong></p>
<pre><code class="language-ruby">string_2d_array = [[&#39;Bob&#39;, &#39;Alice&#39;],[&#39;John&#39;, &#39;Doe&#39;]]
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-ruby">string_2d_array = [
  [
    &#39;Bob&#39;,
    &#39;Alice&#39;
  ],
  [
    &#39;John&#39;,
    &#39;Doe&#39;
  ]
]
</code></pre>
<h2>Client Initialization Section</h2>
<h3>Without Configurations</h3>
<p>Addressed the styling of a client initialization without any configuration parameter.</p>
<p><strong>Before</strong></p>
<pre><code class="language-ruby">client = Tester::Client.new(
)
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-ruby">client = Tester::Client.new
</code></pre>
<h3>With Configurations</h3>
<p>Addressed the trailing comma after the last configuration parameter when initializing the client.</p>
<p><strong>Before</strong></p>
<pre><code class="language-ruby">client = Tester::Client.new(
  port: &#39;8000&#39;,
  suites: SuiteCode::HEARTS,
)
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-ruby">client = Tester::Client.new(
  port: &#39;8000&#39;,
  suites: SuiteCode::HEARTS
)
</code></pre>
<h2>API Call Section</h2>
<h3>Without Parameters</h3>
<p>Addressed the styling of an API call method without any parameter.</p>
<p><strong>Before</strong></p>
<pre><code class="language-ruby">response_types_controller = client.response_types
begin
  result = response_types_controller.get_data()
rescue APIException =&gt; ex
  puts &quot;Caught APIException: #{ex.message}&quot;
end
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-ruby">begin
  result = client.response_types.get_data
  puts result
rescue APIException =&gt; e
  puts &quot;Caught APIException: #{e.message}&quot;
end
</code></pre>
<h3>With Parameters</h3>
<p>Addressed the styling of an API call method with parameters and made it multi-line in case if the parameters count is more than 1 to have a better readability of an endpoint call.</p>
<p><strong>Before</strong></p>
<pre><code class="language-ruby">response_types_controller = client.response_types
begin
  result = response_types_controller.send_data(param1, param2, param3)
rescue APIException =&gt; ex
  puts &quot;Caught APIException: #{ex.message}&quot;
end
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-ruby">begin
  result = client.response_types.send_data(
    param1,
    param2,
    param3
  )
  puts result
rescue APIException =&gt; e
  puts &quot;Caught APIException: #{e.message}&quot;
end
</code></pre>
<h2>A Comparison of Complete Example Code Sample</h2>
<p>The following code shows the complete comparison between the code sample generation for initializing an employee model as an input parameter for ResponseTypesController Send endpoint.</p>
<h3>Employee Model</h3>
<pre><code class="language-json">&quot;employee_model&quot;: {
  &quot;name&quot;: &quot;John&quot;,
  &quot;hiredAt&quot;: &quot;Mon, 15 Jun 2009 20:45:30 GMT&quot;,
  &quot;salary&quot;: null,
  &quot;boss&quot;: {
    &quot;name&quot;: &quot;Doe&quot;,
    &quot;age&quot;: 40
  }
}
</code></pre>
<p><strong>Before</strong></p>
<pre><code class="language-ruby">require &#39;tester&#39;

include Tester

client = Tester::Client.new(
  suites: SuiteCode::HEARTS,
)

response_types_controller = client.response_types
model = Employee.new
model.name = &#39;John&#39;
model.hired_at = DateTimeHelper.from_rfc1123(&#39;Mon, 15 Jun 2009 20:45:30 GMT&#39;)
model.boss = Person.new
model.boss.name = &#39;Doe&#39;
model.boss.age = 40

begin
  result = response_types_controller.send(model)
rescue APIException =&gt; ex
  puts &quot;Caught APIException: #{ex.message}&quot;
end
</code></pre>
<p><strong>After</strong></p>
<pre><code class="language-ruby">require &#39;tester&#39;
include Tester

model = Employee.new(
  Person.new(
    40,
    &#39;Doe&#39;
  ),
  DateTimeHelper.from_rfc1123(&#39;Mon, 15 Jun 2009 20:45:30 GMT&#39;),
  &#39;John&#39;,
  nil
)

client = Tester::Client.new(
  suites: SuiteCode::HEARTS
)

begin
  result = client.response_types.send(model)
  puts result
rescue APIException =&gt; e
  puts &quot;Caught APIException: #{e.message}&quot;
end
</code></pre>
<h2>Bugs Fixed</h2>
<ul>
<li>Fixed an issue with OAuth 2.0 token initialization.</li>
<li>Fixed an issue with parameter initialization of a map containing array types.</li>
</ul>
]]></content:encoded>
      <category>Improvement</category>
      <category>Ruby</category>
      <category>Code Samples</category>
    </item>
    <item>
      <title>Introducing PHP Model Builders</title>
      <link>https://docs.apimatic.io/changelog/introducing-php-model-builders</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/introducing-php-model-builders</guid>
      <pubDate>Wed, 22 Mar 2023 12:00:00 GMT</pubDate>
      <description>We have introduced builder pattern in PHP SDKs that can be used to set all model properties at once and then build the object at the end.</description>
      <content:encoded><![CDATA[<p>We have introduced builder pattern in PHP SDKs that can be used to set all model properties at once and then build the object at the end.</p>
<h2>Details</h2>
<p>We have changed how any custom type is created for the better in PHP SDKs. </p>
<p>Previously, Custom type instantiation was confusing. Let&#39;s take a look at an example to understand better:</p>
<pre><code class="language-php">$requiredField = &#39;not nullable and required&#39;;
$requiredFieldSecond = &#39;not nullable and required second&#39;;
$model = new Model(
    $requiredField,
    $requiredFieldSecond
);
$model-&gt;setRequiredNullable(&#39;Required_Nullable_Field_Value&#39;);
</code></pre>
<p>Let&#39;s say we have a <code>Model</code>, as shown above with 1 required non-nullable properties, and the other property is required but nullable. 
In this case, what we had to do was:</p>
<ol>
<li>Create the custom type with all the required properties set through the constructor.</li>
<li>Call the setter for the nullable required property separately after the creation of the main object.</li>
</ol>
<p>It took quite a few number of lines to create an object like this. Plus, if the object hierarchy becomes complex, it made the code hard to understand for the developer, i.e. the case of object within an object and so on.
In such a case, what we had to do before was to create the child object first before creating the parent object. And if that child in turn has another object within it, then good luck understanding the long piece of code.</p>
<h2>What has changed</h2>
<p>Now, with the introduction of the builder pattern you can set all the properties at once and then build the object at the end. Let&#39;s see it in action with an example, by changing the code above to utilize builder methods:</p>
<pre><code class="language-php">$model = ModelBuilder::init(
    &#39;not nullable and required&#39;,
    &#39;not nullable and required second&#39;
)
    -&gt;requiredNullable(&#39;Required_Nullable_Field_Value&#39;)
    -&gt;build();
</code></pre>
<p>The required properties are being set more or less the same way, other than the use of <code>init</code> method. The most prominent change is the inline initialization of optional or nullable properties, and this is what allows us to initialize a custom type, along with its nested types in one go without the need of any prior creation of variables.</p>
<p>So let&#39;s say if our class <code>Model</code> had another property named <code>innerModel</code> which was also a custom type, how would it have looked in the old and the new code samples? Let&#39;s check it out:</p>
<h3>Without Model Builders</h3>
<pre><code class="language-php">$requiredField = &#39;not nullable and required&#39;;
$requiredFieldSecond = &#39;not nullable and required second&#39;;
$innerModel = new Models\InnerModel(&#39;modelName&#39;);
$innerModel-&gt;setIntProperty(12);
$model = new Models\Model(
    $requiredField,
    $requiredFieldSecond
);
$model-&gt;setRequiredNullable(&#39;Required_Nullable_Field_Value&#39;);
$model-&gt;setInnerModel($innerModel);
</code></pre>
<h3>With Model Builders</h3>
<pre><code class="language-php">$model = ModelBuilder::init(
    &#39;not nullable and required&#39;,
    &#39;not nullable and required second&#39;
)
    -&gt;requiredNullable(&#39;Required_Nullable_Field_Value&#39;)
    -&gt;innerModel(
        InnerModelBuilder::init(&#39;modelName&#39;)
            -&gt;intProperty(12)
            -&gt;build()
    )
    -&gt;build();
</code></pre>
<p>Notice how multiple lines of code along with the use of a separate variable was replaced with an inline more readable, idiomatic code. That is what the model builders provide us with.</p>
<p>In short, the change involves implementing the builder pattern to create all custom type objects. The new builder class provides methods to initialize and set the nullable properties of the object, resulting in more concise, readable and idiomatic code.</p>
]]></content:encoded>
      <category>Feature</category>
      <category>PHP</category>
      <category>New</category>
    </item>
    <item>
      <title>Introducing Dynamic Error Messages in SDKs</title>
      <link>https://docs.apimatic.io/changelog/introducing-dynamic-error-messages</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/introducing-dynamic-error-messages</guid>
      <pubDate>Mon, 30 Jan 2023 00:00:00 GMT</pubDate>
      <description>By default, APIMatic generated SDKs throw a generic error response on every failed API call. Now, you can customize these error responses by providing placeholders that populate at runtime.</description>
      <content:encoded><![CDATA[<p>By default, APIMatic generated SDKs throw a generic error response on every failed API call. Now, you can customize these error responses by providing placeholders that populate at runtime. </p>
<h2>Details</h2>
<p>Previously, every time an API called failed, APIMatic SDKs surfaced a string response that was generic to all error responses in all languages. This error response provided little information on why the called failed so users had to manually dig into the response to find out the details. 
To facilitate the users, our SDKs already support <a href="https://docs.apimatic.io/generate-sdks/sdk-features/custom-error-messages/">Custom Error Messages</a> that let users customize a static message against an HTTP error code. This adds more information as to why a call failed. </p>
<h2>What Has Changed?</h2>
<p>While Custom Error Messages support customizing error responses, there was still no way to provide any information from the exception at runtime. For this reason, we have introduced <a href="https://docs.apimatic.io/generate-sdks/sdk-features/dynamic-error-messages/">Dynamic Error Messages</a> that allow users to define templated placeholders that get populated at runtime. </p>
<p>To configure this feature, you can use our OAS extensions in your OpenAPI specification file at either endpoint level or globally. </p>
<pre><code class="language-json">// At endpoint level
&quot;/books&quot;: {
    &quot;post&quot;: {
        ...
        &quot;responses&quot;: {
            &quot;400&quot;: {
                &quot;description&quot;: &quot;API call failed due to bad request.&quot;
            }
        },
        &quot;x-operation-settings&quot;: {
            &quot;errorTemplate&quot;: {
                &quot;401&quot;: &quot;API call failed with {$statusCode} - {$response.body#/details}.&quot;,
                &quot;403&quot;: &quot;API call failed of category - {$reponse.body#/category}.&quot;,
                &quot;0&quot;: &quot;API call failed because {$response.body#/details}.&quot; 
            }
        }
    }
}
// Globally for all endpoints
&quot;x-codegen-settings&quot;: {
    &quot;errorTemplate&quot;: {
        &quot;404&quot;: &quot;API call failed of content type - {$response.header.Content-Type}&quot;
    }
}
</code></pre>
<p>Once the OpenAPI file has been configured, you can catch the exception while making the API call.</p>
<pre><code class="language-csharp">try
{
    booksController.CreateBook(book);
}
catch (ApiException exception)
{
    // Printing the error message
    Console.WriteLine(exception.Message);
}
</code></pre>
<p>Now, whenever an API call fails, you will get the dynamically configured error messages. For example, in case of error 403, SDK will surface the following error response:</p>
<pre><code>API called failed of category AUTHENTICATION_ERROR.
</code></pre>
<p>For more details on Dynamic Error Messages, please refer to our <a href="https://docs.apimatic.io/generate-sdks/sdk-features/dynamic-error-messages/">feature documentation</a>.</p>
]]></content:encoded>
      <category>New</category>
    </item>
    <item>
      <title>Changes in Example Values in Code Samples</title>
      <link>https://docs.apimatic.io/changelog/changes-in-example-values-in-code-samples</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/changes-in-example-values-in-code-samples</guid>
      <pubDate>Mon, 23 Jan 2023 00:00:00 GMT</pubDate>
      <description>APIMatic SDKs have improved efficiency of internal processes in code sample generation. After this change, generated code samples may slightly change when SDKs are regenerated but there is no functional impact of this change.</description>
      <content:encoded><![CDATA[<p>APIMatic SDKs have improved efficiency of internal processes in code sample generation. After this change, generated code samples may slightly change when SDKs are regenerated but there is no functional impact of this change.  </p>
<h2>Details</h2>
<p>Every time SDK is generated through APIMatic CodeGen, code samples are generated along with the client code. This code contains sample values that are generated with the client library. As a result of improving efficiency of internal processes, there is a change in these sample values. </p>
<h3>How Code Sample Values are Generated</h3>
<p>There are two ways through which sample values in code samples are generated:</p>
<ol>
<li>Using pre-existing examples from the API spec file. </li>
<li>In case there are no existing examples in the spec file, SDK autogenerates dummy values.</li>
</ol>
<p>In case of former, there will be no change in the code samples. But in latter, you might notice a few changes in the generated code samples. </p>
<h3>Behavior of Dummy Values Before the Change</h3>
<p>Before, when there were no specified value examples in the API spec, SDKs autogenerated idempotent dummy values. &quot;Idempotent&quot; values mean that you got the same values for the same API specification, no matter how many times you generated the SDK. </p>
<h3>What Has Changed?</h3>
<p>Now, when you generate an SDK, dummy values in the code samples may change. This is a one-time change that depends on changes in parameter or schema details, but the values remain valid. Similarly, when generating values for arrays and maps, the number of elements might also change. </p>
<h3>Impact of this change</h3>
<p>Let&#39;s take the following code sample for example:</p>
<pre><code class="language-csharp">var someObject = new SomeObjectClass.Builder()
                .StringValue(&quot;string_value5&quot;)
                .Build();
</code></pre>
<p>In this code, <code>string_value5</code> is a dummy value that the APIMatic CodeGen generated every time the SDK was generated. This value remained constant. 
After this new change, when you generate an SDK, you might see a change in this value. This becomes the new constant for this particular API specification. </p>
<pre><code class="language-csharp">var someObject = new SomeObjectClass.Builder()
                .StringValue(&quot;string_value0&quot;)
                .Build();
</code></pre>
<p>In case of an array, there can be a variation in the number of elements. For example, if before this change, your SDK generated the following elements in an array:</p>
<pre><code class="language-csharp">var employees = new List&lt;Employee&gt;();

var employee0 = new Employee();
employee0.Address = &quot;address0&quot;;
employee0.Age = 82L;
employees.Add(employee0);
</code></pre>
<p>Now, the same array could have the following elements:</p>
<pre><code class="language-csharp">var employees = new List&lt;Employee&gt;();

var employee0 = new Employee();
employee0.Address = &quot;address2&quot;;
employee0.Age = 254L;
employees.Add(employee0);

var employee1 = new Employee();
employee1.Address = &quot;address3&quot;;
employee1.Age = 255L;
employees.Add(employee1);
</code></pre>
<h2>Other Changes</h2>
<p>There may be other non-functional changes in the code samples. These include: </p>
<ul>
<li>Variation in lengths of maps</li>
<li>Changes in values of native types</li>
<li>Order of properties in an object&#39;s example value</li>
<li>Some fields may also be removed from the endpoint calls in the code samples because they were defined as <code>readOnly</code> in the API specification file</li>
</ul>
<blockquote>
<p><strong>Note</strong></p>
<p>This change is noticeable in code samples of all languages.</p>
</blockquote>
]]></content:encoded>
      <category>Code Samples</category>
    </item>
    <item>
      <title>Improvements Added to Support for Nullable Types in API Transformer</title>
      <link>https://docs.apimatic.io/changelog/improved-support-for-nullable-api-transformer</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/improved-support-for-nullable-api-transformer</guid>
      <pubDate>Tue, 03 Jan 2023 10:38:27 GMT</pubDate>
      <description>We have added some improvements to our existing support for nullable types in API Transformer, in particular when arrays are also involved. These improvements target transformations involving the OpenAPI (v3.0), RAML (v0.8 ,v1.0), Postman (v1.0, v2.0), and Insomnia formats and...</description>
      <content:encoded><![CDATA[<p>We have added some improvements to our existing support for nullable types in API Transformer, in particular when arrays are also involved. These improvements target transformations involving the OpenAPI (<code>v3.0</code>), RAML (<code>v0.8</code> ,<code>v1.0</code>), Postman (<code>v1.0</code>, <code>v2.0</code>), and Insomnia formats and will ensure reduced loss of information and improved overall quality of the output.</p>
<h2>Details</h2>
<p>Nullable types or schemas are those that allow <code>null</code> as a value in the data. In API description formats, when dealing with arrays, it is possible to mark the array schema or the array items schema as nullable. Until now, API Transformer only supported the first case (nullable arrays) but not the latter (nullable array items).</p>
<h3>OpenAPI, RAML</h3>
<p>API description formats like OpenAPI and RAML both allow you to define nullable schemas using the <code>nullable</code> and <code>nil</code> keywords respectively. You can use these keywords to mark array items as nullable as well, as shown below:</p>
<p><em>Example OpenAPI <code>v3.0</code> Using Nullable:</em></p>
<pre><code class="language-json">{
  &quot;type&quot;: &quot;array&quot;,
  &quot;items&quot;:{
    &quot;type&quot;: &quot;string&quot;,
    &quot;nullable&quot;: true
  }
}
</code></pre>
<p><em>Example RAML <code>v1.0</code> Using Nil Type:</em></p>
<pre><code class="language-yaml">type: array
items:
  type: string | nil
</code></pre>
<p>With the improvements under discussion, you will now be able to transform your specs without losing this information.</p>
<h4>Comparison of Before vs Now Output</h4>
<p>For an input RAML 1.0 schema:</p>
<pre><code class="language-yaml">type: array | nil
items:
  type: string | nil
</code></pre>
<p>Here is what the OpenAPI schema looked like (with information loss) when transformed from above RAML, using API Transformer:</p>
<pre><code class="language-json">{
	&quot;type&quot;: &quot;array&quot;,
	&quot;items&quot;: {
		&quot;type&quot;: &quot;string&quot;
	},
	&quot;nullable&quot;: true
}
</code></pre>
<p>Here is what the OpenAPI schema looks like now (without information loss) when transformed from above RAML, using API Transformer. Note, the presence of <code>nullable</code> in the array items schema which was not present in the previous case:</p>
<pre><code class="language-json">{
	&quot;type&quot;: &quot;array&quot;,
	&quot;items&quot;: {
		&quot;type&quot;: &quot;string&quot;,
		&quot;nullable&quot;: true
	},
	&quot;nullable&quot;: true
}
</code></pre>
<p>Moreover, for complex cases involving <code>$ref</code> for items type, we now export nullable info using the <code>oneOf</code> construct.</p>
<pre><code class="language-json">{
  .......
  &quot;components&quot;: {
    &quot;schemas&quot;: {
      &quot;MySchema&quot;: {
        &quot;type&quot;: &quot;array&quot;,
        &quot;items&quot;: {
          &quot;oneOf&quot;: [
            {
              &quot;nullable&quot;: true
            },
            {
              &quot;$ref&quot;: &quot;#/components/schemas/GlobalSchema&quot;
            }
          ]
        }
      },
      &quot;GlobalSchema&quot;: {
        &quot;type&quot;: &quot;object&quot;
      }
    }
  }
}
</code></pre>
<h3>Postman Collections, Insomnia</h3>
<p>In API description formats that lack a proper type system e.g. Postman Collections and Insomnia files, APIMatic auto-generates types using the example requests and responses data. Support for nullable array items has been added in such cases as well.</p>
]]></content:encoded>
      <category>Improvement</category>
      <category>API Transformer</category>
    </item>
    <item>
      <title>Improved Readability Experience with UI Changes in Navigation Bar</title>
      <link>https://docs.apimatic.io/changelog/left-navbar-ui-changes</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/left-navbar-ui-changes</guid>
      <pubDate>Wed, 28 Dec 2022 00:00:00 GMT</pubDate>
      <description>APIMatic's developer portal now offers a better visibilty experience with UI changes to the left naviagtion bar. These include indentation of menu items, bold titles and highlighting of selected section in the navigation bar.</description>
      <content:encoded><![CDATA[<p>APIMatic&#39;s developer portal now offers a better visibilty experience with UI changes to the left naviagtion bar. These include indentation of menu items, bold titles and highlighting of selected section in the navigation bar.</p>
<p>All endpoints listed under a group and any structures and models have a left indentation in the sub-meu items to distinguish the header. The section is also highlighted with the selected link boldened, so it is easy to quickly see from the navbar which section of the documentation is opened in the main pane.</p>
<p>Previously, all main items and sub-items used to have the same look and feel, so it would be hard to find which part of the documentation was being viewed, especially if there was a large number of menu items. But highlighting the whole section in the navbar, and indentation in the sub-menu items makes it easy to track the documentation.</p>
<p><img src="https://docs.apimatic.io/images/changelog/left-ui-changes.png" alt="Left Navbar UI in Developer portal"></p>
]]></content:encoded>
      <category>Improvement</category>
      <category>Portal</category>
    </item>
    <item>
      <title>Introducing Core Libraries in Ruby</title>
      <link>https://docs.apimatic.io/changelog/introducing-core-libraries-in-ruby</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/introducing-core-libraries-in-ruby</guid>
      <pubDate>Wed, 28 Dec 2022 00:00:00 GMT</pubDate>
      <description>APIMatic has introduced core libraries to provide a stable runtime that powers all functionality of our SDKs. In this release, we have revamped our Ruby SDKs to improve the code quality and provide better test coverage.</description>
      <content:encoded><![CDATA[<p>APIMatic has introduced core libraries to provide a stable runtime that powers all functionality of our SDKs. In this release, we have revamped our Ruby SDKs to improve the code quality and provide better test coverage. </p>
<p>Refer to <a href="https://docs.apimatic.io/changelog/introducing-core-libraries-in-sdks/">Introducing core libraries in APIMatic generated SDKs</a> changelog to understand the importance of core libraries in our SDKs.</p>
<h2>Details</h2>
<p>The SDKs generated by APIMatic contain utility code that helps the SDK make API calls. This utility code may be involved in but is not limited to:</p>
<ul>
<li>Creating HTTP requests from user data</li>
<li>Deserializing API responses to class instances</li>
<li>Handling various API request states and errors</li>
<li>API authentication</li>
<li>Validating user and server data</li>
<li>Functionality such as File streaming and JSON pass-through</li>
</ul>
<p>This utility code was growing with the introduction of new features and functionality, which not only increased the SDK size but also made the code untestable.</p>
<h2>What has Changed?</h2>
<p>The Ruby SDK has been refactored to make it as lightweight as possible so that the user only has access to the relevant components of the SDK. To achieve this, we have created the following three packages as dependencies.</p>
<ul>
<li><a href="https://rubygems.org/gems/apimatic_core">Core Library</a></li>
<li><a href="https://rubygems.org/gems/apimatic_core_interfaces">Core Interfaces</a></li>
<li><a href="https://rubygems.org/gems/apimatic_faraday_client_adapter">Faraday Client Adapter</a></li>
</ul>
<h3>Core Library</h3>
<p>APIMatic will now support the entire Ruby SDK through the core library package, which will be the heart of the SDK&#39;s functionality. So, this core library package is responsible for every function that the SDK was responsible for. 
This library contains completely refactored utilities with easy-to-maintain code following best practices for Ruby. Moreover, each component of the core library is thoroughly tested to ensure maximum performance and stability.</p>
<p>Basic structure of the core library is as follows:</p>
<p><img src="https://docs.apimatic.io/images/changelog/core_library-structure.png" alt="Basic structure of the core library in Ruby SDK"></p>
<p>The core library has been designed to contain each component coherently, as can be seen in this structure. The two main components are the core library itself and its unit tests. </p>
<h4>Responsibilities of the Core library</h4>
<p>Core library is mainly responsible for:</p>
<ul>
<li>Preprocessing of the request. This includes:<ul>
<li>Setting and cleaning all types of parameters</li>
<li>Validating parameters (optional and required)</li>
<li>Setting Url for the API call</li>
<li>Setting auth managers</li>
<li>XML preprocessing if required</li>
</ul>
</li>
<li>Creating the request<ul>
<li>Setting up the request with the right parameters</li>
</ul>
</li>
<li>Execution of the request</li>
<li>Response Handling, which includes:<ul>
<li>Deserializing response into required forms</li>
<li>Validating the response</li>
<li>Status code assertions</li>
<li>Converting the response into API response type</li>
<li>Exception handling in case of failed request</li>
</ul>
</li>
<li>Unit testing. Following come under unit testing:<ul>
<li>Testing all core library components</li>
<li>Achieving maximum possible code coverage and branch coverage</li>
<li>Testing utilities with meaningful inputs </li>
<li>Covering corner cases</li>
</ul>
</li>
</ul>
<h3>Core Interfaces</h3>
<p>Along with core library, we have also introduced core interfaces as one of the dependencies of the Ruby SDK. The core interface acts as an abstract layer for the core library. 
The important components of this dependency are as follows:</p>
<p><img src="https://docs.apimatic.io/images/changelog/core_interface_components_ruby.png" alt="Components of core interfaces in Ruby SDK"></p>
<p>The primary goal for introducing this dependency is to ensure that any changes required in the future can be smoothly carried out without any breaking changes. Therefore, it will ensure the scalability of the functioning of the core libraries as well as the SDK in the future.</p>
<h3>Faraday Client Adapter</h3>
<p>The Ruby SDK relies on the faraday library for making an HTTP call. Previously, the SDK contained the client implementation for sending an HTTP request through this module.
With the introduction of the core library, the faraday client implementation has been separated into another package which will be added as a dependency in the SDK. This client is a simple and clean implementation of the same functionalities that the SDK previously implemented. Moreover, we now have support for unit tests in the client as well to ensure the reliability of the component. 
The structure of this package is as follows:
	
<img src="https://docs.apimatic.io/images/changelog/faraday_client_adapter_structure.png" alt="Structure of Faraday client adaptor for Ruby SDK"></p>
<p>And the supported methods are:</p>
<p><img src="https://docs.apimatic.io/images/changelog/faraday_client_methods.png" alt="Faraday client adaptor methods in Ruby SDK"></p>
<p>It is worth mentioning here that this will help APIMatic to support different requesting libraries present in Ruby without any breaking changes to ensure reliable scalability.</p>
<h3>The SDK</h3>
<p>The SDK is now compact and easy to understand. All utilities have been moved to the core library and all responsibilities for the request creation and response handling also lie within the core library. This has improved the readability of the SDK, hence improving the overall user experience.</p>
<h4>The endpoint</h4>
<p>Let&#39;s compare an endpoint that does a <code>POST</code> request before and after introducing core libraries in Ruby SDK. </p>
<p>The code before core libraries:</p>
<pre><code class="language-ruby">    def send_unix_date_time(datetime)
      # Validate required parameters.
      validate_parameters(
        &#39;datetime&#39; =&gt; datetime
      )

      # Prepare query url.
      _query_builder = config.get_base_uri
      _query_builder &lt;&lt; &#39;/body/unixdatetime&#39;
      _query_url = APIHelper.clean_url _query_builder

      # Prepare headers.
      _headers = {
        &#39;accept&#39; =&gt; &#39;application/json&#39;,
        &#39;content-type&#39; =&gt; &#39;text/plain; charset=utf-8&#39;
      }

      # Prepare and execute HttpRequest.
      _request = config.http_client.post(
        _query_url,
        headers: _headers,
        parameters: datetime.to_time.utc.to_i.to_s
      )
      _response = execute_request(_request)

      # Validate response against endpoint and global error codes.
      return nil if _response.status_code == 404

      validate_response(_response)

      # Return appropriate response type.
      decoded = APIHelper.json_deserialize(_response.raw_body)
      ServerResponse.from_hash(decoded)
    end
</code></pre>
<p>And the code after core libraries:</p>
<pre><code class="language-ruby">    def send_unix_date_time(datetime)
      new_api_call_builder
        .request(new_request_builder(HttpMethodEnum::POST, &#39;/body/unixdatetime&#39;, Server::DEFAULT)
                   .body_param(new_parameter(datetime)
                                .is_required(true))
                   .header_param(new_parameter(&#39;text/plain; charset=utf-8&#39;, key: &#39;content-type&#39;))
                   .header_param(new_parameter(&#39;application/json&#39;, key: &#39;accept&#39;))
                   .body_serializer(proc do |param|
                     param.to_time.utc.to_i.to_s unless param.nil?
                   end))
        .response(new_response_handler
                   .is_nullify404(true)
                   .deserializer(APIHelper.method(:custom_type_deserializer))
                   .deserialize_into(ServerResponse.method(:from_hash)))
        .execute
    end
</code></pre>
<p>This code asks the Request builder to set the <em>server</em>, <em>URL path</em>, <em>header</em>, and <em>body params</em> (or any other type of parameters) along with whether they are required or not. Then it asks the response handler to set the parameters of the response, the deserializer, and the custom type to deserialize the response into. Finally, it calls the execute method from the library to make the request. This completes your API call. </p>
<p>From this example, it is quite clear that: </p>
<ul>
<li>The code for an endpoint has drastically decreased and all the repeated pre-processing has been eliminated. </li>
<li>Method changing has been introduced to make the endpoint code concise and easy to read.</li>
</ul>
<h2>The Unchanged Parts</h2>
<p>Regardless of this change, the Ruby SDKs will still contain all parts that are set by the user in the API specification. These parts include:</p>
<ul>
<li>User set configurations<ul>
<li>The Server</li>
<li>Environments</li>
</ul>
</li>
<li>Custom Types<ul>
<li>Models</li>
<li>Enums</li>
<li>Exceptions</li>
</ul>
</li>
</ul>
<blockquote>
<p><strong>Note</strong></p>
<p>There are no functional or breaking changes in the Ruby SDK. The imports and code samples will also remain the same and will function without any breakages.</p>
</blockquote>
<h2>The benefits</h2>
<p>Following are the benefits observed by the introduction of core libraries in Ruby SDK.</p>
<ul>
<li><strong>Significant increase in the stability of the SDKs</strong> as the implementation of the SDK code has been improved &amp; unit tests are made part of the core library packages.</li>
<li>Add <strong>support for new functionality in the SDKs</strong> without requiring the API provider to republish the SDKs. </li>
<li><strong>Easy to solicit feedback</strong> or get bug reports from users by making the source code available on GitHub.</li>
<li><strong>Reduce the cost of introducing new features</strong> and improving the SDKs iteratively. </li>
<li><strong>Create the ability to introduce alternative implementations</strong> for core functionality like HTTP clients, data validation, configuration loading, </li>
<li><strong>Allow us to explore SDK customizations</strong>.</li>
</ul>
]]></content:encoded>
      <category>New</category>
      <category>Ruby</category>
    </item>
    <item>
      <title>Introducing Core Library in C#</title>
      <link>https://docs.apimatic.io/changelog/introducing-core-libraries-in-csharp</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/introducing-core-libraries-in-csharp</guid>
      <pubDate>Tue, 27 Dec 2022 00:00:00 GMT</pubDate>
      <description>APIMatic has introduced core library to provide a stable runtime that powers all functionality of our SDKs. In this release, we have revamped our C# SDKs to improve the code quality and provide better test coverage.</description>
      <content:encoded><![CDATA[<p>APIMatic has introduced core library to provide a stable runtime that powers all functionality of our SDKs. In this release, we have revamped our C# SDKs to improve the code quality and provide better test coverage. </p>
<p>Refer to <a href="https://docs.apimatic.io/changelog/introducing-core-libraries-in-sdks/">Introducing core libraries in APIMatic generated SDKs</a> changelog to understand the importance of core library in our SDKs.</p>
<h2>Core Library</h2>
<p>The core library consists of classes that are used to make up the C# SDK. They help the SDKs to create and execute requests and responses using the best practices of C# language. </p>
<p>Some of the main features that core library introduces in our C# SDKs are:</p>
<ul>
<li>Processing of the request</li>
<li>Request creation</li>
<li>Execution of the request</li>
<li>Response handling</li>
<li>Unit testing</li>
</ul>
<p>This feature is rigorously tested to guarantee the highest level of speed and stability. Implementation of core library for C# SDK is placed at <a href="https://www.nuget.org/packages?q=APIMatic.Core">APIMatic.Core</a> GitHub repository. </p>
<h2>Benefits of Core Library in C# SDKs</h2>
<p>Here are the benefits of introducing core library in C# SDKs.</p>
<h3>HttpClientWrapper</h3>
<p>We moved <code>HttpClientWrapper</code> to core library. <code>HttpClientWrapper</code> uses the <code>Microsoft HttpClient</code> to send the requests and receive the responses from a resource identified by a URI. It is being injected by <code>IClientConfiguration</code>. This way it applies the required configuration while sending the requests and receiving the responses. Doing this helps to test the core library functionary a <em>100%</em>. </p>
<h3>Improved SDK</h3>
<p>The C# SDK is now lighter in size. All utilities have been moved to the core library and all responsibilities of the request creation and response handling also lie within the core library, making SDKs clean and easy to maintain. </p>
<h3>Cleaner API call</h3>
<p>The finest benefit added to our C# SDKs through the introduction of core library is simplified and cleaner API call code. In addition to moving all of the serialization, deserialization, and request parameter validation code into the core library, we have also included the code for executing API calls and handling errors. This results in a cleaner API call. Plus, applying authorization parameters to the requests also introduces abstraction. </p>
<p>Before, a C# endpoint looked like this:</p>
<pre><code class="language-csharp">/// &lt;summary&gt;
/// Send Date Array EndPoint.
/// &lt;/summary&gt;
/// &lt;param name=&quot;dates&quot;&gt;Required parameter: Example: .&lt;/param&gt;
/// &lt;returns&gt;Returns the Models.ServerResponse response from the API call.&lt;/returns&gt;
public Models.ServerResponse SendDateArray(
        List&lt;DateTime&gt; dates)
{
    Task&lt;Models.ServerResponse&gt; t = this.SendDateArrayAsync(dates);
    ApiHelper.RunTaskSynchronously(t);
    return t.Result;
}

/// &lt;summary&gt;
/// Send Date Array EndPoint.
/// &lt;/summary&gt;
/// &lt;param name=&quot;dates&quot;&gt;Required parameter: Example: .&lt;/param&gt;
/// &lt;param name=&quot;cancellationToken&quot;&gt; cancellationToken. &lt;/param&gt;
/// &lt;returns&gt;Returns the Models.ServerResponse response from the API call.&lt;/returns&gt;
public async Task&lt;Models.ServerResponse&gt; SendDateArrayAsync(
        List&lt;DateTime&gt; dates,
        CancellationToken cancellationToken = default)
{
    // validating required parameters.
    if (dates == null)
    {
        throw new ArgumentNullException(&quot;dates&quot;, &quot;The parameter \&quot;dates\&quot; is a required parameter and cannot be null.&quot;);
    }

    // the base uri for api requests.
    string baseUri = this.Config.GetBaseUri();

    // prepare query string for API call.
    StringBuilder queryBuilder = new StringBuilder(baseUri);
    queryBuilder.Append(&quot;/body/date&quot;);

    // prepare specfied query parameters.
    var queryParams = new Dictionary&lt;string, object&gt;()
    {
        { &quot;array&quot;, &quot;true&quot; },
    };

    // append request with appropriate headers and parameters
    var headers = new Dictionary&lt;string, string&gt;()
    {
        { &quot;accept&quot;, &quot;application/json&quot; },
        { &quot;Content-Type&quot;, &quot;application/json&quot; },
    };

    // append body params.
    var bodyText = ApiHelper.JsonSerialize(dates, new CustomDateTimeConverter(&quot;yyyy&#39;-&#39;MM&#39;-&#39;dd&quot;));

    // prepare the API call request to fetch the response.
    HttpRequest httpRequest = this.GetClientInstance().PostBody(queryBuilder.ToString(), headers, bodyText, queryParameters: queryParams);

    if (this.HttpCallBack != null)
    {
        this.HttpCallBack.OnBeforeHttpRequestEventHandler(this.GetClientInstance(), httpRequest);
    }

    // invoke request and get response.
    HttpStringResponse response = await this.GetClientInstance().ExecuteAsStringAsync(httpRequest, cancellationToken: cancellationToken).ConfigureAwait(false);
    HttpContext context = new HttpContext(httpRequest, response);
    if (this.HttpCallBack != null)
    {
        this.HttpCallBack.OnAfterHttpResponseEventHandler(this.GetClientInstance(), response);
    }

    // return null on 404.
    if (response.StatusCode == 404)
    {
        return null;
    }

    // handle errors defined at the API level.
    this.ValidateResponse(response, context);

    return ApiHelper.JsonDeserialize&lt;Models.ServerResponse&gt;(response.Body);
}
</code></pre>
<p>Now, because of core library, a C# SDK endpoint looks like this:</p>
<pre><code class="language-csharp">/// &lt;summary&gt;
/// Send Date Array EndPoint.
/// &lt;/summary&gt;
/// &lt;param name=&quot;dates&quot;&gt;Required parameter: Example: .&lt;/param&gt;
/// &lt;returns&gt;Returns the Models.ServerResponse response from the API call.&lt;/returns&gt;
public Models.ServerResponse SendDateArray(
        List&lt;DateTime&gt; dates)
    =&gt; CoreHelper.RunTask(SendDateArrayAsync(dates));

/// &lt;summary&gt;
/// Send Date Array EndPoint.
/// &lt;/summary&gt;
/// &lt;param name=&quot;dates&quot;&gt;Required parameter: Example: .&lt;/param&gt;
/// &lt;param name=&quot;cancellationToken&quot;&gt; cancellationToken. &lt;/param&gt;
/// &lt;returns&gt;Returns the Models.ServerResponse response from the API call.&lt;/returns&gt;
public async Task&lt;Models.ServerResponse&gt; SendDateArrayAsync(
        List&lt;DateTime&gt; dates,
        CancellationToken cancellationToken = default)
    =&gt; await CreateApiCall&lt;Models.ServerResponse&gt;()
        .RequestBuilder(_requestBuilder =&gt; _requestBuilder
            .Setup(HttpMethod.Post, &quot;/body/date&quot;)
            .Parameters(_parameters =&gt; _parameters
                .Body(_bodyParameter =&gt; _bodyParameter.Setup(dates).Serializer(_value =&gt; CoreHelper.JsonSerialize(_value, new CustomDateTimeConverter(&quot;yyyy&#39;-&#39;MM&#39;-&#39;dd&quot;))).Required())
                .Header(_header =&gt; _header.Setup(&quot;Content-Type&quot;, &quot;application/json&quot;))
                .Query(_query =&gt; _query.Setup(&quot;array&quot;, &quot;true&quot;))))
        .ResponseHandler(_responseHandler =&gt; _responseHandler
            .NullOn404()
            .Deserializer(_response =&gt; ApiHelper.JsonDeserialize&lt;Models.ServerResponse&gt;(_response)))
        .ExecuteAsync(cancellationToken);
</code></pre>
]]></content:encoded>
      <category>New</category>
      <category>C#</category>
    </item>
    <item>
      <title>Support Added for Password Format in API Transformer for OpenAPI (v2.0 and above)</title>
      <link>https://docs.apimatic.io/changelog/added-support-for-password-format-in-transformer</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/added-support-for-password-format-in-transformer</guid>
      <pubDate>Wed, 21 Dec 2022 09:35:04 GMT</pubDate>
      <description>Notifies users about changes to OpenAPI and Swagger related to `password` format.</description>
      <content:encoded><![CDATA[<p>We are pleased to announce that we have added the support for <code>password</code> schema format in API Transformer so that you can now transform between OpenAPI specification versions (v2.0 and above) without losing this information. </p>
<h2>Details</h2>
<p>In OpenAPI (<code>v2.0</code> and above), you can mark a property as sensitive which could serve as a hint for user interfaces to mask such data e.g. information like passwords, payment card information, social security numbers, etc. This is done by setting the Schema Object (<a href="https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#schema-object">v2</a>, <a href="https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#schema-object">v3.0</a>, <a href="https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#schema-object">v3.1</a>) <code>format</code> as <code>password</code> and is only applicable when <code>type</code> is <code>string</code>. </p>
<pre><code class="language-json">&quot;schema&quot;: {
	&quot;type&quot;: &quot;string&quot;,
	&quot;format&quot;: &quot;password&quot;
}
</code></pre>
<p>You can find more details about available schema data types and formats on the official documentation of OpenAPI specifications: <a href="https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#data-types">v2.0</a>, <a href="https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#data-types">v3.0</a>, <a href="https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#data-types">v3.1</a>.</p>
<p>This feature is now supported in API Transformer and will help you transform this property while converting between OpenAPI (<code>v2.0</code> and above) formats.</p>
]]></content:encoded>
      <category>New</category>
      <category>Password</category>
      <category>OpenAPI</category>
      <category>Swagger</category>
      <category>API Transformer</category>
    </item>
    <item>
      <title>Improvements to Code Sample Response and Request in the Developer Portal</title>
      <link>https://docs.apimatic.io/changelog/changed-display-of-code-block</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/changed-display-of-code-block</guid>
      <pubDate>Mon, 28 Nov 2022 00:00:00 GMT</pubDate>
      <description>We have added a separate section in the &quot;Try it Out&quot; console for code request and response body. Now the user should be able to preview the code sample making the API request after getting a response in the code sample section of the developer portal.</description>
      <content:encoded><![CDATA[<p>We have added a separate section in the &quot;Try it Out&quot; console for code request and response body. Now the user should be able to preview the code sample making the API request after getting a response in the code sample section of the developer portal. </p>
<h2>Details</h2>
<p>Previously in the API Developer Portal, the &quot;Try it out&quot; console had a section with the request code sample and on clicking the &quot;Try it Out&quot; button, only the response body could be viewed. We have updated the sample code request section for better visibility and user experience. </p>
<p>With the current implementation, there is an added flexibility in the &quot;Try it Out&quot; console. The console contains two sections i.e. <strong>Request</strong> and <strong>Response</strong>. Both the code sample and response can be simultaneously viewed which means that the response can be seen while retaining the code sample request in case header information is received in the response, the user can switch tabs between &quot;body&quot; and &quot;headers&quot; to see the relevant information.</p>
<p><img src="https://docs.apimatic.io/images/changelog/code-sample-request-response.gif" alt="Request Code Sample with Response and Headers"></p>
]]></content:encoded>
      <category>Improvement</category>
      <category>Portal</category>
      <category>Try it Out Console</category>
    </item>
    <item>
      <title>Improvements in The Font Settings in API Developer Portal</title>
      <link>https://docs.apimatic.io/changelog/improved-the-font-settings</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/improved-the-font-settings</guid>
      <pubDate>Wed, 16 Nov 2022 00:00:00 GMT</pubDate>
      <description>We have improved the font settings management in the API developer portal for better usability and visibility.</description>
      <content:encoded><![CDATA[<p>We have improved the font settings management in the API developer portal for better usability and visibility. </p>
<h2>Details</h2>
<p>Previously, the API developer portal had font settings, both <strong>basic</strong> and <strong>advanced</strong>, displayed in the same section. With the current release, the font settings are easy to manage and update. There are two separate sections for basic and advanced settings. On clicking on the section, the settings are shown accordingly. This change has been made for all three sections i.e. headings, body and code fonts. </p>
<p><img src="https://docs.apimatic.io/images/changelog/advanced-font-settings.gif" alt="Typography Settings in Developer portal"></p>
<p>Additionally, another font weight &quot;Medium&quot; has been added to the weights list. Here is the updated list of font weights in the developer portal settings:</p>
<ul>
<li>Bold</li>
<li>Semi Bold</li>
<li>Medium</li>
<li>Normal</li>
<li>Lighter</li>
</ul>
<p><img src="https://docs.apimatic.io/images/changelog/added-weights.png" alt="Weight Added in Typography Settings"></p>
]]></content:encoded>
      <category>Improvement</category>
      <category>Portal</category>
      <category>Fonts</category>
    </item>
    <item>
      <title>Added Table of Content in the Documentation</title>
      <link>https://docs.apimatic.io/changelog/added-table-of-content-in-developer-portal</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/added-table-of-content-in-developer-portal</guid>
      <pubDate>Wed, 02 Nov 2022 00:00:00 GMT</pubDate>
      <description>We have added an autogenerated table of content in the documentation that contains all the top level headings and sub-headings. Using a table of contents make it easy to navigate through multiple sections across the documentation page. It also helps in getting a high level ide...</description>
      <content:encoded><![CDATA[<p>We have added an autogenerated table of content in the documentation that contains all the top level headings and sub-headings. Using a table of contents make it easy to navigate through multiple sections across the documentation page. It also helps in getting a high level idea of what are the contents of the documentation before getting into the detail of it. </p>
<h2>Details</h2>
<p>All the headings in the documentation generate a table of contents on the right side on the page. On clicking on any of the sections, you are navigated to the specific section. </p>
<blockquote>
<p><strong>Note</strong></p>
<p>Table of contents is only generated for the custom guides and documentation and not the API endpoints or models.</p>
</blockquote>
<p>The sections are based on the headings and their levels. The heading on the first level is the first section in the table of contents and all the sub-headings form the second level sections in the table of contents. You can click on the <strong>Back to Top</strong> button to go back on the top of the page.  </p>
<p><img src="https://docs.apimatic.io/images/changelog/table-of-contents.gif" alt="Table of Contents Portal"></p>
]]></content:encoded>
      <category>New Feature</category>
      <category>API Developer Portal</category>
      <category>Table of Contents</category>
    </item>
    <item>
      <title>Adding support for Python 3.10 in APIMatic SDKs</title>
      <link>https://docs.apimatic.io/changelog/adding-support-for-python-3.10</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/adding-support-for-python-3.10</guid>
      <pubDate>Wed, 26 Oct 2022 00:00:00 GMT</pubDate>
      <description>APIMatic SDKs now support Python version 3.10 without any functional changes.</description>
      <content:encoded><![CDATA[<p>APIMatic SDKs now support Python version 3.10 without any functional changes. </p>
<h2>Details</h2>
<p>The Python SDKs are now supported on Python version 3.10. The new range of versions required to successfully run a python SDK are 3.7 - 3.10. </p>
<h2>What has changed?</h2>
<p>There are no functional changes in the SDK and all features previously supported are still compatible. The features have been tested with Python 3.10 to ensure the prevention of any unforeseen changes. </p>
<p>Please refer to our <a href="https://docs.apimatic.io/generate-sdks/sdk-features/">documentation</a> for more detail on the features supported by our SDKs.</p>
]]></content:encoded>
      <category>Python</category>
    </item>
    <item>
      <title>Performing Package Publishing through pyproject.toml File</title>
      <link>https://docs.apimatic.io/changelog/performing-package-publishing-through-pyproject-in-python</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/performing-package-publishing-through-pyproject-in-python</guid>
      <pubDate>Fri, 21 Oct 2022 00:00:00 GMT</pubDate>
      <description>Configuration details and meta data for APIMatic's Python SDKs is stored in a pyproject.toml file instead of setup.py to make the package publishing process efficient and up to date.</description>
      <content:encoded><![CDATA[<p>Configuration details and meta data for APIMatic&#39;s Python SDKs is stored in a <em>pyproject.toml</em> file instead of <em>setup.py</em> to make the package publishing process efficient and up to date.</p>
<blockquote>
<p><strong>Note</strong></p>
<p>This is a prerelease changelog. This change will take effect on <strong>2022-11-04</strong>. </p>
</blockquote>
<h2>Details</h2>
<p>Previously, <em>setup.py</em> was the main file required for package publishing in python SDKs. The meta data was described in this particular file. Now, APIMatic’s Python SDKs generate a <em>pyproject.toml</em> file to list down the specifications needed to publish a package. </p>
<h2>Why is this change required?</h2>
<p>The <em>setup.py</em> file contains the information that is required to run the file. But the file is not runnable unless the contents of the file are known which is only possible when the file is programmatically run. 
This issue was worked on but the solution has limitations as claimed by the Python community is this <a href="https://peps.python.org/pep-0518/#rationale">rationale</a>.</p>
<h2>What has changed?</h2>
<ul>
<li>The build system dependencies is now stored in a file named <em>pyproject.toml</em> which is written in the TOML format. </li>
<li>The <em>setup.py</em> file is removed to prevent redundant data from being stored. </li>
<li>A <em>setup.cfg</em> file is added to ensure that the packages can be installed in an editable mode as <code>Setuptools v62.6</code> doesn&#39;t support editable installs with just <em>pyproject.toml</em>. Hence this file will stay until the support is complete.</li>
</ul>
<h3>The CI command</h3>
<p>The CI commands to build and distribute a package have changed due to the use of the <em>pyproject.toml</em> file. To build a package, run the following command in the directory where the <em>pyproject</em> file is located.</p>
<pre><code class="language-bash">py -m build
</code></pre>
<p>To upload a package to PYPI using twine, run the following command:</p>
<pre><code class="language-bash">py -m twine upload dist/*
</code></pre>
<p>For more information on package publishing read <a href="https://packaging.python.org/en/latest/tutorials/packaging-projects/">https://packaging.python.org/en/latest/tutorials/packaging-projects/</a>.</p>
]]></content:encoded>
      <category>Python</category>
    </item>
    <item>
      <title>Adding a Disabled SDK Button in the API Developer Portal</title>
      <link>https://docs.apimatic.io/changelog/changelog-disabled-sdk</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/changelog-disabled-sdk</guid>
      <pubDate>Thu, 13 Oct 2022 00:00:00 GMT</pubDate>
      <description>We have added a new functionality to the Get SDK button in the developer portal. For any language that has SDK download disabled from the settings, the Get SDK button gets disabled.</description>
      <content:encoded><![CDATA[<p>We have added a new functionality to the <strong>Get SDK</strong> button in the developer portal. For any language that has SDK download disabled from the settings, the <strong>Get SDK</strong> button gets disabled.  </p>
<h2>Details</h2>
<p>Previously in case of <code>HTTP</code>, the portal did not have a button for <strong>Get SDK</strong> in the portal. With the current implementation, the portal has a disabled SDK button for <code>HTTP</code> language, which shows the message &quot;Select a programming language from the language selector on the right&quot; upon hovering. In case <code>HTTP</code> is the only language for the docs, there is no button for <strong>Get SDK</strong>.</p>
<p><img src="https://docs.apimatic.io/images/changelog/http-message.png" alt="HTTP Disabled SDK Message"></p>
<p>In case of any other language, if the SDK download is disabled from the settings, the disabled <strong>Get SDK</strong> button shows the message &quot;SDK is unavailable&quot; upon hovering. </p>
<p><img src="https://docs.apimatic.io/images/changelog/net-message.png" alt="Other Languages Disabled SDK Message"></p>
]]></content:encoded>
      <category>Portal</category>
      <category>Enhancement</category>
    </item>
    <item>
      <title>Introducing Core Libraries in Python</title>
      <link>https://docs.apimatic.io/changelog/introducing-core-libraries-in-python</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/introducing-core-libraries-in-python</guid>
      <pubDate>Fri, 30 Sep 2022 00:00:00 GMT</pubDate>
      <description>APIMatic has introduced core libraries to provide a stable runtime that powers all functionality of our SDKs. In this release, we have revamped our Python SDKs to improve the code quality and provide better test coverage.</description>
      <content:encoded><![CDATA[<p>APIMatic has introduced core libraries to provide a stable runtime that powers all functionality of our SDKs. In this release, we have revamped our Python SDKs to improve the code quality and provide better test coverage. </p>
<p>Refer to <a href="https://docs.apimatic.io/changelog/introducing-core-libraries-in-sdks/">Introducing core libraries in APIMatic generated SDKs</a> changelog to understand the importance of core libraries in our SDKs. </p>
<h2>Details</h2>
<p>The SDKs generated by APIMatic contain utility code that helps the Python SDK make API calls. This utility code may be involved in but is not limited to:</p>
<ul>
<li>Creating HTTP requests from user data</li>
<li>Deserializing API responses to class instances</li>
<li>Handling various API request states and errors</li>
<li>API authentication</li>
<li>Validating user and server data</li>
<li>Functionality such as File streaming and JSON pass-through</li>
</ul>
<p>While the SDKs we generate use third-party or standard libraries to do most of the heavy lifting, we noticed that SDKs still need a lot of utility code to handle the ever-growing functionalities mentioned above. This required us to make a few changes in our SDKs. </p>
<h2>What Has Changed?</h2>
<p>The python SDK is now as lightweight as possible so that the user has access to only the relevant components of the SDK. To achieve this, we have created the following three libraries as dependencies.</p>
<ol>
<li><a href="https://pypi.org/project/apimatic-core/">apimatic-core</a></li>
<li><a href="https://pypi.org/project/apimatic-core-interfaces/">apimatic-core-interfaces</a> </li>
<li><a href="https://pypi.org/project/apimatic-requests-client-adapter/">apimatic-requests-client-adapter</a></li>
</ol>
<h3>Core Libraries Package</h3>
<p>APIMatic now supports the entire SDK through the core libraries package which acts as the heart of the SDK functionality. Each function that the SDK was responsible for before has now been moved to this package. 
The core libraries contains completely refactored utilities that follow best practices for Python and easy-to-maintain code. Moreover, each component of the core libraries is thoroughly tested to ensure maximum performance and stability.
The two main components of these libraries are the core libraries and their unit tests that are designed to work coherently. </p>
<p>Some important component of these libraries are:</p>
<h4>API Call Classes</h4>
<table>
<thead>
<tr>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody><tr>
<td><code>RequestBuilder</code></td>
<td>A builder class used to build an API request.</td>
</tr>
<tr>
<td><code>APICall</code></td>
<td>A class used to create an API Call object.</td>
</tr>
<tr>
<td><code>ResponseHandler</code></td>
<td>Used to handle response returned by the server.</td>
</tr>
</tbody></table>
<h4>Configurations</h4>
<table>
<thead>
<tr>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody><tr>
<td><code>EndpointConfiguration</code></td>
<td>A class that holds possible configurations of an endpoint.</td>
</tr>
<tr>
<td><code>GlobalConfiguration</code></td>
<td>A class that holds global configuration properties to make a successful API call.</td>
</tr>
</tbody></table>
<h4>HTTP</h4>
<table>
<thead>
<tr>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody><tr>
<td><code>HttpCallBack</code></td>
<td>A factory class to create an HTTP response.</td>
</tr>
<tr>
<td><code>HttpClientConfiguration</code></td>
<td>A class used for configuring the SDK by a user.</td>
</tr>
<tr>
<td><code>HttpRequest</code></td>
<td>A class which contains information about the HTTP response.</td>
</tr>
<tr>
<td><code>ApiResponse</code></td>
<td>A wrapper class for API response.</td>
</tr>
<tr>
<td><code>Httpresponse</code></td>
<td>A class which contains information about the HTTP response.</td>
</tr>
</tbody></table>
<h3>Core Interfaces Package</h3>
<p>Alongside the core libraries, we have also introduced core interfaces as one of the key dependencies of Python SDKs. These core interfaces act as an abstract layer to the core libraries.</p>
<p>The important components of these core interfaces dependencies are:</p>
<h4>Interfaces</h4>
<table>
<thead>
<tr>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody><tr>
<td><code>HttpClient</code></td>
<td>To save both Request and Response after the completion of response.</td>
</tr>
<tr>
<td><code>ResponseFactory</code></td>
<td>To create a Response.</td>
</tr>
<tr>
<td><code> Authentication</code></td>
<td>To setup methods for authentication.</td>
</tr>
</tbody></table>
<h4>Enumerations</h4>
<table>
<thead>
<tr>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody><tr>
<td><code>HttpMethodEnum</code></td>
<td>Enumeration containing HTTP methods.</td>
</tr>
</tbody></table>
<p>The basic aim for the introduction of this dependency is to ensure that any changes required in the future can be smoothly carried out without any breaking changes. Therefore, it will ensure the scalability of the functioning of the core libraries as well as the SDK in the future.</p>
<h3>Request Client Package</h3>
<p>The Python SDK relies on the <em>requests</em> library for making an HTTP call. Previously, the SDK contained the client implementation for sending an HTTP request through this module. With the introduction of the core libraries, the request client implementation has been moved to another package which will be added as a dependency in the SDK. This client is a simple and clean implementation of the same functionalities that the SDK previously implemented. Moreover, we now have support for unit tests in the client as well to ensure the reliability of the component.</p>
<p>The supported methods of the <code>request-client</code> module are:</p>
<table>
<thead>
<tr>
<th>Method</th>
<th>Description</th>
</tr>
</thead>
<tbody><tr>
<td><code>create_default_http_client</code></td>
<td>Create a default HTTP client.</td>
</tr>
<tr>
<td><code>force_retries</code></td>
<td>Reset retries according to each request.</td>
</tr>
<tr>
<td><code>execute</code></td>
<td>Execute a given <code>HttpRequest</code> to get a string response back.</td>
</tr>
<tr>
<td><code>convert_response</code></td>
<td>Converts the response object of the <code>CoreHttpClient</code> into a <code>CoreHttpResponse</code> object.</td>
</tr>
</tbody></table>
<p>It is worth mentioning here that this will help APIMatic to support different requesting libraries present in Python without any significant breaking changes to the SDK itself, hence ensuring reliable scalability.</p>
<h2>Cleaner and Leaner SDK</h2>
<p>Python SDK is now compact and easy to understand. All utilities have been moved to the core libraries and all responsibilities for the request creation and response handling also lie with the core libraries. This has improved the readability of the SDK manifolds, hence improving the user experience.</p>
<h3>Easy to Call Endpoint</h3>
<p>Consider the example below extracted from our Tester SDK for an endpoint that does a POST request. </p>
<p>The code before the introduction of core libraries looked like this:</p>
<pre><code class="language-python">def send_unix_date_time(self, datetime):

# Validate required parameters
self.validate_parameters(datetime=datetime)

# Prepare query URL
_url_path = &#39;/body/unixdatetime&#39;
_query_builder = self.config.get_base_uri()
_query_builder += _url_path
_query_url = APIHelper.clean_url(_query_builder)

# Prepare headers
_headers = {
    &#39;accept&#39;: &#39;application/json&#39;,
    &#39;content-type&#39;: &#39;text/plain; charset=utf-8&#39;
}

# Prepare and execute request
_request = self.config.http_client.post(_query_url, headers=_headers, parameters=str(APIHelper.when_defined(APIHelper.UnixDateTime, datetime)))
_response = self.execute_request(_request)

# Endpoint and global error handling using HTTP status codes.
if _response.status_code == 404:
    return None
self.validate_response(_response)

decoded = APIHelper.json_deserialize(_response.text, ServerResponse.from_dictionary)

return decoded
</code></pre>
<p>And the same endpoint after the core libraries implementation looks like this:</p>
<pre><code class="language-python">def send_unix_date_time(self, datetime):

return super().new_api_call_builder.request(
    RequestBuilder().server(Server.DEFAULT)
        .path(&#39;/body/unixdatetime&#39;)
        .http_method(HttpMethodEnum.POST)
        .header_param(Parameter()
                        .key(&#39;accept&#39;).value(&#39;application/json&#39;))
        .header_param(Parameter()
                        .key(&#39;content-type&#39;).value(&#39;text/plain; charset=utf-8&#39;))
        .body_param(Parameter()
                    .value(str(APIHelper.when_defined(APIHelper.UnixDateTime, datetime)))
                    .is_required(True))
).response(
    ResponseHandler()
        .is_nullify404(True)
        .deserializer(APIHelper.json_deserialize)
        .deserialize_into(ServerResponse.from_dictionary)
        .is_api_response(True)
        .convertor(ApiResponse.create)
).execute()
</code></pre>
<p>The code above asks the Request builder to set the server, URL path, header, and body params ( or any other type of parameters) along with if they are required or not. Then it asks the response handler to set the parameters of the response, the deserializer, and the custom type to deserialize the response into, and then convert it into an API response in the end. Finally, it calls the execute method from the library to make the request. And that is it. You will have your API call completed. </p>
<p>As you can see, the code for an endpoint has drastically decreased and all the repeated pre-processing has been eliminated. Method changing has been introduced to make the endpoint code concise and easy to read.</p>
<p>The test runner for the unit test has been changed to Pytest from Nose as Nose has dropped its support for newer python versions. For more information please read the changelog.
The functionality of the tests remains the same.</p>
<h2>The Unchanged Parts</h2>
<p>Amongst all these changes, Python SDKs still contain all parts that are set by the user in the API specification. These parts include:</p>
<ol>
<li>User set configurations<ul>
<li>The server</li>
<li>Environments</li>
</ul>
</li>
<li>Custom types<ul>
<li>Models</li>
<li>Enums</li>
<li>Exceptions</li>
</ul>
</li>
</ol>
<blockquote>
<p><strong>Note</strong></p>
<p>There are no functional or breaking changes in the Python SDK. The imports and code samples will also remain the same and will function without any breakages.</p>
</blockquote>
]]></content:encoded>
      <category>New</category>
      <category>Python</category>
    </item>
    <item>
      <title>Introducing Core Libraries in Java</title>
      <link>https://docs.apimatic.io/changelog/introducing-core-libraries-in-java</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/introducing-core-libraries-in-java</guid>
      <pubDate>Thu, 29 Sep 2022 00:00:00 GMT</pubDate>
      <description>APIMatic has introduced core libraries to provide a stable runtime that powers all functionality of our SDKs. In this release, we have revamped our Java SDKs to improve the code quality and provide better test coverage.</description>
      <content:encoded><![CDATA[<p>APIMatic has introduced core libraries to provide a stable runtime that powers all functionality of our SDKs. In this release, we have revamped our Java SDKs to improve the code quality and provide better test coverage. </p>
<p>Refer to <a href="https://docs.apimatic.io/changelog/introducing-core-libraries-in-sdks/">Introducing core libraries in APIMatic generated SDKs</a> changelog to understand the importance of core libraries in our SDKs.</p>
<h2>Core Libraries</h2>
<p>The core libraries consist of classes that are used to make up the Java SDK. They help the SDKs to create and execute requests and responses using the best practices of Java language. </p>
<p>Some of the main features that core libraries introduce in our Java SDKs are:</p>
<ul>
<li>Processing of the request</li>
<li>Request creation</li>
<li>Execution of the request</li>
<li>Response handling</li>
<li>Unit testing</li>
</ul>
<p>All these features are rigorously tested to guarantee the highest level of speed and stability. To aid this testing, core interfaces are introduced along with core libraries. These libraries include:</p>
<ol>
<li><a href="https://search.maven.org/artifact/io.apimatic/core">apimatic-core</a></li>
<li><a href="https://search.maven.org/artifact/io.apimatic/core-interfaces">apimatic-core-interfaces</a> </li>
<li><a href="https://search.maven.org/artifact/io.apimatic/okhttp-client-adapter">apimatic-requests-client-adapter</a></li>
</ol>
<h2>Core Interfaces</h2>
<p>Core interfaces provide an abstraction later on top of core libraries. This results in a cleaner interface and an abstraction for the core functionality of these classes for our SDK users. 
Consequently, it enhances the scalability of our Java SDKs. </p>
<p>These core interfaces are discussed below:</p>
<ul>
<li><p><code>HttpClient</code></p>
<ul>
<li>To send HTTP requests and read the responses</li>
<li><code>HttpClient</code> interface is an integral part of the client functionality which is implemented by <code>OkClient</code></li>
</ul>
</li>
<li><p><code>CompatibilityFactory</code></p>
<ul>
<li>For backward compatibility</li>
</ul>
</li>
<li><p>Authentication</p>
<ul>
<li>To setup methods for authentication</li>
</ul>
</li>
<li><p>Method</p>
<ul>
<li>Enumeration containing <code>HttpMethods</code></li>
</ul>
</li>
</ul>
<h2>Benefits of Core Libraries in Java SDKs</h2>
<p>Here are the benefits of introducing core libraries in Java SDKs.</p>
<h3>Wrapped Http Client</h3>
<p>The <code>OkHttp</code> client adapter library is used by the Java SDK when sending an HTTP request. Earlier versions of the SDK came with an integrated client implementation for sending HTTP requests using this module. With the addition of core libraries, the implementation of the <code>OkHttp</code> client has been divided into a separate package and is added to the SDK as a dependency. </p>
<p>Previously, the logger was started in the client but now, it is being injected. The client offers a simple and elegant alternative to the SDK for implementing the same capabilities. We now have client support for unit testing to ensure improved component dependability and performance. </p>
<pre><code class="language-java">/**
 * To send HTTP Requests and read the responses.
 *
 */
public interface HttpClient {

    /**
     * Execute a given Request to get string/binary response back.
     * 
     * @param request The given HttpRequest to execute.
     * @param endpointConfiguration The overridden configuration for request.
     * @return CompletableFuture of Response after execution.
     */
    public CompletableFuture&lt;Response&gt; executeAsync(final Request request,
            CoreEndpointConfiguration endpointConfiguration);

    /**
     * Execute a given Request to get string/binary response back.
     * 
     * @param request The given Request to execute.
     * @param retryConfiguration The overridden retry configuration for request.
     * @return The converted response.
     * @throws IOException exception to be thrown while converting response.
     */
    public Response execute(final Request request, CoreEndpointConfiguration endpointConfiguration)  throws IOException;
}
</code></pre>
<h3>Improved SDK</h3>
<p>The Java SDK is now lighter in size. All utilities have been moved to the core library and all responsibilities of the request creation and response handling also lie with the core libraries, making SDKs clean and easy to maintain. </p>
<h3>Cleaner API Call</h3>
<p>Simplified and cleaner API call code is the finest benefit added to our Java SDKs through core libraries. Now, in addition to moving all of the serialization, deserialization, and request parameter validation code into the core libraries, we have also included the code for executing API calls and handling errors. Applying authorization parameters to the requests also introduces abstraction. </p>
<p>Before, a Java endpoint used to look like this:</p>
<pre><code class="language-java">/**
    * @param  dates  Required parameter: Example:
    * @return    Returns the ServerResponse response from the API call
    * @throws    ApiException    Represents error response from the server.
    * @throws    IOException    Signals that an I/O exception of some sort has occurred.
    */
public ServerResponse dateArray(
        final List&lt;LocalDate&gt; dates) throws ApiException, IOException {
    HttpRequest request = buildDateArrayRequest(dates);
    HttpResponse response = getClientInstance().execute(request, false);
    HttpContext context = new HttpContext(request, response);

    return handleDateArrayResponse(context);
}

/**
    * Builds the HttpRequest object for dateArray.
    */
private HttpRequest buildDateArrayRequest(
        final List&lt;LocalDate&gt; dates) {
    //validating required parameters
    if (null == dates) {
        throw new NullPointerException(&quot;The parameter \&quot;dates\&quot; is a required parameter and cannot be null.&quot;);
    }

    //the base uri for api requests
    String baseUri = config.getBaseUri();

    //prepare query string for API call
    final StringBuilder queryBuilder = new StringBuilder(baseUri
            + &quot;/query/datearray&quot;);

    //load all query parameters
    Map&lt;String, Object&gt; queryParameters = new HashMap&lt;&gt;();
    queryParameters.put(&quot;dates&quot;, DateTimeHelper.toSimpleDate(dates));

    //load all headers for the outgoing API request
    Headers headers = new Headers();
    headers.add(&quot;accept&quot;, &quot;application/json&quot;);

    //prepare and invoke the API call request to fetch the response
    HttpRequest request = getClientInstance().get(queryBuilder, headers, queryParameters,
            null);

    // Invoke the callback before request if its not null
    if (getHttpCallback() != null) {
        getHttpCallback().onBeforeRequest(request);
    }

    return request;
}

/**
    * Processes the response for dateArray.
    * @return An object of type ServerResponse
    */
private ServerResponse handleDateArrayResponse(
        HttpContext context) throws ApiException, IOException {
    HttpResponse response = context.getResponse();

    //invoke the callback after response if its not null
    if (getHttpCallback() != null) {
        getHttpCallback().onAfterResponse(context);
    }

    //Error handling using HTTP status codes
    int responseCode = response.getStatusCode();

    //return null on 404
    if (responseCode == 404) {
        return null;
    }
    //handle errors defined at the API level
    validateResponse(response, context);

    //extract result from the http response
    String responseBody = ((HttpStringResponse) response).getBody();
    ServerResponse result = ApiHelper.deserialize(responseBody,
            ServerResponse.class);

    return result;
}
</code></pre>
<p>Now, because of core libraries, a Java SDK endpoint looks like this instead:</p>
<pre><code class="language-java">/**
    * @param  dates  Required parameter: Example:
    * @return    Returns the ServerResponse response from the API call
    * @throws    ApiException    Represents error response from the server.
    * @throws    IOException    Signals that an I/O exception of some sort has occurred.
    */
public ServerResponse dateArray(
        final List&lt;LocalDate&gt; dates) throws ApiException, IOException {
    return prepareDateArrayRequest(dates).execute();
}


/**
    * Builds the ApiCall object for dateArray.
    */
private ApiCall&lt;ServerResponse, ApiException&gt; prepareDateArrayRequest(
        final List&lt;LocalDate&gt; dates) throws IOException {
    return new ApiCall.Builder&lt;ServerResponse, ApiException&gt;()
                    .globalConfig(getGlobalConfiguration())
            .requestBuilder(requestBuilder -&gt; requestBuilder
                    .server(Server.ENUM_DEFAULT.value())
                    .path(&quot;/query/datearray&quot;)
                    .queryParam(param -&gt; param.key(&quot;dates&quot;)
                            .value(DateTimeHelper.toSimpleDate(dates)))
                    .headerParam(param -&gt; param.key(&quot;accept&quot;).value(&quot;application/json&quot;))
                    .httpMethod(HttpMethod.GET))
            .responseHandler(responseHandler -&gt; responseHandler
                    .deserializer(
                            response -&gt; ApiHelper.deserialize(response, ServerResponse.class))
                    .globalErrorCase(GLOBAL_ERROR_CASES))
            .build();
}
</code></pre>
]]></content:encoded>
      <category>New</category>
      <category>Java</category>
    </item>
    <item>
      <title>Introducing Core Libraries in PHP</title>
      <link>https://docs.apimatic.io/changelog/introducing-core-libraries-in-php</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/introducing-core-libraries-in-php</guid>
      <pubDate>Thu, 29 Sep 2022 00:00:00 GMT</pubDate>
      <description>APIMatic has introduced core libraries to provide a stable runtime that powers all functionality of our SDKs. In this release, we have revamped our PHP SDKs to improve the code quality and provide better test coverage.</description>
      <content:encoded><![CDATA[<p>APIMatic has introduced core libraries to provide a stable runtime that powers all functionality of our SDKs. In this release, we have revamped our PHP SDKs to improve the code quality and provide better test coverage. </p>
<p>Refer to <a href="https://docs.apimatic.io/changelog/introducing-core-libraries-in-sdks/">Introducing core libraries in APIMatic generated SDKs</a> changelog to understand the importance of core libraries in our SDKs.  </p>
<h2>Details</h2>
<p>APIMatic&#39;s PHP SDKs contained a lot of utility code that not only helped the SDK to make API calls and map JSON responses to Custom Models but was also involved in:</p>
<ul>
<li>Creating HTTP requests from user date</li>
<li>Deserializing API responses back to object instances</li>
<li>Handling various API request states and errors</li>
<li>API authentication</li>
<li>Validating user and server data</li>
<li>Functionality such as File streaming and JSON pass-through</li>
</ul>
<p>This utility code was growing with the introduction of new features and functionality, which not only increased the SDK size but also made the code untestable.</p>
<h2>What Has Changed?</h2>
<p>In order to remedy all these concerns, APIMatic is now introducing Core Libraries in PHP SDKs. These core libraries include:</p>
<ul>
<li><a href="https://packagist.org/packages/apimatic/core">apimatic/core</a></li>
<li><a href="https://packagist.org/packages/apimatic/core-interfaces">apimatic/core-interfaces</a></li>
<li><a href="https://packagist.org/packages/apimatic/unirest-php">apimatic/unirest-php</a></li>
</ul>
<p>These libraries contain the code that remained constant from one SDK to another as well as the unit tests to target 100% code coverage. This helps increase the stability of our PHP SDKs, and provides support for new features without having to re-generate and republish the client libraries.</p>
<p>The following changes are being made part of our current PHP SDKs with the introduction of core libraries.</p>
<h3>Cleaner and Leaner SDK Code</h3>
<p>Our SDKs now have lesser code than before. We have moved all the core logic of <code>ApiHelper</code>, <code>DatetimeHelper</code>, <code>FileWrapper</code> and <code>HTTP Package</code> to <a href="https://packagist.org/packages/apimatic/core">apimatic/core</a> library.</p>
<p>We have also removed our internal utility classes like <code>TestHelper</code>, <code>HttpCallbackCatcher</code>, <code>XMLSerializer</code>, <code>XMLDeserializer</code>, and <code>ExceptionInterface</code> from our PHP SDKs, and moved their functionality with 100% code coverage to <a href="https://packagist.org/packages/apimatic/core">apimatic/core</a> and <a href="https://packagist.org/packages/apimatic/core-interfaces">apimatic/core-interfaces</a> libraries.</p>
<p>The best feature introduced in our PHP SDKs through core libraries is a simpler and cleaner API Call code. We have now moved all the request parameter validation, serialization, and deserialization into the <a href="https://packagist.org/packages/apimatic/core">apimatic/core</a> library and embedded the API call execution, and error handling code into the core libraries. Abstraction is also introduced in applying authorization parameters to the requests. Now, an endpoint in SDK may only look like this:</p>
<pre><code class="language-php">$_reqBuilder = $this-&gt;requestBuilder(&#39;POST&#39;, &#39;/api/path&#39;)
    -&gt;server(&#39;Server2&#39;)
    -&gt;parameters(
        QueryParam::init(&#39;date array&#39;, $query)-&gt;serializeBy([DateHelper::class, &#39;toRfc1123DateTimeArray&#39;]),
        HeaderParam::init(&#39;header&#39;, $header)-&gt;required(),
        FormParam::init(&#39;form 1&#39;, $form1)
        FormParam::init(&#39;form 2&#39;, $form2)-&gt;unIndexed()
    )
    -&gt;auth(&#39;global&#39;)
    -&gt;retryOption(RetryOption::ENABLE_RETRY);


$_resHandler = $this-&gt;responseHandler()
    -&gt;type(ResponseType::class)
    -&gt;throwErrorOn(405, ErrorType::init(&#39;Wrong payload 405&#39;, WrongPayloadException::class));


$this-&gt;execute($requestBuilder, $responseHandler);
</code></pre>
<p>Previously, the same endpoint code had all kinds of validations, mapping, and API call execution bundled into a single function.</p>
<pre><code class="language-php">//check that all required arguments are provided
if (!isset($textString)) {
    throw new \InvalidArgumentException(&quot;One or more required arguments were NULL.&quot;);
}

//prepare query string for API call
$_queryUrl = $this-&gt;config-&gt;getBaseUri() . &#39;/body/deletePlainTextBody&#39;;

//prepare headers
$_headers = [
    &#39;Accept&#39;        =&gt; &#39;application/json&#39;,
    &#39;content-type&#39;  =&gt; &#39;text/plain; charset=utf-8&#39;
];

//json encode body
$_bodyJson = $textString;

$_httpRequest = new HttpRequest(HttpMethod::DELETE, $_headers, $_queryUrl);

//call on-before Http callback
if ($this-&gt;getHttpCallBack() != null) {
    $this-&gt;getHttpCallBack()-&gt;callOnBeforeRequest($_httpRequest);
}

// and invoke the API call request to fetch the response
try {
    $response = self::$request-&gt;delete($_httpRequest-&gt;getQueryUrl(), $_httpRequest-&gt;getHeaders(), $_bodyJson);
} catch (\Unirest\Exception $ex) {
    throw new ApiException($ex-&gt;getMessage(), $_httpRequest);
}


$_httpResponse = new HttpResponse($response-&gt;code, $response-&gt;headers, $response-&gt;raw_body);
$_httpContext = new HttpContext($_httpRequest, $_httpResponse);

//call on-after Http callback
if ($this-&gt;getHttpCallBack() != null) {
    $this-&gt;getHttpCallBack()-&gt;callOnAfterRequest($_httpContext);
}

//return null on 404
if ($response-&gt;code == 404) {
    return null;
}
//handle errors defined at the API level
$this-&gt;validateResponse($_httpResponse, $_httpRequest);
return ApiHelper::mapClass($_httpRequest, $_httpResponse, $response-&gt;body, &#39;ServerResponse&#39;);
</code></pre>
<p>After improving the API calls, we have also improved our unit tests in PHP SDKs. This is achieved by removing the <code>TestHelper</code> utility class and moving all of its relevant logic to <a href="https://packagist.org/packages/apimatic/core">apimatic/core</a> library. With this improvement, assertion unit tests have a much simpler and more readable interface.</p>
<pre><code class="language-php">$this-&gt;newTestCase($result)
    -&gt;expectStatusRange(200, 208)
    -&gt;expectHeaders([&#39;content-type&#39; =&gt; [&#39;application/json&#39;, true]])
    -&gt;allowExtraHeaders()
    -&gt;bodyMatcher(KeysAndValuesBodyMatcher::init(TestParam::object(&#39;{&quot;responseBody&quot;:&quot;some value&quot;}&#39;), true))
    -&gt;assert();
</code></pre>
<p>Previously, the same unit tests assertions were being handled a lot differently. It required a utility class <code>TestHelper</code> to check if the expected result matches the actual result. Following is a code sample of how it was being done:</p>
<pre><code class="language-php">// Test response code
$this-&gt;assertEquals(
    200,
    self::$httpResponse-&gt;getResponse()-&gt;getStatusCode(),
    &quot;Status is not 200&quot;
);

$this-&gt;assertGreaterThanOrEqual(
    200,
    self::$httpResponse-&gt;getResponse()-&gt;getStatusCode(),
    &quot;Status is not greater then 200&quot;
);

$this-&gt;assertLessThanOrEqual(
    208,
    self::$httpResponse-&gt;getResponse()-&gt;getStatusCode(),
    &quot;Status is not less then 208&quot;
);

// Test whether the captured response is as we expected
$this-&gt;assertNotNull($result, &quot;Result does not exist&quot;);

$this-&gt;assertTrue(
    TestHelper::isJsonObjectProperSubsetOf(
        &#39;{&quot;passed&quot;:true}&#39;,
        self::$httpResponse-&gt;getResponse()-&gt;getRawBody(),
        true,
        true,
        false
    ),
    &quot;Response body does not match in keys and/or values&quot;
    );
</code></pre>
<h3>Faster Bug Fixes and Security Patches</h3>
<p>One of the main advantages of having core libraries is to release security patches and fixes for bugs much faster than before. 
Now, with the release of core libraries in PHP, there will be no need to regenerate PHP SDKs. This is possible because we have moved all the functionality of our SDKs into the core libraries and its dependency will automatically be updated with each release of these libraries. </p>
<h3>Improved Test Coverage Visibility</h3>
<p>After moving all the core functionality and logic of our PHP SDKs, we made it possible to write unit tests for each of our components and aim for 100% code coverage of our Utility Code. The following screenshot shows the current code coverage of <a href="https://packagist.org/packages/apimatic/core">apimatic/core</a> library for PHP SDKs.</p>
<p><img src="https://docs.apimatic.io/images/changelog/code-coverage-analyzer.png" alt="Code coverage of PHP SDK"></p>
<h3>Upgrades for Major Language Versions and Dependency Releases</h3>
<p>Each year PHP lang releases a new version and deprecates an older one. Every new version of the language comes with a whole lot of exciting new features that are waiting to be added to the SDKs. Core libraries come to the rescue to support major language and dependencies versions without any breaking changes and regeneration of our PHP SDKs. 
After the release of core libraries, our customers will no longer have to wait for the support of new dependencies and features in the latest PHP version.</p>
<h2>New Feature: Introduction of ClientBuilder</h2>
<p>Although this release focused on making the PHP SDKs lean and clean and avoiding all breaking changes, we found time to squeeze in an extra feature into the release: a new type-safe way of instantiating the SDK!</p>
<p>Previously, SDK Client was initialized through an array of configurations, like:</p>
<pre><code class="language-php">$client = new SdkClient([
    &#39;environment&#39; =&gt; &#39;production&#39;,
    &#39;enableRetries&#39; =&gt; true,
    &#39;timeout&#39; =&gt; 30
]);
</code></pre>
<p>Although this was a general way of providing configurations in PHP, but after initialization, it was causing issues like type mismatch, key not found, etc. To avoid such problems of spelling out array keys, we are providing a new way of client initialization and keeping the existing solution in order to avoid breaking changes. So now, we are introducing the client builder in PHP to set configuration with type checking and value validations, like this:</p>
<pre><code class="language-php">$client = SdkClientBuilder::init()
    -&gt;environment(Environment::PROD)
    -&gt;enableRetries(true)
    -&gt;timeout(30)
    -&gt;build();
</code></pre>
]]></content:encoded>
      <category>New</category>
      <category>PHP</category>
    </item>
    <item>
      <title>Introducing Core Libraries in APIMatic Generated SDKs</title>
      <link>https://docs.apimatic.io/changelog/introducing-core-libraries-in-sdks</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/introducing-core-libraries-in-sdks</guid>
      <pubDate>Wed, 28 Sep 2022 00:00:00 GMT</pubDate>
      <description>APIMatic SDKs now come with core libraries that improve code quality, reduce SDK size, and provide better test coverage for all SDKs.</description>
      <content:encoded><![CDATA[<p>APIMatic SDKs now come with core libraries that improve code quality, reduce SDK size, and provide better test coverage for all SDKs. </p>
<h2>Details</h2>
<p>As part of our goal to create high-quality SDKs that serve as a replacement for hand-crafted SDKs, APIMatic works continuously on improving the code quality, testability, and usability of the SDKs generated by the APIMatic Code Generator. 
In this release, we have majorly revamped SDKs to improve the code quality, thanks to the introduction of the new APIMatic Core Libraries. These changes improve code quality, reduce code size, and provide better test coverage than ever. Not only this but we have managed to do this without any breaking changes to the SDK’s interface.</p>
<h2>What are the APIMatic Core Libraries?</h2>
<p>The APIMatic Core libraries provide a stable runtime that powers all the functionality of our SDKs. This includes functionality like the ability to create HTTP requests, handle responses, facilitate authentication, convert API responses back to class instances, and validate user and server data. The new core libraries provide a stable interface for all SDKs to use these functionalities without having to include this code in the SDK itself.</p>
<h2>What are Core Libraries Responsible for?</h2>
<p>The newly introduced core libraries are responsible for the following:</p>
<ul>
<li>Preprocessing of the request<ul>
<li>Set and clean all types of parameters</li>
<li>Validate parameters (optional and required)</li>
<li>Set URL for the API call</li>
<li>Set auth managers</li>
<li>XML preprocessing</li>
</ul>
</li>
<li>Creating the Request<ul>
<li>Setting up the request with the right parameters</li>
</ul>
</li>
<li>Execution of the request</li>
<li>Response Handling<ul>
<li>Deserializing response into required forms</li>
<li>Validating the response</li>
<li>Status code assertions</li>
<li>Converting the response into API response type</li>
<li>Exception handling in case of failed request</li>
</ul>
</li>
<li>Unit testing<ul>
<li>Testing all core library components</li>
<li>Achieving maximum possible code coverage and branch coverage</li>
<li>Testing utilities with meaningful inputs </li>
<li>Covering corner cases</li>
</ul>
</li>
</ul>
<h2>What do Core Libraries do for You?</h2>
<p>With the introduction of core libraries, you will now see:</p>
<ul>
<li>Cleaner, leaner SDK code as we move the implementation details to the core libraries</li>
<li>Faster releases for bug fixes and security patches for your generated SDKs</li>
<li>Improved visibility of the test coverage for code that powers your SDK</li>
<li>Easier upgrades for major language versions and dependencies releases</li>
</ul>
<h2>Benefits of Introducing Core Libraries</h2>
<ol>
<li><strong>Increase the stability of the SDKs significantly</strong> by virtue of improving the implementation in the SDKs &amp; adding unit tests to core libraries.</li>
<li><strong>Provide support for new functionality in the SDKs</strong> without requiring the API provider to republish the SDKs. </li>
<li><strong>Easy to solicit feedback or get bug reports from users</strong> by making the source code available on GitHub</li>
<li><strong>Reduce the cost of introducing new features</strong> and improving the SDKs iteratively </li>
<li><strong>Create the ability to introduce alternative implementations</strong> for core functionality like HTTP clients, data validation, configuration loading, </li>
<li><strong>Give us an opportunity to explore making SDKs more customizable</strong></li>
</ol>
<h2>What’s Next?</h2>
<p>SDKs generated in multiple languages have been revamped to include the new APIMatic core libraries. To get a detailed idea of this new change in each language, read these changelogs:</p>
<ul>
<li><a href="https://docs.apimatic.io/changelog/introducing-core-libraries-in-php/">Introducing core libraries in PHP SDKs</a></li>
<li><a href="https://docs.apimatic.io/changelog/introducing-core-libraries-in-java/">Introducing core libraries in Java SDKs</a></li>
<li><a href="https://docs.apimatic.io/changelog/introducing-core-libraries-in-python/">Introducing core libraries in Python SDKs</a></li>
<li><a href="https://docs.apimatic.io/changelog/introducing-core-libraries-in-csharp">Introducing core libraries in C# SDKs</a> </li>
<li><a href="https://docs.apimatic.io/changelog/introducing-core-libraries-in-ruby">Introducing core libraries in Ruby</a></li>
</ul>
]]></content:encoded>
      <category>New</category>
    </item>
    <item>
      <title>Introducing support for complex query params in TypeScript</title>
      <link>https://docs.apimatic.io/changelog/support-for-complex-query-params-in-typescript</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/support-for-complex-query-params-in-typescript</guid>
      <pubDate>Thu, 22 Sep 2022 00:00:00 GMT</pubDate>
      <description>TypeScript SDKs now support complex query parameters that allow you to send complex types and arrays/maps of complex types in query strings.</description>
      <content:encoded><![CDATA[<p>TypeScript SDKs now support complex query parameters that allow you to send complex types and arrays/maps of complex types in query strings.</p>
<h2>Details</h2>
<p>OpenAPI specification allows sending any kind of payload as a query parameter. The following example shows how to set the required type for any query parameter.</p>
<pre><code class="language-typescript">&quot;parameters&quot;: [
   {
     &quot;name&quot;: &quot;petId&quot;,
     &quot;in&quot;: &quot;query&quot;,
     &quot;description&quot;: &quot;ID of pet that needs to be updated&quot;,
     &quot;required&quot;: true,
     &quot;schema&quot;: {
       &quot;type&quot;: &quot;string&quot;
     }
   }
]
</code></pre>
<p>This payload could either be of a simple type i.e <code>string</code>, <code>boolean</code>, <code>number</code>, or could be a complex type i.e <code>model</code>, <code>array</code>, or <code>map</code>. 
Previously, TypeScript SDKs only supported simple types along with array/map of simple types but did not support complex types, array/map of complex types in the query string.</p>
<h2>What has changed?</h2>
<p>We are now introducing the support for complex query parameters. Now, TypeScript SDKs have the ability to send a complex type as well as arrays/maps of complex types in query strings. For example, take the following model named <em>Pet</em>:</p>
<pre><code class="language-typescript">export interface Pet{
  petId: number;
  petName: string;
  siblings: string[];
}
</code></pre>
<pre><code class="language-typescript">const Cat: Pet= {
  petId: 345,
  petName: &#39;PersianCat&#39;,
  Siblings: [‘catA’, ‘catB’, ‘catC’]
};
</code></pre>
<p>This model can now be sent in a query string, and the resultant decoded query string would look like this:</p>
<pre><code class="language-typescript">/sendPet?pet[petId]=345&amp;pet[petName]=PersianCat&amp;pet[siblings][0]=catA&amp;pet[siblings][1]=catB&amp;pet[siblings][2]=catC
</code></pre>
<p>We also added the support for different array serialization formats that would apply to arrays of simple types that may appear within a model. In the above example of model <em>Pet</em>, the field <code>siblings</code> is an array of simple type i.e. <code>string</code>, and is being serialized by Indexed array serialization. </p>
<p>Along with this, support for other array serialization formats like <code>Plain</code>, <code>UnIndexed</code>, <code>CommaSeparated</code>, <code>TabSeparated</code>, <code>PipeSeperated</code> has also been added. The default format is <code>Indexed</code> but you can set any of these formats in an OAS like:</p>
<pre><code class="language-JSON">{
 &quot;openapi&quot;: &quot;3.0.0&quot;,
 &quot;info&quot;: {
   &quot;x-codegen-settings&quot;: {
       &quot;ArraySerialization&quot;: &quot;Plain&quot;
   }
 }
</code></pre>
<p>Let&#39;s take the same model and try applying other array serialization formats.</p>
<p><strong>Plain Array Serialization​</strong></p>
<pre><code class="language-typescript">/sendPet?pet[petId]=345&amp;pet[petName]=PersianCat&amp;pet[siblings]=catA&amp;pet[siblings]=catB&amp;pet[siblings]=catC
</code></pre>
<p><strong>UnIndexed Array Serialization​</strong></p>
<pre><code class="language-typescript">/sendPet?pet[petId]=345&amp;pet[petName]=PersianCat&amp;pet[siblings][]=catA&amp;pet[siblings][]=catB&amp;pet[siblings][]=catC
</code></pre>
<p><strong>CommaSeparated Array Serialization​</strong></p>
<pre><code class="language-typescript">/sendPet?pet[petId]=345&amp;pet[petName]=PersianCat&amp;pet[siblings]=catA,catB,catC
</code></pre>
<p><strong>TabSeparated Array Serialization​</strong></p>
<pre><code class="language-typescript">/sendPet?pet[petId]=345&amp;pet[petName]=PersianCat&amp;pet[siblings]=catA\tcatB\tcatC
</code></pre>
<p><strong>PipeSeparated Array Serialization​</strong></p>
<pre><code class="language-typescript">/sendPet?pet[petId]=345&amp;pet[petName]=PersianCat&amp;pet[siblings]=catA|catB|catC
</code></pre>
]]></content:encoded>
      <category>New</category>
      <category>TypeScript</category>
    </item>
    <item>
      <title>Added the support of Multiline String Input in API Code Playground</title>
      <link>https://docs.apimatic.io/changelog/changelog-multiline-support</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/changelog-multiline-support</guid>
      <pubDate>Wed, 21 Sep 2022 00:00:00 GMT</pubDate>
      <description>​ We have added the support of multiline in the text area for string input in the API Code Playground. ​ ​</description>
      <content:encoded><![CDATA[<p>​
We have added the support of multiline in the text area for string input in the API Code Playground.
​
​</p>
<h2>Details</h2>
<p>​
Previously the user could not add a new line in the string input field for any parameter or property in the API Code Playground in the developer portal. 
​</p>
<h2>What&#39;s Changed</h2>
<p>​
With the current improvements, the playground now supports multipline text box for string values. The input feild changes in a text box supporting multiline input by pressing the &quot;Enter&quot; key. </p>
<p><img src="https://docs.apimatic.io/images/changelog/multiline-support-portal.gif" alt="Multiline Support in API Code Playgroung">
​
<strong>NOTE:</strong></p>
<blockquote>
<p>The change is only valid if the input type is <code>String</code>.</p>
</blockquote>
]]></content:encoded>
      <category>Improvement</category>
      <category>Portal</category>
      <category>API Playground</category>
    </item>
    <item>
      <title>Changed the List of Supported Fonts for Heading, Body and Code in the Developer Portal</title>
      <link>https://docs.apimatic.io/changelog/changed-font-support-for-portal</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/changed-font-support-for-portal</guid>
      <pubDate>Thu, 15 Sep 2022 00:00:00 GMT</pubDate>
      <description>​ In the Developer Portal, users can update the heading, body and code fonts. For the hosted portal, the user can select list of fonts available on the portal editor. For the self-hosted portal, the web font URL can be provided as part of the portal settings in the build file.</description>
      <content:encoded><![CDATA[<p>​
In the Developer Portal, users can <a href="https://docs.apimatic.io/publish-apis/customizing-your-portal/#typography">update the heading, body and code fonts</a>. For the hosted portal, the user can select list of fonts available on the portal editor. For the self-hosted portal, the <code>web font URL</code> can be provided as part of <a href="https://docs.apimatic.io/platform-api/#/http/guides/generating-on-prem-api-portal/build-file-reference/generateportal-portalsettings-themeoverrides-fontsource">the portal settings in the build file</a>. </p>
<h2>Hosted Portal Users</h2>
<p>In the API developer portal, the list of available fonts in the portal editor is updated for code, body and headings. </p>
<p>The following fonts are now supported for the respective sections.</p>
<h3>Heading and Body Fonts</h3>
<ul>
<li>Rubik <strong>(default)</strong></li>
<li>Roboto</li>
<li>Inter</li>
<li>Open Sans</li>
<li>Montserrat
​</li>
</ul>
<h3>Code Fonts</h3>
<ul>
<li>Courier Prime <strong>(default)</strong></li>
<li>Anonymous Pro</li>
<li>IBM Plex Mono</li>
</ul>
<p><strong>NOTE:</strong></p>
<blockquote>
<p>The current change will not affect the already existing published portals. Please make sure to select the valid font when re-publishing the portal.</p>
</blockquote>
<h2>Self Hosted Portal Users</h2>
<p>The self-hosted portal users need to provide <code>Web Font URLs</code> in the portal setting in the build file as shown below. For more details please refer to the <a href="https://docs.apimatic.io/platform-api/#/http/guides/generating-on-prem-api-portal/build-file-reference/generateportal-portalsettings-themeoverrides-fontsource">documentation</a>. </p>
<pre><code>&quot;generatePortal&quot;: {
  &quot;portalSettings&quot;: {
    &quot;themeOverrides&quot;: {
      &quot;fontSource&quot;: [
        &quot;https://fonts.googleapis.com/css?family=Open+Sans&quot;
      ]
    }
  }
}
</code></pre>
<h3>Font Weights</h3>
<p>Please make sure that the following font weights are available in the provided web fonts in order to avoid any font related issues.</p>
<ul>
<li><code>300</code> &amp; <code>300i</code></li>
<li><code>400</code> &amp; <code>400i</code></li>
<li><code>500</code> &amp; <code>500i</code></li>
<li><code>600</code> &amp; <code>600i</code></li>
<li><code>700</code> &amp; <code>700i</code></li>
<li><code>800</code> &amp; <code>800i</code></li>
<li><code>900</code> &amp; <code>900i</code></li>
</ul>
]]></content:encoded>
      <category>Improvement</category>
      <category>Portal</category>
    </item>
    <item>
      <title>Replacing Nose with Pytest as the test runner</title>
      <link>https://docs.apimatic.io/changelog/replacing-nose-with-pytest</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/replacing-nose-with-pytest</guid>
      <pubDate>Thu, 15 Sep 2022 00:00:00 GMT</pubDate>
      <description>For Python SDKs, the test runner used to run unit tests was Nose. As its maintenance support is coming to an end, APIMatic has replaced nose with Pytest for all future test suites.</description>
      <content:encoded><![CDATA[<p>For Python SDKs, the test runner used to run unit tests was Nose. As its maintenance support is coming to an end, APIMatic has replaced nose with Pytest for all future test suites. </p>
<blockquote>
<p><strong>Note</strong></p>
<p>Python SDK with Pytest as the test runner will be made live on 2022-10-01. </p>
</blockquote>
<h2>Details</h2>
<p>Previously the test runner used by APIMatic’s Python SDK was nose. The command used to run the test suite (written using <code>unittest</code>) was <code>nosetests</code>. However, nose is no longer maintained and doesn’t give the expected behavior with newer versions of Python 3. This has created an issue for the users wanting to run tests with Python 3+.</p>
<h2>What Has Changed?</h2>
<p>The test runner is now changed to Pytest. Pytest is capable of running the same test written in <code>unittest</code>. Users will now require Pytest to run the unit tests that come along with the Python SDK.</p>
<h3>Change in the CI command</h3>
<p>You simply need to use <code>pytest</code> as the command to run all the unit tests. Pytest will run all files of the form <em>test_</em>.py* or **_test.py* in the current directory and its subdirectories. More generally, it follows standard test discovery rules. 
Please note that the <em>test-requirements.txt</em> file in the SDK has also been changed so that Pytest can be automatically installed instead of nose when the installation is run.</p>
<h3>Change in the test cases</h3>
<p>There is a slight change in the structure of the test cases. The <code>self.assert*</code> statements have been replaced with plain assert statements. Please note that this causes no functional changes and the output of the test cases should remain the same.</p>
<h3>Change in the README file</h3>
<p>The README files have been updated to reflect the new command to run the tests.</p>
]]></content:encoded>
      <category>Python</category>
    </item>
    <item>
      <title>Adding Migration Support for Docs as Code Workflow</title>
      <link>https://docs.apimatic.io/changelog/migration-from-hosted-to-self-hosted-api-portal</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/migration-from-hosted-to-self-hosted-api-portal</guid>
      <pubDate>Tue, 06 Sep 2022 09:35:04 GMT</pubDate>
      <description>How to migrate from an existing portal created using UI workflow to the docs as code workflow.</description>
      <content:encoded><![CDATA[<p>You can now generate a <strong>build input</strong> for <strong>existing Portals</strong> created using the UI workflow. The build input corresponds to the published or unpublished version of the Portal and enables you to:</p>
<ol>
<li>Create a backup for the Portal. </li>
<li>Migrate from the <strong>UI workflow</strong> to the <strong>docs as code workflow</strong>.</li>
</ol>
<p>For details on description of the build input, go to <a href="https://docs.apimatic.io/platform-api/#/http/guides/generating-on-prem-api-portal/build-file">APIMatic Build Input Documentation</a>.</p>
<h2>Details</h2>
<p>APIMatic now enables you to easily migrate to the docs as code workflow from a Portal created using the UI workflow via a build input. If you are currently maintaining a Portal using the UI Workflow and want to move to the docs as code workflow, use one of the newly released API Endpoints to generate a build input that corresponds to your existing portal. </p>
<p>The generated build input can be used to re-create the Portal via the docs as code workflow. For more information on the docs as code workflow, go to the <a href="https://docs.apimatic.io/platform-api/#/http/guides/generating-on-prem-api-portal/overview-generating-api-portal">APIMatic API Documentation</a>.</p>
<p>Furthermore, you can backup the build input in a Git repository and use it to restore the Portal if anything goes wrong.</p>
<blockquote>
<p><strong>Note</strong></p>
<p>To get access to the API for generating a Portal via docs as code workflow, please contact <code>sales@apimatic.io</code>. </p>
</blockquote>
<h2>How to Migrate to the Docs as Code Workflow?</h2>
<p>You can download a build input for any Portal in your account. Copy the <strong>API Group ID</strong> for any API in the <a href="https://www.apimatic.io/dashboard">APIMatic Dashboard</a> and pass it to the <a href="https://docs.apimatic.io/platform-api/#/net-standard-library/api-endpoints/docs-portal-management/generate-build-input-for-published-portal">Generate Build Input for Published Portal Endpoint</a> or <a href="https://docs.apimatic.io/platform-api/#/net-standard-library/api-endpoints/docs-portal-management/generate-build-input-for-unpublished-portal">Generate Build Input for Unpublished Portal Endpoint</a> to download the build input.</p>
<p><img src="https://docs.apimatic.io/images/api-portal/hosted-to-self-hosted-portal.gif" alt="Gif to download the build input"></p>
]]></content:encoded>
      <category>New</category>
      <category>API Portal</category>
    </item>
    <item>
      <title>Added Support for Export of $ref Sibling Data in OpenAPI Using allOf</title>
      <link>https://docs.apimatic.io/changelog/added-export-of-ref-sibling-data-in-openapi-using-allof</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/added-export-of-ref-sibling-data-in-openapi-using-allof</guid>
      <pubDate>Mon, 29 Aug 2022 09:35:04 GMT</pubDate>
      <description>Notifies users about changes to OpenAPI export related to $ref sibling data.</description>
      <content:encoded><![CDATA[<p>APIMatic now exports any data available for a schema that also uses <code>$ref</code> to reference another schema definition, by placing the reference and the sibling data within the <code>allOf</code> construct. </p>
<h2>Details</h2>
<p>OpenAPI (v2.0, v3.0) supports the keyword <code>$ref</code> to reference pre-defined components without needing to define them again in the API specification document. It, however, does not allow any sibling properties to be included directly next to <code>$ref</code> like description, example, etc. The following is, therefore, invalid:</p>
<pre><code>  properties:
    pet:
      $ref: &#39;#/components/schemas/Pet&#39;
      description: Describes a pet.
</code></pre>
<p>For such cases, wrapping schema information in <code>allOf</code> is recommended instead. APIMatic export feature will now also use <code>allOf</code> to export schema definitions that use <code>$ref</code> and also contain additional information like example, description, xml attributes, etc. e.g. the above case will now be exported as:</p>
<pre><code>  properties:
    pet:
      allOf:
      - $ref: &#39;#/components/schemas/Pet&#39;
      - description: Describes a pet.
</code></pre>
<p>If the schema definition contains <code>$ref</code> but does not contain any sibling data that requires to be added, then the schema definition is exported as before:</p>
<pre><code>  properties:
    pet:
      $ref: &#39;#/components/schemas/Pet&#39;
</code></pre>
<h2>How to Avoid Changes to Output?</h2>
<p>If you wish to avoid these changes, you can configure the export process as described <a href="https://docs.apimatic.io/manage-apis/export-api/#configuring-export">here</a> and set the export setting <code>AddRefSiblingDataInAllOfSchema</code> to <code>false</code>.</p>
]]></content:encoded>
      <category>Improvement</category>
      <category>$ref</category>
      <category>OpenAPI</category>
      <category>Swagger</category>
    </item>
    <item>
      <title>Added Support for Read-Only and Write-Only Field Properties in API Portal</title>
      <link>https://docs.apimatic.io/changelog/added-support-for-readonly-writeonly-tags</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/added-support-for-readonly-writeonly-tags</guid>
      <pubDate>Thu, 04 Aug 2022 00:00:00 GMT</pubDate>
      <description>Shows tags for readonly and writeonly in API Developer portal</description>
      <content:encoded><![CDATA[<p>​
We have added support of read-only and write-only properties in the API Developer Portal. The read-only and write-only tags have been changed to <em>Response Only</em> and <em>Request Only</em> respectively. </p>
<h2>Details</h2>
<p>​</p>
<h3>What does Response Only mean?</h3>
<p>Declaring the property as <em>Response Only</em> means that it <strong>may</strong> be sent as a part of the response but <strong>should not</strong> be sent as part of the request. If the <em>Response Only</em> property is marked as true and is in the required list, the specified action takes effect on the response only. </p>
<h3>What does Request Only mean?</h3>
<p>Declaring the property as <em>Request Only</em> means that it <strong>may</strong> be sent as a part of the request but <strong>should not</strong> be sent as a part of the response. If the <em>Request Only</em> property is marked as true and is in the required list, the specified action takes effect on the request only.</p>
<blockquote>
<p><strong>Note</strong></p>
<p>A property <strong>MUST NOT</strong> be marked true for both <em>Response Only</em> and <em>Request Only</em>. 
​</p>
</blockquote>
<h2>What&#39;s Changed?</h2>
<h3>API Code Playground</h3>
<p>On the API Code Playground, the <em>Response Only</em> properties are hidden. This basically means that the property that is marked as <em>Response Only</em> will not be visible in the Playground.</p>
<p><img src="https://docs.apimatic.io/images/changelog/response-only-api-code-playground.png" alt="API Code Playground"></p>
<h3>Models/Fields Reference Page</h3>
<p>On the Models/Fields reference in the API Portal, the <em>Response Only</em> and <em>Request Only</em> tags indicate the user about the field in the model as either Response Only or Request Only. </p>
<p><strong>Request Only:</strong></p>
<p><img src="https://docs.apimatic.io/images/changelog/request-only.png" alt="Request Only"></p>
<p><strong>Response Only:</strong></p>
<p><img src="https://docs.apimatic.io/images/changelog/response-only.png" alt="Response Only"></p>
]]></content:encoded>
      <category>New</category>
      <category>API Portal</category>
    </item>
    <item>
      <title>Introducing Discriminator Configuration using the API Portal</title>
      <link>https://docs.apimatic.io/changelog/added-support-for-discriminator-in-portal</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/added-support-for-discriminator-in-portal</guid>
      <pubDate>Thu, 07 Jul 2022 00:00:00 GMT</pubDate>
      <description>We have provided the Discriminator support via the API portal.</description>
      <content:encoded><![CDATA[<p>We have provided the Discriminator support via the API portal.</p>
<h2>Details</h2>
<p>Discriminator is used to differentiate between a parent model and the model to be inherited from the parent. A discriminator is a specific object in a schema used to inform the consumer of the API with an alternative schema based on the value associated with it. </p>
<p>We already support discriminator using our SDKs to determine which class object to deserialize the server response into. However, we have now provided support for discriminator in our API developer portal. </p>
<p>In this release, support is added in the API Code Playground to select the required model which populates the discriminator value automatically.</p>
<p><img src="https://docs.apimatic.io/images/changelog/api-playground.png" alt="API Playground Model"></p>
<p>The model documentation page has been updated to show complete information related to inheritance-based discriminator. Following changes have been made on the &quot;Model&quot; page:</p>
<ul>
<li>Parent model shows all child types.</li>
<li>Discriminator field is shown with the value mapping for the field. </li>
<li>View the fields inherited from parent classes in accordance.</li>
<li>Model schema is improved to show a single schema for inherited models.</li>
</ul>
<p><img src="https://docs.apimatic.io/images/changelog/model-page-discriminator.png" alt="Discriminator field in model"></p>
<p><img src="https://docs.apimatic.io/images/changelog/model-page-fields-discriminator.png" alt="Model page for discriminator"></p>
<h2>What is Inheritance Based Discriminator</h2>
<p>The inheritance model deals with schemas that share common properties. Instead of defining these properties individually for each schema, a single model can be assigned as a combination of the common properties to avoid repetition. This process is defined as inheritance. Discriminator is the keyword that helps consumers discriminate an object type. The purpose of using a discriminator is to describe the objects distinctly as the discriminator explicitly declares which property can be inspected to determine the object type.</p>
]]></content:encoded>
      <category>Descriminator</category>
      <category>API Portal</category>
    </item>
    <item>
      <title>Added Support for Read-Only and Write-Only Properties in API Transformer</title>
      <link>https://docs.apimatic.io/changelog/added-support-for-read-only-write-only-properties-in-api-transformer</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/added-support-for-read-only-write-only-properties-in-api-transformer</guid>
      <pubDate>Mon, 20 Jun 2022 09:35:04 GMT</pubDate>
      <description>Notifies users about Transformer release for support of read-only and write-only properties.</description>
      <content:encoded><![CDATA[<p>We are pleased to announce support for read-only and write-only properties in API Transformer which is one of the commonly used features of OpenAPI specification documents (v2.0 and above).</p>
<h2>Details</h2>
<p>OpenAPI (<code>v2.0</code> and above) supports marking schema properties as read-only or write-only. This means that if a schema definition is referenced by parameters and responses, the properties marked as read-only or write-only are intended to work differently for both cases. For a parameter, the read-only properties of a schema should be ignored even if they are marked as required. Similarly, for a response, the write-only properties should be ignored even if they are marked as required.</p>
<p>We have added support for such properties in API Transformer. A breakdown of our support is given below:</p>
<h3>OpenAPI <code>v3.0</code> and <code>v3.1</code></h3>
<p>Transformation from or to OpenAPI <code>v3.x</code> documents will preserve information of read-only and write-only properties.</p>
<h3>OpenAPI/Swagger <code>v2.0</code></h3>
<p>Transformation from or to OpenAPI <code>v2.0</code> documents will preserve information of read-only properties. Note, that OpenAPI <code>v2.0</code> standard does not support write-only properties.</p>
<h3>Postman Collection and Insomnia</h3>
<p>Export of Postman Collections and Insomnia files largely involve export of sample values for request parameters and responses. The following changes have been made to the export of sample values:</p>
<ul>
<li>Sample value auto-generation will not include read-only properties in parameter samples and write-only properties in response level samples. </li>
<li>Existing samples at parameter level provided in the input specification document (e.g. OpenAPI) will be exported as is. However, any examples provided globally at schema level will no longer be exported for parameter level for risk of containing any read-only properties.</li>
<li>Existing samples at response level provided in the input specification document (e.g. OpenAPI) will be exported as is. However, any examples provided globally at schema level will no longer be exported for response level for risk of containing any write-only properties.</li>
</ul>
<h3>API Specification Document Validation</h3>
<p>Following additional checks have been added to the validation performed during transformation as part of the read-only, write-only properties&#39; support:</p>
<ul>
<li><a href="https://docs.apimatic.io/rulesets/apimatic-preliminary-validation/field-read-only-and-write-only-mutual-exclusiveness/">A property can either be marked as read-only or write-only but not both.</a></li>
<li><a href="https://docs.apimatic.io/rulesets/apimatic-docs-linting/no-read-only-property-in-parameter-example/">A parameter example must not contain any read-only property.</a></li>
<li><a href="https://docs.apimatic.io/rulesets/apimatic-docs-linting/no-write-only-property-in-response-example/">A response example must not contain any write-only property.</a></li>
</ul>
]]></content:encoded>
      <category>New</category>
      <category>OpenAPI</category>
      <category>API Transformer</category>
    </item>
    <item>
      <title>Enabling DX Analytics for All Team Members Within the API Portal</title>
      <link>https://docs.apimatic.io/changelog/enabling-dx-analytics-for-all-team-members-api-portal</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/enabling-dx-analytics-for-all-team-members-api-portal</guid>
      <pubDate>Mon, 20 Jun 2022 09:35:04 GMT</pubDate>
      <description>DX analytics can now be tracked by the whole team.</description>
      <content:encoded><![CDATA[<p>Access to <strong>DX Analytics</strong> is no longer restricted to API Owners, the entire team can now track the performance of their API Portal.</p>
<h2>Details</h2>
<p>APIMatic’s API Portal enables users to track important data points which can help measure the ROI(return on investment) of all API Documentation and Developer Experience efforts. These include metrics like <code>Popular Pages</code>, <code>SDK Downloads</code> and <code>Time to Hello World</code> (the amount of time taken from Documentation discovery to first API call). Read more about DX Analytics from the <a href="https://www.apimatic.io/blog/2021/10/introducing-api-developer-experience-analytics/">Introducing API Developer Experience Analytics Blog</a> </p>
<p>Access to DX Analytics has so far been restricted to API owners - the users who initially created an API Portal. However, a large number of customers use APIMatic’s collaboration capabilities to build and maintain their API Portal as a team. We believe that every member of the team should have access to analytics data to quantify the impact of their efforts.</p>
<p>Therefore we are opening up access to DX Analytics for all team members.</p>
<h2>How to Access DX Analytics for the API Portal?</h2>
<p>You can view analytics for your API Portal by clicking on <code>DX Analytics</code> in your APIMatic Dashboard and selecting your Portal in the left sidebar. </p>
<p>In case you have not published an API Portal yet, but want to get a sense of what your Portal’s Analytics will look like, we have provided some sample data for you to play with.	</p>
<p><img src="https://docs.apimatic.io/images/analytics-dashboard/dx-analytics-gif.gif" alt="DX Analytics Gif"></p>
]]></content:encoded>
      <category>Improvement</category>
    </item>
    <item>
      <title>Adding Support for Persistent Connections in Ruby SDK</title>
      <link>https://docs.apimatic.io/changelog/persistent-http-in-ruby-sdk</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/persistent-http-in-ruby-sdk</guid>
      <pubDate>Fri, 17 Jun 2022 00:00:00 GMT</pubDate>
      <description>Previously, our Ruby SDKs were initiating a new connection for each API call. Now, we have made this HTTP connection persistent. Using persistent request allows all server requests to be made through one connection, consequently reducing network latency.</description>
      <content:encoded><![CDATA[<p>Previously, our Ruby SDKs were initiating a new connection for each API call. Now, we have made this HTTP connection persistent. Using persistent request allows all server requests to be made through one connection, consequently reducing network latency. </p>
<h2>Details</h2>
<p>We now support persistent connections in Ruby SDK. To support persistent connection by default, we have changed the default adapter <code>net_http</code> to <code>net_http_persistent</code>. The details of this <code>net_http_persistent</code> adapter can be found <a href="https://github.com/lostisland/faraday-net_http_persistent">here</a>.</p>
<p>Here are the configuration changes that reflect HTTP connection calls. </p>
<h3>Client</h3>
<pre><code class="language-ruby">def initialize(connection: nil, adapter: :net_http_persistent, timeout: 60,
                   max_retries: 0, retry_interval: 1, backoff_factor: 2,
                   retry_statuses: [408, 413, 429, 500, 502, 503, 504, 521, 522,    524],
                   retry_methods: %i[get put],
                   environment: Environment::TESTING, port: &#39;80&#39;,
                   suites: SuiteCode::HEARTS, config: nil)
</code></pre>
<h3>Configuration</h3>
<pre><code class="language-ruby">def initialize(connection: nil, adapter: :net_http_persistent, timeout: 60,
                   max_retries: 0, retry_interval: 1, backoff_factor: 2,
                   retry_statuses: [408, 413, 429, 500, 502, 503, 504, 521, 522, 524],
                   retry_methods: %i[get put],
                   environment: Environment::TESTING, port: &#39;80&#39;,
                   suites: SuiteCode::HEARTS)
</code></pre>
]]></content:encoded>
      <category>New</category>
      <category>Ruby</category>
    </item>
    <item>
      <title>Introducing Persistent HTTP Connections in Unirest for PHP</title>
      <link>https://docs.apimatic.io/changelog/persistent-http-unirest-in-php-sdk</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/persistent-http-unirest-in-php-sdk</guid>
      <pubDate>Wed, 15 Jun 2022 00:00:00 GMT</pubDate>
      <description>Previously, our PHP SDKs were initiating a new connection for each API call. Now, we have made HTTP connections persistent in Unirest for PHP SDK. Using persistent request allows all server requests to be made through one connection.</description>
      <content:encoded><![CDATA[<p>Previously, our PHP SDKs were initiating a new connection for each API call. Now, we have made HTTP connections persistent in Unirest for PHP SDK. Using persistent request allows all server requests to be made through one connection. </p>
<h2>Details</h2>
<p>Whenever a new HTTP connection is initiated from either the server or the client side, it has to follow some protocols, for seamless communication. These protocols provide multiple benefits, for example, TCP enables reliable communication between two endpoints. </p>
<p>But there is of course a downside to protocols. With every good protocol that provides reliability, there comes communication overhead. The number of handshakes we need to make at the start, and consequently while closing the connection can significantly lower the latency and congest the network being used.
That is what a persistent connection helps us avoid: </p>
<ul>
<li>It initiates the connection once</li>
<li>Makes the necessary handshakes with the server</li>
<li>Then uses the same connection for subsequent requests</li>
</ul>
<p>Thereby avoiding any further handshakes till connection closure.</p>
<p>Previously, this behavior was missing in our PHP SDKs and we had to create a new connection for each API call.</p>
<h2>What Has Changed?</h2>
<p>Now, we are introducing persistent HTTP connections in our PHP SDKs. For example, if we create a client for our public <a href="https://www.apimatic.io/apidocs/apimatic-calculator">Calculator API</a> using PHP SDK and set some default values:</p>
<pre><code class="language-php">$client = new CalcClient();

$controller = $client-&gt;getSimpleCalculator();

$operation = OperationTypeEnum::MULTIPLY;
$collect[&#39;operation&#39;] = $operation;

$collect[&#39;x&#39;] = 2;

$collect[&#39;y&#39;] = 3;
</code></pre>
<p>Then send a call to the <code>getCalculate</code> endpoint:</p>
<pre><code class="language-php">$controller-&gt;getCalculate($collect);
</code></pre>
<p>As this is the first call, a new connection will be created. Now, we make a second call with some different parameters like this:</p>
<pre><code class="language-php">$collect[&#39;x&#39;] = 4;

$collect[&#39;y&#39;] = 5;

$controller-&gt;getCalculate($collect);
</code></pre>
<p>This time, no new connection will be created. In fact, the connection created with the server for the last request will be reused, hence saving the network time of protocol handshakes.</p>
<p>If you want to close the connection after a request, pass the header <code>Connection: close</code> with your request. To demonstrate this behavior, let us take another API <code>ConnectionAPI</code> as an example:</p>
<pre><code class="language-php">$client = new ConnectionClient();

$controller = $client-&gt;getHeadersController();

$connectionHeader = &#39;close&#39;;

$controller-&gt;sendRequest($connectionHeader);
</code></pre>
<p>The above <code>sendRequest()</code> API call will send a header with key <code>Connection</code> and value <code>close</code> in the request. Most servers will also return the same header along with response. This will close the current connection, and a new connection will be created for the next API call.</p>
]]></content:encoded>
      <category>Feature</category>
      <category>PHP</category>
    </item>
    <item>
      <title>Introducing APIMatic Proxy 2.0 for Self-hosted Portals and XML Calls</title>
      <link>https://docs.apimatic.io/changelog/added-support-for-proxy-server</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/added-support-for-proxy-server</guid>
      <pubDate>Thu, 09 Jun 2022 00:00:00 GMT</pubDate>
      <description>We have enhanced the support to call API endpoints via the APIMatic Proxy for API Portals.</description>
      <content:encoded><![CDATA[<p>We have enhanced the support to call API endpoints via the APIMatic Proxy for API Portals. </p>
<h2>Details</h2>
<p>The new APIMatic Proxy 2.0 has been deployed for all customers who had the API Proxy enabled for their API Portals. The new Proxy reduces the response times for all API calls made through the API Playground when using the API Portal. Besides that, there are some new features as well:</p>
<ul>
<li>APIMatic Proxy 2.0 now supports <strong>XML</strong> based API calls. Previously, we were only supporting <strong>JSON</strong> based API calls. </li>
<li>APIMatic Proxy 2.0 can now be used with the <a href="https://docs.apimatic.io/platform-api/#/http/guides/generating-on-prem-api-portal/overview-generating-api-portal">Self-Hosted API Portals</a>. You can enable the Proxy in the <a href="https://docs.apimatic.io/platform-api/#/http/guides/generating-on-prem-api-portal/build-file">Build file</a> like this when generating a new API Portal:<pre><code class="language-json">&quot;generatePortal&quot;: {
    &quot;portalSettings&quot;: {
        &quot;useProxyForConsoleCalls&quot;: true
    }
}
</code></pre>
</li>
</ul>
<h2>When should I use the APIMatic Proxy?</h2>
<p>Our API Portal has the ability to call API endpoints via the API Playground. However most APIs do not support <strong>Cross-Origin Resource Sharing (CORS)</strong> which requires them to be handled indirectly via a server. The API Playground makes these calls using a proxy hosted at APIMatic which enables the API Playground to work for most of the APIs regardless of browser limitations. </p>
<p>Making API calls from browsers using CORS places additional restrictions on the headers that can be sent in request and received in response. If these limitations are a problem, we suggest relying on APIMatic&#39;s proxy.</p>
]]></content:encoded>
      <category>Enhancement</category>
      <category>Proxy 2.0</category>
      <category>API Portal</category>
    </item>
    <item>
      <title>Enable/Disable Retries per Endpoint for any HTTP Method</title>
      <link>https://docs.apimatic.io/changelog/retries-for-endpoints-with-idempotent-non-idempotent-http-methods</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/retries-for-endpoints-with-idempotent-non-idempotent-http-methods</guid>
      <pubDate>Sun, 29 May 2022 00:00:00 GMT</pubDate>
      <description>By default, our SDKs support retries for idempotent HTTP requests only. A flag is added at endpoint level which, when enabled, allows retries for non-idempotent HTTP requests as well.</description>
      <content:encoded><![CDATA[<p>By default, our SDKs support retries for idempotent HTTP requests only. A flag is added at endpoint level which, when enabled, allows retries for non-idempotent HTTP requests as well.</p>
<h2>Details</h2>
<p>Previously, the only way to retry non-idempotent HTTP methods was to add the HTTP methods that needed to be retried to the “Http methods to retry” list. This enabled SDK to retry for all the requests with the specified HTTP methods. While this covered handful of scenarios, there were cases where only certain endpoints needed to be retried regardless of their HTTP methods.</p>
<p>To address this, a Boolean setting <code>forceRetries</code> is introduced in <code>x-operation-settings</code> property defined per endpoint.</p>
<pre><code class="language-json">&quot;paths&quot;: {
    &quot;/pets&quot;: {
        &quot;post&quot;: {
            ...
            &quot;operationId&quot;: &quot;addPet&quot;,        
            &quot;x-operation-settings&quot;: {
                ...
                &quot;forceRetries&quot;: true
            }
        }
    }
}
</code></pre>
<p>When <code>forceRetries</code> is set to true, the SDKs can force retry an endpoint regardless of whether it is idempotent or not. If false, the endpoints will not be retried. By default, only idempotent endpoints are retried.</p>
<p>This is the behavior for all of the SDKs with the exception of Ruby where there is a slight deviation. At endpoint level, <code>forceRetries</code> with null and false values will have the same behavior i.e will not have any impact on the existing behavior of retries. In case of <code>forceRetries</code> being true, the endpoint with any http method will be retried irrespective of HTTPMethod allowlist.</p>
]]></content:encoded>
      <category>New</category>
      <category>Typescript</category>
    </item>
    <item>
      <title>JSON Object Type Support in SDKs</title>
      <link>https://docs.apimatic.io/changelog/adding-json-type-support-sdk</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/adding-json-type-support-sdk</guid>
      <pubDate>Sun, 29 May 2022 00:00:00 GMT</pubDate>
      <description>We have added support for a new JSON Object type in all our SDKs.</description>
      <content:encoded><![CDATA[<p>We have added support for a new JSON Object type in all our SDKs.</p>
<h2>Details</h2>
<p>Previously, we were treating all object types as any types in the SDK. Now, a CodeGen setting <code>enableJsonPassThroughForAny</code> is introduced that allows types to be either <code>Any</code> or <code>JsonObject</code>.</p>
<p>If the schema is defined in the following form, it will be treated as <code>Any</code> type in the SDKs.</p>
<pre><code class="language-json">&quot;schemas&quot;:{
  &quot;Any&quot;:{
    
  }
}
</code></pre>
<p><code>Any</code> types take following equivalent types in the SDKs. </p>
<table>
<thead>
<tr>
<th>Language</th>
<th>Type</th>
</tr>
</thead>
<tbody><tr>
<td>Java</td>
<td>JsonValue</td>
</tr>
<tr>
<td>C#</td>
<td>JsonValue</td>
</tr>
<tr>
<td>TypeScript</td>
<td>unknown</td>
</tr>
<tr>
<td>PHP</td>
<td>mixed</td>
</tr>
<tr>
<td>Python</td>
<td>object</td>
</tr>
<tr>
<td>Ruby</td>
<td>Object</td>
</tr>
</tbody></table>
<p>If the schema is defined in the following form, it will be treated as <code>JSONObject</code> type in the SDKs.</p>
<pre><code class="language-json">&quot;schemas&quot;:{
  &quot;JsonObject&quot;:{
    &quot;type&quot;:&quot;object&quot;
  }
}
</code></pre>
<p><code>JSON Object</code> types take following equivalent types in the SDKs.</p>
<table>
<thead>
<tr>
<th>Language</th>
<th>Type</th>
</tr>
</thead>
<tbody><tr>
<td>Java</td>
<td>JsonObject</td>
</tr>
<tr>
<td>C#</td>
<td>JsonObject</td>
</tr>
<tr>
<td>TypeScript</td>
<td>Record&lt;string, unknown&gt;</td>
</tr>
<tr>
<td>PHP</td>
<td>mixed</td>
</tr>
<tr>
<td>Python</td>
<td>dict</td>
</tr>
<tr>
<td>Ruby</td>
<td>Hash</td>
</tr>
</tbody></table>
]]></content:encoded>
      <category>New</category>
    </item>
    <item>
      <title>Adding Support for Optional and Nullable Fields in a Model in Python SDKs</title>
      <link>https://docs.apimatic.io/changelog/adding-support-optional-nullable-fields-python-sdk</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/adding-support-optional-nullable-fields-python-sdk</guid>
      <pubDate>Wed, 25 May 2022 00:00:00 GMT</pubDate>
      <description>Fields of a custom type can now differentiate between a nullable value and a missing value and will operate accordingly.</description>
      <content:encoded><![CDATA[<p>In the improved Python SDK, fields of a custom type can now differentiate between a nullable value and a missing value and will operate according to the behavior of the type specified. This way you can either pass a value that corresponds to the type specified, use <code>null</code> as a value or skip the field altogether depending upon the defined behavior of the field. </p>
<h2>Details</h2>
<p>We are delighted to announce support for optional and nullable <strong>fields within custom types</strong> in Python SDKs. <strong>Fields of custom type</strong> can be marked as <code>nullable</code> and <code>optional</code> based on what the intended behavior is for that particular field. </p>
<p>A property marked as <code>optional</code> means that the user can either pass the value that conforms with the type specified or can skip that value altogether. Whereas, if a field is marked as <code>nullable</code>, then the user can either pass the value that corresponds to the type defined or use a nullable value. 
Other combinations are also possible using this flag, which will be discussed later in the changelog. </p>
<h3>What was Supported Before?</h3>
<p>Previously, the Python SDK didn&#39;t support <code>optional</code> or <code>nullable</code> flags for the fields of a model. Both these flags were equally treated, meaning if either one of the flags was true for any field of a model, it would be treated as a nullable value. Hence null value was accepted in either case. </p>
<h3>What has Changed?</h3>
<h4>Functionality of fields within custom type</h4>
<p>Now the latest Python SDK respects the Optional and Nullable settings in their true form. The table below shows how the optional and nullable settings affect the serialization of different values:</p>
<table>
<thead>
<tr>
<th><!-- --></th>
<th>Nullable = true</th>
<th>Nullable = false</th>
</tr>
</thead>
<tbody><tr>
<td>Optional = true</td>
<td><ul><li>Key can be ignored</li><li>key can have null as value</li><li>Key can have a valid value</li></ul> <code>{}</code>, <code>{&quot;key&quot;:value}</code>, <code>{&quot;key:null}</code></td>
<td><ul><li>Key can be ignored</li><li>Key cannot have null as value</li></ul> <code>{}</code>, <code>{&quot;key&quot;:value}</code></td>
</tr>
<tr>
<td>Optional = false (required)</td>
<td><ul><li>Key cannot be ignored</li><li>Key can have null as value</li></ul> <code>{&quot;key&quot;:value}</code>, <code>{&quot;key&quot;:null}</code></td>
<td><ul><li>Key cannot be ignored</li><li>Key cannot have null value</li></ul> <code>{&quot;key&quot;:value}</code></td>
</tr>
</tbody></table>
<ul>
<li>Optional means that if no value is provided, then it should be ignored during serialization. </li>
<li>Non-Optional (required) means that the key has to be included in JSON irrespective of the value. </li>
<li>Nullable means that value of the key can be null. </li>
<li>Non-Nullable means that value of the key cannot be null.</li>
</ul>
<h4>Current changed behavior in Python</h4>
<ul>
<li><p><strong>Optional = true, Nullable = true</strong>
An uninitialized field will be ignored in JSON during serialization. And if a proper value is assigned, then it will not be ignored.</p>
</li>
<li><p><strong>Optional = true, Nullable = false</strong>
An uninitialized field will be ignored in JSON during serialization. And if a proper value is assigned, then it is not ignored. A nullable value will throw an error. </p>
</li>
<li><p><strong>Optional = false, Nullable = true</strong>
Field must be included in JSON representation and it can have null its value. </p>
</li>
<li><p><strong>Optional = false, Nullable = false</strong>
Field must be included in JSON representation and it cannot have null as a value. In case of a missing or null value, an exception will be thrown. </p>
</li>
<li><p><strong>Changes in Oneof and Anyof Model fields</strong>
Another noticeable change introduced is the support for optional and nullable fields with custom types using <code>oneOf</code> and <code>anyOf</code> keywords. For example, if a value of a field can be one of the custom types <code>Morning</code> or <code>Evening</code>, then the Python SDK should accept either of the two incoming values exactly matching one of the schemas. However, if a field is marked as both <code>optional</code> and <code>nullable</code>, then this means: </p>
</li>
<li><p>An incoming null value is acceptable because the <code>nullable</code> flag is true</p>
</li>
<li><p>Field could be missing altogether because the <code>optional</code> flag is true</p>
</li>
</ul>
<p>This is how the API specification looks like for the example explained in APIMatic format:</p>
<pre><code class="language-json">{
      &quot;Name&quot;: &quot;SimpleCase&quot;,
      &quot;ImplementationType&quot;: &quot;Structure&quot;,
      &quot;Description&quot;: &quot;This class contains simple case of oneOf.&quot;,
      &quot;Fields&quot;: [
        {
          &quot;Optional&quot;: true,
          &quot;OneOfTypes&quot;: [
            {
              &quot;Type&quot;: &quot;Morning&quot;,
              &quot;IsSdlNativeType&quot;: false,
              &quot;Constant&quot;: false,
              &quot;DefaultValue&quot;: &quot;&quot;,
              &quot;Nullable&quot;: false,
              &quot;IsArray&quot;: false,
              &quot;IsMap&quot;: false,
              &quot;IsArrayOfMap&quot;: false
            },
            {
              &quot;Type&quot;: &quot;Evening&quot;,
              &quot;IsSdlNativeType&quot;: false,
              &quot;Constant&quot;: false,
              &quot;DefaultValue&quot;: &quot;&quot;,
              &quot;Nullable&quot;: false,
              &quot;IsArray&quot;: false,
              &quot;IsMap&quot;: false,
              &quot;IsArrayOfMap&quot;: false
            }
          ],
          &quot;Type&quot;: &quot;Object&quot;,
          &quot;IsSdlNativeType&quot;: true,
          &quot;Constant&quot;: false,
          &quot;IsStream&quot;: false,
          &quot;IsAttribute&quot;: false,
          &quot;Attributes&quot;: {},
          &quot;Nullable&quot;: true,
          &quot;IsArray&quot;: false,
          &quot;IsMap&quot;: false,
          &quot;IsArrayOfMap&quot;: false,
          &quot;Deprecated&quot;: false,
          &quot;Name&quot;: &quot;session&quot;,
          &quot;Description&quot;: &quot;Course session&quot;,
          &quot;DefaultValue&quot;: &quot;&quot;
        }
      ],
      &quot;Deprecated&quot;: false
    }
</code></pre>
<p>The accepted values for this schema are:</p>
<pre><code class="language-json">{
  &quot;session&quot;: {
    &quot;startsAt&quot;: &quot;startsAt9&quot;,
    &quot;endsAt&quot;: &quot;endsAt9&quot;,
    &quot;offerLunch&quot;: true
  }
}
</code></pre>
<p>Or:</p>
<pre><code class="language-json">{
  &quot;session&quot;: {
    &quot;startsAt&quot;: &quot;startsAt9&quot;,
    &quot;endsAt&quot;: &quot;endsAt9&quot;,
    &quot;offerDinner&quot;: true
  }
}
</code></pre>
<p>Or:</p>
<pre><code class="language-json">{  &quot;session&quot;: null
}
</code></pre>
<p>Or, in case the <code>optional</code> field is missing:</p>
<pre><code class="language-json">{ }
</code></pre>
<h4>Changes in Deserialization of Custom Types</h4>
<p>The support for <code>optional</code> and <code>nullable</code> settings has also changed the behavior of how the fields of a custom type are deserialized into their respective types. Previously, <code>optional</code> and <code>nullable</code> properties were treated in a similar manner. This means that if a value for a certain field was missing, it would automatically be initialed with the value <code>None</code>. And if a <code>nullable</code> value was missing, it would also be initialized as <code>None</code>. However with the latest changes, if an optional field&#39;s value is missing, that property will not be initialized in the model.</p>
]]></content:encoded>
      <category>New</category>
      <category>Python</category>
    </item>
    <item>
      <title>Adding Support for Optional/Required Properties for oneOf and anyOf in Java SDKs</title>
      <link>https://docs.apimatic.io/changelog/adding-support-optional-required-properties-oneof-anyof-java-sdks</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/adding-support-optional-required-properties-oneof-anyof-java-sdks</guid>
      <pubDate>Fri, 20 May 2022 00:00:00 GMT</pubDate>
      <description>OAS allows you to set optional/required properties in models. While serializing a model, optional properties will be omitted if the value of property is not set (i.e. initialized with null) and, required properties will be serialized in any case. This is a case of factoring sc...</description>
      <content:encoded><![CDATA[<p>OAS allows you to set <code>optional/required</code> properties in models. While serializing a model, optional properties will be omitted if the value of property is not set (i.e. initialized with null) and, required properties will be serialized in any case. This is a case of factoring schema in <code>oneOf/anyOf</code>. Now with this support, you can define properties with the same names but with different optional/required constraints in <code>request/response</code> of an endpoint.</p>
<h2>Details</h2>
<p>Below is an example of two models with same property names but different optional/required constraints defined in an OpenAPI specification.</p>
<pre><code>&quot;Dog&quot;: {
  &quot;title&quot;: &quot;Dog&quot;,
  &quot;required&quot;: [
    &quot;bark&quot;,
    &quot;age&quot;
  ],
  &quot;type&quot;: &quot;object&quot;,
  &quot;properties&quot;: {
    &quot;bark&quot;: {
      &quot;type&quot;: &quot;boolean&quot;
    },
    &quot;age&quot;: {
      &quot;type&quot;: &quot;integer&quot;,
      &quot;format&quot;: &quot;int32&quot;
    },
    &quot;cute&quot;: {
      &quot;type&quot;: &quot;boolean&quot;
    },
    &quot;breed&quot;: {
      &quot;type&quot;: &quot;string&quot;,
      &quot;nullable&quot;: true
    }
  },
  &quot;description&quot;: &quot;A model with 2 required properties: bark, age\n and 2 optional properties: cute, breed&quot;
}
</code></pre>
<pre><code>&quot;Cat&quot;: {
  &quot;title&quot;: &quot;Cat&quot;,
  &quot;required&quot;: [
    &quot;bark&quot;,
    &quot;cute&quot;
  ],
  &quot;type&quot;: &quot;object&quot;,
  &quot;properties&quot;: {
    &quot;bark&quot;: {
      &quot;type&quot;: &quot;boolean&quot;
    },
    &quot;age&quot;: {
      &quot;type&quot;: &quot;integer&quot;,
      &quot;format&quot;: &quot;int32&quot;
    },
    &quot;cute&quot;: {
      &quot;type&quot;: &quot;boolean&quot;
    },
    &quot;breed&quot;: {
      &quot;type&quot;: &quot;string&quot;,
      &quot;nullable&quot;: true
    }
  },
  &quot;description&quot;: &quot;A model with 2 required property: bark, cute and 2 optional properties: age, breed&quot;
}
</code></pre>
<p>In Java SDKs, these models will be treated as a case of factoring schema. Annotations are being used to handle them in models so developers do not need to worry about specifying anything rather just initialize the model properties as per the requirements.</p>
]]></content:encoded>
      <category>Improvement</category>
      <category>Java</category>
      <category>oneOf/anyOf</category>
    </item>
    <item>
      <title>Adding Support to Configure Adapter during Client Initialization of Ruby SDKs</title>
      <link>https://docs.apimatic.io/changelog/adding-support-to-configure-adapter-during-client-initialization-ruby-sdks</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/adding-support-to-configure-adapter-during-client-initialization-ruby-sdks</guid>
      <pubDate>Thu, 19 May 2022 00:00:00 GMT</pubDate>
      <description>APIMatic CodeGen has now added support to configure the default Faraday connection with available Faraday adapters in Ruby SDKs.</description>
      <content:encoded><![CDATA[<p>APIMatic CodeGen has now added support to configure the default <code>Faraday connection</code> with available <code>Faraday adapters</code> in Ruby SDKs.</p>
<h2>Details</h2>
<p>For this support, a new keyword <strong>adapter</strong> has been added in the client initialization. The adapters default value will be <strong>adapter: Faraday.default_adapter</strong> which can be overridden with the available adapters listed <a href="https://github.com/lostisland/awesome-faraday/#adapters">here</a>.</p>
<h2>What has Changed?</h2>
<h3>Changes in Faraday Client</h3>
<p><code>Faraday Client</code> will be configured with the <strong>adapter</strong> being passed from the Ruby SDK user shown below:</p>
<pre><code class="language-ruby">def create_connection(timeout:, max_retries:, retry_interval:,
                          backoff_factor:, retry_statuses:, retry_methods:,
                          adapter:, cache: false, verify: true)
      Faraday.new do |faraday|
        faraday.use Faraday::HttpCache, serializer: Marshal if cache
        faraday.use Faraday::FollowRedirects::Middleware
        faraday.request :gzip
        faraday.request :multipart
        faraday.request :url_encoded
        faraday.ssl[:ca_file] = Certifi.where
        faraday.ssl[:verify] = verify
        faraday.request :retry, max: max_retries, interval: retry_interval,
                                backoff_factor: backoff_factor,
                                retry_statuses: retry_statuses,
                                methods: retry_methods,
                                retry_if: proc { |env, _exc|
                                            env.request.context[&#39;forced_retry&#39;] ||= false
                                          }
        faraday.adapter adapter
        faraday.options[:params_encoder] = Faraday::FlatParamsEncoder
        faraday.options[:timeout] = timeout if timeout.positive?
      end
    end
</code></pre>
<h3>Changes in Configuration and Client</h3>
<p>A new keyword <strong>adapter</strong> has been added in the configuration and client as well.</p>
<h4>Configuration</h4>
<pre><code class="language-ruby">def initialize(connection: nil, adapter: Faraday.default_adapter,
                timeout: 60, max_retries: 0, retry_interval: 1,
                backoff_factor: 2,
                retry_statuses: [408, 413, 429, 500, 502, 503, 504, 521, 522,524],
                retry_methods: %i[get put], environment: &#39;production&#39;,additional_headers: {})
</code></pre>
<h4>Client</h4>
<pre><code class="language-ruby">def initialize(connection: nil, adapter: Faraday.default_adapter,
                timeout: 60, max_retries: 0, retry_interval: 1,
                backoff_factor: 2,
                retry_statuses: [408, 413, 429, 500, 502, 503, 504, 521, 522, 524],
                retry_methods: %i[get put], environment: &#39;production&#39;,
                additional_headers: {}, config: nil)
</code></pre>
]]></content:encoded>
      <category>New</category>
      <category>Ruby</category>
    </item>
    <item>
      <title>Introducing API Specification Export, Error Message Enhancements in Self Hosted API Portals</title>
      <link>https://docs.apimatic.io/changelog/introducing-api-specification-export-error-message-enhancements-self-hosted-api-portal</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/introducing-api-specification-export-error-message-enhancements-self-hosted-api-portal</guid>
      <pubDate>Wed, 18 May 2022 18:42:24 GMT</pubDate>
      <description>APIMatic’s Self Hosted Portal offering has been augmented with the following enhancements:</description>
      <content:encoded><![CDATA[<p>APIMatic’s Self Hosted Portal offering has been augmented with the following enhancements:</p>
<ul>
<li>API Specification export</li>
<li>Detailed and informative exception messages</li>
<li>Ignore MacOS specific files in build input</li>
</ul>
<h2>Details</h2>
<h3>Support for API Specification Export Added</h3>
<p>APIMatic’s hosted API Portals allow the API specification to be downloaded in <a href="https://docs.apimatic.io/api-transformer/overview-transformer/#supported-input-formats">10+ different formats</a>. These specifications are auto-generated; the API owner is only required to maintain the specification in a single format. </p>
<p>With this release, this feature is also available for self hosted API portals. Use the <strong>enableExport</strong> property in the <code>APIMATIC-BUILD.json</code> file to enable this feature in your self hosted API portals as shown:</p>
<pre><code>&quot;generatePortal&quot;: {
…
  &quot;portalSettings&quot;: {
    &quot;enableExport&quot;: &quot;true&quot;
  }
} 
</code></pre>
<h3>Ignore MacOS Specific Files in Build Input</h3>
<p>While creating a zipped archive for the build input, MacOS inserts the following files and directories into the zipped archive: </p>
<ul>
<li>.DS_Store </li>
<li>_MACOSX</li>
</ul>
<p>Previously, these files caused portal generation to fail and had to be manually removed from the build input. With the new release, these files will not cause issues during portal generation, hence do not need to be removed from the build input.  </p>
<h3>Introducing Detailed Exception Messages</h3>
<p>The API used for generating self hosted portals has been improved to provide more detailed error messages in place of generic exception messages. An example is given below:</p>
<p><strong>Previous Error</strong>
<code>400 Bad Request</code></p>
<p><strong>New Error</strong>
<code>Docs generation for java not allowed by your license. Templates supported by your license are: python, ruby</code></p>
]]></content:encoded>
      <category>Improvement</category>
      <category>API Portal</category>
    </item>
    <item>
      <title>Adding Support for Multiple Authentication Schemes in Python SDKs</title>
      <link>https://docs.apimatic.io/changelog/adding-support-for-multiple-authentication-schemes-python-sdks</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/adding-support-for-multiple-authentication-schemes-python-sdks</guid>
      <pubDate>Mon, 25 Apr 2022 00:00:00 GMT</pubDate>
      <description>APIMatic announces the support for multiple authenticaion schemes in Python SDKs. With the new design, it has become quite easy to configure multiple authentication schemes per SDK. All of the auth managers are instantiated at the start during the client initialization. After...</description>
      <content:encoded><![CDATA[<p>APIMatic announces the support for multiple authenticaion schemes in Python SDKs. With the new design, it has become quite easy to configure multiple authentication schemes per SDK. All of the auth managers are instantiated at the start during the client initialization. After that their relevant auth managers can be used to apply auth schemes per endpoint as required in SDK.</p>
<h2>Details</h2>
<blockquote>
<p><strong>Warning</strong></p>
<p>Please note that the support for <strong>multiple authentication schemes</strong> is still in alpha, and some cases may not be supported at this point. Please contact <code>support@apimatic.io</code> in case of any guidance.</p>
</blockquote>
<p>Some REST APIs support several authentication types. The security section in the OpenAPI specification lets you combine the security requirements using logical <code>OR</code> and <code>AND</code> to achieve the desired result. Multiple authentication schemes can be applied per endpoint using the <code>OR</code> or <code>AND</code> combination. <code>OR</code> means to successfully apply one of the allowed authentication schemes and <code>AND</code> means to successfully apply all of those schemes for verification. OpenAPI specification allows for multiple authentication representation in security schemes as follows:</p>
<pre><code>security:    # A OR B
  - A
  - B
security:    # A AND B
  - A
    B
</code></pre>
<p>We have also improved our previous design of applying single authentication schemes on requests. Let&#39;s take a detailed look at it.</p>
<h2>What was Supported Before?</h2>
<p>Previously, all the endpoints were authenticated by applying one auth scheme throughout the SDK. Below is an example of how Python SDK used to apply a single authentication scheme to endpoints. Single authentication design included static auth managers ensuring authentication per endpoint.</p>
<pre><code class="language-python"># Prepare and execute request
_request = self.config.http_client.get(_query_url, headers=_headers)
# Apply authentication scheme on request
self.apply_auth_schemes(_request, &#39;global&#39;)

_response = self.execute_request(_request)
</code></pre>
<h2>What has Changed?</h2>
<h3>Improved Design of Single Authentication</h3>
<p>We have now accommodated one-time instantiation of auth managers during the client initialization and authentication is applied at each endpoint level where it&#39;s required through that instance. The auth credentials required for the authentication scheme have been now made a part of Configuration.</p>
<h3>Changes in Configuration</h3>
<p>The example has been taken from a Python SDK configured with <code>Custom Query</code> authentication. <code>token</code> and <code>api_key</code> are two of the credentials required for this auth scheme.</p>
<pre><code class="language-python">def __init__(
    self, http_client_instance=None,
    override_http_client_configuration=False, http_call_back=None,
    timeout=60, max_retries=0, backoff_factor=2,
    retry_statuses=[408, 413, 429, 500, 502, 503, 504, 521, 522, 524],
    retry_methods=[&#39;GET&#39;, &#39;PUT&#39;], environment=Environment.TESTING,
    port=&#39;80&#39;, suites=1, token=&#39;TODO: Replace&#39;, api_key=&#39;TODO: Replace&#39;
):
</code></pre>
<h3>Client</h3>
<p>CustomHeader AuthManager being instantiated below:</p>
<pre><code class="language-python">def initialize_auth_managers(self, config):
    self.auth_managers = { key: None for key in [&#39;global&#39;]}
    self.auth_managers[&#39;global&#39;] = CustomHeaderAuthentication(config.token, config.api_key)
    return self.auth_managers
</code></pre>
<h3>Add Support for Multiple Authentication</h3>
<p>With the new design, it has become quite easy to configure multiple authentication schemes per SDK. All of the auth managers are instantiated at the start during the client initialization. After that their relevant auth managers can be used to apply auth schemes per endpoint as required in SDK. Furthermore, the auth schemes are applied in the combination of <code>AND</code> and <code>OR</code>. Let&#39;s understand the concept with the help of an example.</p>
<h3>Example</h3>
<p>Let&#39;s take an example of an SDK supporting <code>OR</code> auth scheme combination of <code>Custom Header</code> and <code>Custom Query</code> at the same time. The SDK would have separate auth managers differentiating the flow of these auth schemes. At and endpoint level both of their auth keys will be passed as comma-separated values. The endpoint will try to authenticate using the first auth scheme i.e <code>Custom Header</code>. In case of any credential failure, it will move on to apply and validate the second auth scheme. The API call will completely fail if validation is unsuccessful for both auth schemes..</p>
<pre><code class="language-python"># Prepare and execute request
_request = self.config.http_client.get(_query_url)
# Apply authentication scheme on request
self.apply_auth_schemes(_request, &#39;apiKey&#39;, &#39;apiHeader&#39;)
 
_response = self.execute_request(_request)
</code></pre>
<p>Another example could be an <code>AND</code> auth scheme combination of <code>Basic Auth</code>, <code>Custom Header</code>, and <code>Custom Query</code> in the SDK. It is applied as a space-separated string at each endpoint as shown below. An API call using <code>AND</code> auth combination will be unsuccessful in case of invalid credentials of any applied auth scheme. To make this call successful all of the auth schemes credentials should be available during initialization.</p>
<pre><code class="language-python"># Prepare and execute request
_request = self.config.http_client.get(_query_url)
# Apply authentication scheme on request
self.apply_auth_schemes(_request, &#39;basicAuth apiKey apiHeader&#39;)
 
_response = self.execute_request(_request)
</code></pre>
]]></content:encoded>
      <category>New</category>
      <category>Python</category>
    </item>
    <item>
      <title>Dropping Support for Ruby Version 2.5 in Ruby SDKs</title>
      <link>https://docs.apimatic.io/changelog/dropping-support-for-ruby-version-in-ruby-sdks</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/dropping-support-for-ruby-version-in-ruby-sdks</guid>
      <pubDate>Fri, 15 Apr 2022 00:00:00 GMT</pubDate>
      <description>We are now dropping support for Ruby version 2.5 in Ruby SDKs. Ruby 2.5 hit EOL status on 2021-03-31 as per the official source. As a result of dropping Ruby 2.5, we are now able to relax version constraints on some of the Ruby SDKs dependencies.</description>
      <content:encoded><![CDATA[<p>We are now dropping support for <code>Ruby version 2.5</code> in Ruby SDKs. <code>Ruby 2.5</code> hit EOL status on 2021-03-31 as per the official <a href="https://www.ruby-lang.org/en/downloads/branches/">source</a>. As a result of dropping <code>Ruby 2.5</code>, we are now able to relax version constraints on some of the Ruby SDKs dependencies. </p>
<h2>What was Supported Before?</h2>
<p>Previously, the Ruby SDKs were compatible with the <code>Ruby version &gt;= 2.5</code>. Due to the supported Ruby versions, the SDKs gemspec file was adding a version constraint on the faraday gem to be (&#39;~&gt; 1.0&#39;, &#39;&gt;= 1.0.1&#39;) as shown below:</p>
<pre><code class="language-ruby">s.add_dependency(&#39;faraday&#39;, &#39;~&gt; 1.0&#39;, &#39;&gt;= 1.0.1&#39;)
s.add_dependency(&#39;faraday_middleware&#39;, &#39;~&gt; 1.0&#39;)
s.required_ruby_version = [&#39;&gt;= 2.5&#39;]
</code></pre>
<h2>What has Changed?</h2>
<p>After terminating the support for <code>Ruby 2.5</code>, we can support the <code>Faraday version (&#39;~&gt; 2.0&#39;, &#39;&gt;= 2.0.1&#39;)</code>. It is a major release and changes the way to use Faraday as an ecosystem, rather than a library. You can read more about Faraday’s library in their <a href="https://github.com/lostisland/faraday/blob/main/CHANGELOG.md#200-2022-01-04">changelog</a>. One essential thing to notice is that from now onwards, all adapters and some middleware in Faraday have moved out and are being shipped as standalone gems. Therefore, we have to incorporate those dependencies in the gemspec file shown below.</p>
<pre><code class="language-ruby">  s.add_dependency(&#39;faraday&#39;, &#39;~&gt; 2.0&#39;, &#39;&gt;= 2.0.1&#39;)
  s.add_dependency(&#39;faraday-follow_redirects&#39;, &#39;~&gt; 0.2&#39;)
  s.add_dependency(&#39;faraday-multipart&#39;, &#39;~&gt; 1.0&#39;)
  s.add_dependency(&#39;faraday-gzip&#39;, &#39;~&gt; 0.1&#39;)
  s.add_dependency(&#39;faraday-retry&#39;, &#39;~&gt; 1.0&#39;)
  s.required_ruby_version = [&#39;&gt;= 2.6&#39;]
</code></pre>
<h2>Faraday Client</h2>
<p>Ruby SDKs have further added references requiring new middleware gems in <code>FaradayClient</code> during connection initialization shown below:</p>
<pre><code class="language-ruby">require &#39;faraday/http_cache&#39;
require &#39;faraday/retry&#39;
require &#39;faraday/multipart&#39;
require &#39;faraday/follow_redirects&#39;
require &#39;faraday/gzip&#39;
</code></pre>
<pre><code class="language-ruby"># Method to initialize the connection.
def create_connection(timeout:, max_retries:, retry_interval:,
                        backoff_factor:, retry_statuses:, retry_methods:,
                        cache: false, verify: true)
    Faraday.new do |faraday|
       faraday.use Faraday::HttpCache, serializer: Marshal if cache
       faraday.use Faraday::FollowRedirects::Middleware
       faraday.request :gzip
       faraday.request :multipart
       faraday.request :url_encoded
       faraday.ssl[:ca_file] = Certifi.where
       faraday.ssl[:verify] = verify
       faraday.request :retry, max: max_retries, interval: retry_interval,
                               backoff_factor: backoff_factor,
                               retry_statuses: retry_statuses,
                               methods: retry_methods,
                               retry_if: proc { |env, _exc|
                                  env.request.context[&#39;forced_retry&#39;] ||= false 
                                  }
       faraday.adapter Faraday.default_adapter
       faraday.options[:params_encoder] = Faraday::FlatParamsEncoder
       faraday.options[:timeout] = timeout if timeout.positive?
    end
end
</code></pre>
]]></content:encoded>
      <category>Ruby</category>
      <category>SDKs</category>
    </item>
    <item>
      <title>Handling Object Type as Dictionary for oneOf and anyOf in Java SDKs</title>
      <link>https://docs.apimatic.io/changelog/adding-object-type-as-dictionary-for-oneof-anyof-java-sdks</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/adding-object-type-as-dictionary-for-oneof-anyof-java-sdks</guid>
      <pubDate>Thu, 07 Apr 2022 00:00:00 GMT</pubDate>
      <description>OpenAPI Specification allows you to add an object type in oneOf and anyOf in Java SDKs. Defining an object type means any key/value pair is accepted. Object type in Java means it can refer to any instance, as Object is the root class. Therefore, this change enforces that for a...</description>
      <content:encoded><![CDATA[<p>OpenAPI Specification allows you to add an <code>object</code> type in <code>oneOf</code> and <code>anyOf</code> in Java SDKs. Defining an <code>object</code> type means any key/value pair is accepted. <code>Object</code> type in Java means it can refer to any instance, as <code>Object</code> is the root class. Therefore, this change enforces that for any <code>object</code> type case falling under <code>oneOf</code> and <code>anyOf</code>, the Java SDK will treat it as <code>Map</code>.</p>
<h2>Details</h2>
<h3>oneOf</h3>
<p>Here is how you can define an <code>Object</code> type in <code>oneOf</code> in OpenAPI specification:</p>
<pre><code>&quot;oneOf&quot;: [
  {
	&quot;type&quot;: &quot;number&quot;
  },
  {
	&quot;type&quot;: &quot;boolean&quot;
  },
  {
	&quot;type&quot;: &quot;object&quot;
  }
]
</code></pre>
<p>In Java SDKs, the corresponding type of the <code>Object</code> will be <code>Map</code> (i.e. key/value pairs) and can be initialized with any key/value pair as shown below:</p>
<pre><code class="language-java">	Map&lt;String, Object&gt; object = new HashMap&lt;&gt;();
	object.put(&quot;key&quot;, &quot;value&quot;);
	OneOfContainer oneOfContainer = OneOfContainer.fromObject(object); // Initialized with the object case in oneOf
</code></pre>
<h3>anyOf</h3>
<p>For <code>anyOf</code>, you can define an <code>Object</code> type the same way as for <code>oneOf</code>, as shown:</p>
<pre><code>&quot;anyOf&quot;: [
  {
	&quot;type&quot;: &quot;number&quot;
  },
  {
	&quot;type&quot;: &quot;boolean&quot;
  },
  {
	&quot;type&quot;: &quot;object&quot;
  }
]
</code></pre>
<p>In Java SDKs, you can consume <code>anyOf</code> cases as explained in this code sample:</p>
<pre><code class="language-java">	Map&lt;String, Object&gt; object = new HashMap&lt;&gt;();
	object.put(&quot;key&quot;, &quot;value&quot;);
	AnyOfContainer anyOfContainer = AnyOfContainer.fromObject(object); // Initialized with the object case in anyOf
</code></pre>
]]></content:encoded>
      <category>Improvement</category>
      <category>Java</category>
      <category>oneOf/anyOf</category>
    </item>
    <item>
      <title>Introducing Support for Complex Query Parameters in PHP SDKs</title>
      <link>https://docs.apimatic.io/changelog/introducing-support-for-complex-query-parameters-php-sdks</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/introducing-support-for-complex-query-parameters-php-sdks</guid>
      <pubDate>Wed, 06 Apr 2022 00:00:00 GMT</pubDate>
      <description>PHP SDKs now support complex query parameters with which you can send a complex type as well as arrays/maps of complex types in query strings.</description>
      <content:encoded><![CDATA[<p>PHP SDKs now support complex query parameters with which you can send a complex type as well as arrays/maps of complex types in query strings.</p>
<h2>Details</h2>
<p>OpenAPI specification allows sending any kind of payload as query parameter. The following example shows how you can set the required type for any query parameter.</p>
<pre><code class="language-json">&quot;parameters&quot;: [
    {
      &quot;name&quot;: &quot;petId&quot;,
      &quot;in&quot;: &quot;query&quot;,
      &quot;description&quot;: &quot;ID of pet that needs to be updated&quot;,
      &quot;required&quot;: true,
      &quot;schema&quot;: {
        &quot;type&quot;: &quot;string&quot;
      }
    }
]
</code></pre>
<p>This payload could either be of a simple type i.e <code>string</code>, <code>boolean</code>, <code>number</code>, or could be a complex type i.e <code>model</code>, <code>array</code>, or <code>map</code>. Previously, PHP SDKs only supported simple types along with array/map of simple types but did not support complex types, array/map of complex types while sending them in query string.</p>
<h2>What has Changed?</h2>
<p>We are now introducing the support for complex query parameters. Now, PHP SDKs have the ability to send a complex type as well as arrays/maps of complex types in query strings. For example take the following model named <code>Pet</code>:</p>
<pre><code class="language-json">{
    &quot;petId&quot;: 345,
    &quot;petName&quot;: &quot;PersianCat&quot;,
    &quot;siblings&quot;: [&quot;catA&quot;, &quot;catB&quot;, &quot;catC&quot;]
}
</code></pre>
<p>This model can now be sent in query string, and the resultant decoded query string would look like:</p>
<pre><code>/sendPet?pet[petId]=345&amp;pet[petName]=PersianCat&amp;pet[siblings][0]=catA&amp;pet[siblings][1]=catB&amp;pet[siblings][2]=catC
</code></pre>
<p>APIMatic also added the support for different array serialization formats that would apply on arrays of simple types which may appear within a model. In the above given example of model <code>Pet</code>, the field <code>siblings</code> is an array of simple type i.e. <code>string</code> and it is being serialized by <code>Indexed</code> array serialization. Along with this, support for other array serialization formats like <code>Plain</code>, <code>UnIndexed</code>, <code>CommaSeparated</code>, <code>TabSeparated</code>, <code>PipeSeperated</code> has also been added. Default format is <code>Indexed</code> but one can set any of these formats in an OAS like:</p>
<pre><code class="language-json">{
  &quot;openapi&quot;: &quot;3.0.0&quot;,
  &quot;info&quot;: {
    &quot;x-codegen-settings&quot;: {
        &quot;ArraySerialization&quot;: &quot;Plain&quot;
    }
  }
</code></pre>
<p>Lets take the same model and try applying other array serialization formats.</p>
<h3>Plain Array Serialization</h3>
<pre><code>/sendPet?pet[petId]=345&amp;pet[petName]=PersianCat&amp;pet[siblings]=catA&amp;pet[siblings]=catB&amp;pet[siblings]=catC
</code></pre>
<h3>UnIndexed Array Serialization</h3>
<pre><code>/sendPet?pet[petId]=345&amp;pet[petName]=PersianCat&amp;pet[siblings][]=catA&amp;pet[siblings][]=catB&amp;pet[siblings][]=catC
</code></pre>
<h3>CommaSeparated Array Serialization</h3>
<pre><code>/sendPet?pet[petId]=345&amp;pet[petName]=PersianCat&amp;pet[siblings]=catA,catB,catC
</code></pre>
<h3>TabSeparated Array Serialization</h3>
<pre><code>/sendPet?pet[petId]=345&amp;pet[petName]=PersianCat&amp;pet[siblings]=catA\tcatB\tcatC
</code></pre>
<h3>PipeSeparated Array Serialization</h3>
<pre><code>/sendPet?pet[petId]=345&amp;pet[petName]=PersianCat&amp;pet[siblings]=catA|catB|catC
</code></pre>
]]></content:encoded>
      <category>New</category>
      <category>PHP</category>
    </item>
    <item>
      <title>Adding Support for Nullable Types in oneOf and anyOf in Java SDKs</title>
      <link>https://docs.apimatic.io/changelog/adding-support-for-nullable-types-in-oneof-anyof-java-sdks</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/adding-support-for-nullable-types-in-oneof-anyof-java-sdks</guid>
      <pubDate>Fri, 01 Apr 2022 00:00:00 GMT</pubDate>
      <description>OAS allows marking properties as nullable, but previously this flag was not being respected in the Java SDK where oneOf/anyOf was being used. Now with this release, the Java SDK fully respects the nullable attribute during serialization &amp; deserialization for oneOf/anyOf proper...</description>
      <content:encoded><![CDATA[<p>OAS allows marking properties as nullable, but previously this flag was not being respected in the Java SDK where <code>oneOf/anyOf</code> was being used. Now with this release, the Java SDK fully respects the nullable attribute during serialization &amp; deserialization for <code>oneOf/anyOf</code> properties.</p>
<h2>Details</h2>
<p>Here is how you can define a nullable <code>oneOf</code> case in OpenAPI specification:</p>
<pre><code class="language-xml">&quot;oneOf&quot;: [
  {
	&quot;type&quot;: &quot;number&quot;
  },
  {
	&quot;type&quot;: &quot;boolean&quot;
  },
  {
	&quot;nullable&quot;: true
  }
]
</code></pre>
<p>In Java SDK, these <code>oneOf</code> properties will be translated into the <code>oneOf</code> containers that will allow you to set null in any of the cases like for instance, initializing with number type in this case.</p>
<pre><code class="language-java">OneofNullableCase oneofNullableCase =
                OneofNullableCase.fromNumber(null); // here the oneOf container will be set to null
</code></pre>
<p>Or you can initialize with some value like:</p>
<pre><code class="language-java">OneofNullableCase oneofNullableCase =
                OneofNullableCase.fromNumber(1265); // here the oneOf container will be initialized with the provided value i.e. 1265
</code></pre>
<p>For <code>anyOf</code> cases, you can make the case nullable like you did for <code>oneOf</code> as shown below:</p>
<pre><code class="language-xml">&quot;anyOf&quot;: [
  {
	&quot;type&quot;: &quot;number&quot;
  },
  {
	&quot;type&quot;: &quot;boolean&quot;
  },
  {
	&quot;nullable&quot;: true
  }
]
</code></pre>
<p>In Java SDK, you can consume <code>anyOf</code> cases like:</p>
<pre><code class="language-java">AnyofNullableCase anyofNullableCase =
                AnyofNullableCase.fromBoolean(null); // here the anyOf container will be set to null
</code></pre>
<p>Or with some value like:</p>
<pre><code class="language-java">AnyofNullableCase anyofNullableCase =
                AnyofNullableCase.fromBoolean(false); // here the anyOf container will be initialized with the provided case value i.e. false
</code></pre>
]]></content:encoded>
      <category>Addition</category>
      <category>Java</category>
      <category>oneOf/anyOf</category>
    </item>
    <item>
      <title>Adding Support for Enums in oneOf and anyOf in Java SDKs</title>
      <link>https://docs.apimatic.io/changelog/adding-support-enums-in-oneof-anyof-java-sdk</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/adding-support-enums-in-oneof-anyof-java-sdk</guid>
      <pubDate>Mon, 07 Mar 2022 00:00:00 GMT</pubDate>
      <description>Java SDKs now support enum types defined as oneOf/anyOf types. You can define as many distinct enum types as required with this support.</description>
      <content:encoded><![CDATA[<p>Java SDKs now support enum types defined as <strong>oneOf/anyOf</strong> types. You can define as many distinct enum types as required with this support.</p>
<h2>Details</h2>
<p>This feature is an addition to the oneOf and anyOf support where enum types are used as oneOf/anyOf types. The support for enums, defined as oneOf/anyOf types, has now been added in Java SDK. </p>
<p>You can define as many distinct enum types as oneOf/anyOf types as you need. Here is an example to oneOf types containing enums for the month of a year:</p>
<pre><code class="language-java">&quot;oneOf&quot;: [
    {
        &quot;$ref&quot;: &quot;#/components/schemas/MonthName&quot;
    },
    {
        &quot;$ref&quot;: &quot;#/components/schemas/MonthNumber&quot;
    }
]
</code></pre>
<p>Here we have 2 distinct enums like month name of type string and month number of type integer. Java SDK allows you to send/receive value from oneOf/anyOf enums with the help of container classes. Handling of this case in Java SDK is pretty simple when it comes to sending the enums in the request, you just initialize the container class with oneOf/anyOf types. </p>
<p>Here is how you can initialize a month&#39;s name:</p>
<pre><code class="language-java">OneofMultipleEnum oneofMultipleEnum =
                OneofMultipleEnum.fromMonthName(MonthNameEnum.DECEMBER); // December
</code></pre>
<p>Or you can initialize with month number enum:</p>
<pre><code class="language-java">OneofMultipleEnum oneofMultipleEnum =
                OneofMultipleEnum.fromMonthNumber(MonthNumberEnum.FEBRUARY); // 2
</code></pre>
<p>Now in order to handle the oneOf/anyOf response, you just provide the implementation of each case instead of type checking like:</p>
<pre><code class="language-java">responseEnum.match(new OneofMultipleEnum.Cases&lt;Void&gt;() {

    @Override
    public Void monthName(MonthNameEnum monthName) {
        // Do something with month name enum
        return null;
    }

    @Override
    public Void monthNumber(MonthNumberEnum monthNumber) {
        // Do something with month number enum
        return null;
    }
});
</code></pre>
<p>Here <code>responseEnum</code> is the actual response that is received from the server.</p>
]]></content:encoded>
      <category>Addition</category>
      <category>Java</category>
      <category>oneOf/anyOf</category>
    </item>
    <item>
      <title>Updating Type Hints for Dictionaries in PHP SDKs</title>
      <link>https://docs.apimatic.io/changelog/improvements-type-dictionaries-php-sdks</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/improvements-type-dictionaries-php-sdks</guid>
      <pubDate>Tue, 01 Mar 2022 09:35:04 GMT</pubDate>
      <description>Explains about the improvements made by updating type hints of dictionaries in PHP SDKs.</description>
      <content:encoded><![CDATA[<p>APIMatic CodeGen has made improvements by updating type hints of dictionaries in PHP SDKs to better capture the type information.</p>
<h2>Details</h2>
<p>Previously, PHP SDKs were using the type <code>array</code> for a dictionary of any type. For example, following is a model named <code>TeamMembersRequest</code> with a field <code>teamMembers</code> of type <code>Dictionary&lt;string,TeamMember&gt;</code>. In PHP, this model would look like:</p>
<pre><code class="language-php">class TeamMembersRequest
{
    /**
     * @var array
     */
    private $teamMembers;
}
</code></pre>
<p>Using <code>array</code> not only loses the dictionary&#39;s inner type information but also affects the users Developer Experience. Likewise in PHP, type <code>array</code> means a dictionary of mixed types, which leads to type hint <code>array</code> in PhpStrom IDE, as shown:</p>
<p><img src="https://docs.apimatic.io/images/changelog/php-sdk-image-1.png" alt="PHP Image IDE"></p>
<h2>What has Changed?</h2>
<p>To improve the code readability, correctness and to preserve the inner type of a dictionary in PHP, APIMatic now uses the <code>Phan</code> analyzer&#39;s approach of dealing with maps. Therefore, the above-mentioned snippet of a model class <code>TeamMembersRequest</code> would now look like:</p>
<pre><code class="language-php">class TeamMembersRequest
{
    /**
     * @var array&lt;string,TeamMember&gt;
     */
    private $teamMembers;
}
</code></pre>
<p>This code leads to <code>TeamMember[]</code> type hint in PhpStorm IDE which is equivalent to a PHP map of <code>TeamMember</code>. These type hints are later used by <code>JsonMapper</code> to deserialize a JSON string into the model and the suppport for map of type A i.e. <code>array&lt;string,A&gt;</code> with the release of <a href="https://github.com/apimatic/jsonmapper/releases/tag/v3.0.0">JsonMapper</a>.</p>
<p><img src="https://docs.apimatic.io/images/changelog/php-sdk-image-2.png" alt="PHP Image 2"></p>
]]></content:encoded>
      <category>Improvement</category>
      <category>PHP</category>
    </item>
    <item>
      <title>Improvements to Internal Linking in SDK README Files</title>
      <link>https://docs.apimatic.io/changelog/improvement-in-sdk-readme</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/improvement-in-sdk-readme</guid>
      <pubDate>Mon, 28 Feb 2022 00:00:00 GMT</pubDate>
      <description>Hyperlinks in multi-file docs are now truly relative so they will work correctly irrespective of which level the SDK is placed in the GitHub repository.</description>
      <content:encoded><![CDATA[<p>Hyperlinks in multi-file docs are now truly relative so they will work correctly irrespective of which level the SDK is placed in the GitHub repository.</p>
<p>Last year, we released multi-page documentation in SDKs, details of which can be read in the <a href="https://docs.apimatic.io/changelog/apimatic-code-generator-v3-titan/#improved-documentation-in-the-sdks">APIMatic v3 announcement changelog</a>. This helped overcome a limitation in GitHub (and other source code hosting platforms) that resulted in the README.md file being cut off because it was too long to display on one page. </p>
<p>To implement the multi-page structure, an additional <code>doc</code> directory inside the generated SDKs contained the parts of the documentation which were linked on the main README.md page. We used absolute hyperlinks in the README.md to refer to other files present in the <code>doc</code> folder in the SDK. </p>
<p>Everything worked as intended when the SDK and README were placed at the root of the GitHub repository. However, if the SDK was moved to a deeper level than the root, then some of the links referred to in the README.md file got broken. </p>
<p><img src="https://docs.apimatic.io/images/changelog/absolute-hyperlinks.png" alt="Absolute links in README"></p>
<p>This has now been fixed to support relative links in the README, and the hyperlinks will work irrespective of where the SDK has been placed in the GitHub repository.</p>
<p><img src="https://docs.apimatic.io/images/changelog/relative-links.png" alt="Relative links in README"></p>
]]></content:encoded>
      <category>Docs</category>
      <category>Improvement</category>
    </item>
    <item>
      <title>Introducing PHP 8.1 Compatibility in SDKs</title>
      <link>https://docs.apimatic.io/changelog/introducing-php.8.1-support</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/introducing-php.8.1-support</guid>
      <pubDate>Wed, 23 Feb 2022 00:00:00 GMT</pubDate>
      <description>The APIMatic Code Generator now supports SDK compatibility with the runtime version of PHP 8.1.</description>
      <content:encoded><![CDATA[<p>The APIMatic Code Generator now supports SDK compatibility with the runtime version of PHP 8.1.</p>
<p>Previously, the PHP SDK was compatible with PHP versions 7.2.* to 8.0.*, and the end-users using PHP 8.1 were not able to install or use the SDKs within their PHP 8.1 applications. Now with the introduction of PHP 8.1 support in APIMatic&#39;s Code Generation engine, PHP 8.1 users will not only be able to install the SDKs, but also enjoy a seamless bug-free experience.</p>
<h2>What&#39;s Changed?</h2>
<p>PHP 8.1 runtime takes mismatching tentative return types very serious, hence users are served with a deprecation notice whenever the actual return type of an inherited function differs with the base function&#39;s return type. This deprecation notice causes runtime failure during inheritance of <code>JsonSerializable</code> in the SDKs, as changing the return type of <code>jsonSerialize()</code>, which can be seen in the following code snippet:</p>
<pre><code class="language-php">class Model implements JsonSerializable {
    public function jsonSerialize()
    {
        $json = [];
        $json[&#39;session&#39;] = $this-&gt;session;
        
        return $json;
    }
}
</code></pre>
<p>Here, <code>jsonSerialize()</code> is inherited from <code>JsonSerializable</code> and its return type was mixed but now changed to <code>array</code>. With the introduction of PHP 8.1 this will be result in a runtime exception during the inheritance of JsonSerializable. So to avoid this failure, PHP 8.1 suggested approach has been followed where the attribute #[\ReturnTypeWillChange] for such cases is used. Following all this, the above code snippet looks like this:</p>
<pre><code class="language-php">class Model implements JsonSerializable {
    #[\ReturnTypeWillChange]
    public function jsonSerialize()
    {
        $json = [];
        $json[&#39;session&#39;] = $this-&gt;session;
        
        return $json;
    }
}
</code></pre>
<p>For more detail on the features that SDKs support, please refer to <a href="https://docs.apimatic.io/generate-sdks/sdk-features/">our documentation</a>.</p>
]]></content:encoded>
      <category>New</category>
      <category>PHP</category>
    </item>
    <item>
      <title>Enhancements in HTTP Curl Code Samples for XML</title>
      <link>https://docs.apimatic.io/changelog/enhancements-in-http-curl-code-samples-xml</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/enhancements-in-http-curl-code-samples-xml</guid>
      <pubDate>Mon, 21 Feb 2022 08:00:04 GMT</pubDate>
      <description>Tells the user about the improvements and enhancements made in HTTP curl code samples for XML.</description>
      <content:encoded><![CDATA[<p>HTTP curl code samples now support dynamic XML in the body of the code. Also, support for populating initial values for endpoint parameters using examples (if provided) has been added.   </p>
<h2>Details</h2>
<p>Earlier, XML support was only limited to creating static and non-editable curl code samples in the API specification. This restricted the API developer experience specifically the <strong>API Portal’s Try it Out Console</strong> feature. Now with dynamic code samples, the example can only be used to populate the initial values for parameters which can then be edited as desired by the user.</p>
<p><img src="https://docs.apimatic.io/images/changelog/dynamic-code-sample.gif" alt="Dynamic Code Sample Example"></p>
]]></content:encoded>
      <category>New</category>
    </item>
    <item>
      <title>Introducing APIMatic Kubernetes Operator</title>
      <link>https://docs.apimatic.io/changelog/added-new-feature-apimatic-codegen-kubernetes-operator</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/added-new-feature-apimatic-codegen-kubernetes-operator</guid>
      <pubDate>Mon, 21 Feb 2022 08:00:04 GMT</pubDate>
      <description>Explains about the new feature, APIMatic Kubernetes Operator, along with the options to deploy it.</description>
      <content:encoded><![CDATA[<p>APIMatic now has good news for all those who want to use APIMatic as a containerized application with Kubernetes via the <strong>APIMatic Kubernetes Operator</strong> deployed through different methods.</p>
<h2>APIMatic Kubernetes Operator to Ease On-Premise Deployment</h2>
<p>APIMatic is available as a containerized application for customers with strict security and availability requirements. APIMatic Kubernetes Operator simplifies the configuration and lifecycle management of the APIMatic code and docs generation solution on different Kubernetes distributions and cuts down the setup process for Kubernetes to minutes, allowing users to instantly get up and running with APIMatic on their own infrastructure.</p>
<p><img src="https://docs.apimatic.io/images/changelog/kubernetes-operator-diagram.png" alt="APIMatic Kubernetes Operator"></p>
<p>APIMatic Kubernetes Operator can be deployed via different options: <a href="https://docs.apimatic.io/kubernetes-operator/direct-deployment-of-operator/">Direct Deployment</a> and <a href="https://docs.apimatic.io/kubernetes-operator/olm-deployment-of-operator/">OLM(Operator Lifecycle Manager) Deployment</a>. Direct deployment is where all the instances are externally accessible and OLM deployment includes OLM, a component of the Operator framework, that manages Operators in an effective and scalable way. </p>
<p>For details on the Operator, have a look at <a href="https://docs.apimatic.io/kubernetes-operator/apimatic-operator-overview/">APIMatic Kubernetes Documentation</a> and for APIMatic&#39;s on-premise offerings contact <a href="https://www.apimatic.io/contact/">sales@apimatic.io</a>.</p>
]]></content:encoded>
      <category>New</category>
    </item>
    <item>
      <title>Added Support for Export of Reusable &quot;oneOf&quot;, &quot;anyOf&quot;, &quot;not&quot; Constructs and Union Types in API Transformer</title>
      <link>https://docs.apimatic.io/changelog/added-support-for-reusable-anyof-oneof-not-type-constructs-union-types-in-api-transformer</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/added-support-for-reusable-anyof-oneof-not-type-constructs-union-types-in-api-transformer</guid>
      <pubDate>Mon, 14 Feb 2022 09:35:04 GMT</pubDate>
      <description>Notifies users about Transformer release for support of reusable type combinators</description>
      <content:encoded><![CDATA[<p>If you have globally defined schemas that directly use <code>oneOf</code>, <code>anyOf</code>, <code>not</code> constructs or union types, you will be pleased to know that API Transformer now converts between formats by preserving the global structure of such schemas.</p>
<h2>Details</h2>
<p>Various API description formats support type combining constructs like <code>anyOf</code>, <code>oneOf</code> and <code>not</code>. Others like RAML support &quot;union&quot; types which are a kind of an equivalent of one of these constructs. Depending on the API description format, It is quite possible to define these constructs once globally with a unique name and then reference them repeatedly across the API description file without needing to redefine them at each step. We have now improved support for such schemas for our API Transformer.</p>
<h3>What Has Changed?</h3>
<p>Until now, during transformation, we embedded the information of globally defined schemas inline within all schemas that referenced them. Due to this, repetition of information was observed in the exported API description files. However, we now support exporting reusable or globally defined schemas (containing <code>oneOf</code>, <code>anyOf</code>, <code>not</code> constructs or union types) with user-defined names, and other related information. Referencing schemas then reference these global definitions, which reduces duplication of information. A detailed breakdown of changes introduced in our support for each format is given below.</p>
<h4>OpenAPI <code>v3</code></h4>
<p>A schema in OpenAPI <code>v3</code> can be defined globally under <code>#/components/schemas</code> with a unique name. See an example below of a global schema containing <code>oneOf</code> information and named <code>Pet</code>:</p>
<pre><code>Pet:
  oneOf:
  - $ref: &#39;#/components/schemas/Cat&#39;
  - $ref: &#39;#/components/schemas/Dog&#39;
  discriminator:
    propertyName: pet_type
    mapping:
      cat: Cat
      dog: Dog
</code></pre>
<p>Similarly, schemas using <code>anyOf</code> or <code>not</code> constructs can also be globally defined. A user can provide additional information in these schemas including descriptive content, examples or discriminator details. Such schemas can then be referenced by other schemas using the <code>$ref</code> notation.</p>
<p>We now support preserving all of the above information in its true form when exporting to other formats. This includes exporting discriminator related information alongside <code>oneOf</code>/<code>anyOf</code> when transforming to OpenAPI <code>v3</code>, which was not supported before.</p>
<h5>Special Considerations for Discriminators Used Alongside <code>OneOf</code>/<code>AnyOf</code></h5>
<p>Information of discriminators can only be exported alongside <code>oneOf</code>/<code>anyOf</code> in OpenAPI <code>v3</code>. as other formats do not allow this. For formats where discriminator is allowed but <code>oneOf</code>/<code>anyOf</code> is not supported (e.g. Swagger <code>v2.0</code>) or where discriminator is not allowed to be used alongside union types (e.g. RAML <code>v1.0</code>), the information by default is imported and exported by creation of additional base types that contain the discriminator information and the <code>oneOf</code>/<code>anyOf</code> types then inherit that information by using an equivalent of the <code>allOf</code> construct. </p>
<p>If, however, you are looking to import an OpenAPI <code>v3</code> file, make a few changes, then export back to OpenAPI <code>v3</code>, we recommend that you disable the behavior described above by importing your OpenAPI <code>v3</code> file along with a <a href="https://docs.apimatic.io/manage-apis/apimatic-metadata/">metadata file</a> where the <a href="https://docs.apimatic.io/api-transformer/configuring-transformer/#import-settings">import setting</a> <code>LoadBaseTypesForOneOfAnyOfDiscriminator</code> is disabled. See an example below:</p>
<pre><code>{
	&quot;ImportSettings&quot;: {
		&quot;LoadBaseTypesForOneOfAnyOfDiscriminator&quot;: false
	}
}
</code></pre>
<h4>RAML (<code>v0.8</code>, <code>v1.0</code>)</h4>
<p>RAML <code>v1.0</code> allows defining global schemas under the <code>types</code> section. These schemas can define union types with a unique name, descriptive content and examples. They can then be referenced by other schemas using the <code>type</code> keyword. We now preserve this information when exporting to other formats.</p>
<p>RAML <code>v0.8</code> supports defining global schemas with unique names using JSON schema syntax. These schemas support <code>oneOf</code>/<code>anyOf</code>/<code>not</code> constructs along with descriptive content and this information is preserved when exporting to other formats.</p>
<h4>XML Schema</h4>
<p>XML schema supports union types <code>xsd:union</code> that can be globally defined with a unique name along with descriptive content. When importing WSDL/WADL files containing XML schemas, such information is now preserved when exporting to other formats.</p>
<h3>How to Avoid Changes in Output?</h3>
<p>If you want to avoid any kind of changes to output that are discussed in the previous section, you will need to upload a <a href="https://docs.apimatic.io/manage-apis/apimatic-metadata/">metadata file</a> along with your API description file with the <a href="https://docs.apimatic.io/api-transformer/configuring-transformer/#export-settings">export setting</a> <code>ExportGlobalTypeCombinators</code> set to <code>false</code>.</p>
<p><strong>Example</strong>:</p>
<pre><code>{
	&quot;ExportSettings&quot;: {
		&quot;ExportGlobalTypeCombinators&quot;: false
	}
}
</code></pre>
]]></content:encoded>
      <category>New</category>
    </item>
    <item>
      <title>Announcing Support for Type &quot;any&quot; in API Transformer</title>
      <link>https://docs.apimatic.io/changelog/announcing-support-for-type-any-in-transformer</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/announcing-support-for-type-any-in-transformer</guid>
      <pubDate>Wed, 26 Jan 2022 10:46:45 GMT</pubDate>
      <description>We now announce support in API Transformer for API components that have no specific type or in other words are said to have any type. Until now, a default type (string/object) was assumed for all such cases.</description>
      <content:encoded><![CDATA[<p>We now announce support in <a href="https://www.apimatic.io/transformer">API Transformer</a> for API components that have no specific type or in other words are said to have <code>any</code> type. Until now, a default type (<code>string</code>/<code>object</code>) was assumed for all such cases.</p>
<h2>What&#39;s New?</h2>
<p>Upon transformation of API description files containing components using <code>any</code> type, you can now expect the following changes:</p>
<ul>
<li><p>JSON schema allows skipping <code>type</code> information to indicate that the schema has no fixed type. This is supported by all API description formats that make use of JSON schema whether as a subset or directly, including OpenAPI (<code>v2.0</code>, <code>v3.x</code>), RAML (<code>v0.8</code>, <code>v1.0</code>), API Blueprint, etc. In APIMatic, all such cases were exported with a default type assumed as <code>object</code> but will now be exported with type <code>any</code>. A few exceptions to this behavior include the following:</p>
<ul>
<li>For OpenAPI <code>v3.x</code> parameter import, the default type for an empty schema was assumed as <code>string</code> but will now be imported/exported as <code>any</code>. See an example of such a parameter below:</li>
</ul>
<pre><code>    &quot;paths&quot;: {
        &quot;/message&quot;: {
          &quot;get&quot;: {
            &quot;parameters&quot;: [
              {
                &quot;name&quot;: &quot;value&quot;,
                &quot;schema&quot;: {
                  
                },
                &quot;in&quot;: &quot;query&quot;
              }            
            ]
         }
      }
   }
</code></pre>
<ul>
<li>For OpenAPI <code>v3.1</code> form parameters, an empty schema will still be imported/exported as a file type schema as per the rules defined <a href="https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#considerations-for-file-uploads">here</a>.</li>
</ul>
</li>
<li><p>RAML <code>v1.0</code> has an explicit <a href="https://github.com/raml-org/raml-spec/blob/master/versions/raml-10/raml-10.md#the-any-type"><code>any</code> type</a> which until now was exported as type <code>object</code> but will now be exported as type <code>any</code>.</p>
</li>
<li><p>For XML schema export (relevant to export of WSDL and WADL), both <code>object</code> (one with no explicit property declarations) and <code>any</code> types were exported with the native type <code>xsd:anyType</code>. However, now the <code>object</code> type will be exported as a complex type containing <code>&lt;xsd:any&gt;</code> as a sequence element which allows extending the schema with elements not explicitly declared. An example is given below:</p>
<p>  Before:</p>
<pre><code>      &lt;xsd:element name=&quot;value&quot; type=&quot;xsd:anyType&quot;/&gt;
</code></pre>
<p>  Now:</p>
<pre><code>      &lt;xsd:element name=&quot;value&quot;&gt;
        &lt;xsd:complexType&gt;
          &lt;xsd:sequence&gt;
            &lt;xsd:any/&gt;
          &lt;/xsd:sequence&gt;
        &lt;/xsd:complexType&gt;
      &lt;/xsd:element&gt;
</code></pre>
</li>
</ul>
<h2>How to Avoid Changes in Output?</h2>
<p>If you want to avoid any kind of changes to output that are discussed in the previous section, you will need to upload a <a href="https://docs.apimatic.io/manage-apis/apimatic-metadata/">metadata file</a> along with your API description file with the following configuration settings:</p>
<ul>
<li>An <a href="https://docs.apimatic.io/api-transformer/configuring-transformer/#export-settings">export setting</a> <code>ExportAnyType</code> set to <code>false</code>.</li>
<li>If you are using OpenAPI <code>v3</code>, especially with parameters having empty schemas (excluding form parameters), you will need an additional <a href="https://docs.apimatic.io/api-transformer/configuring-transformer/#import-settings">import setting</a> <code>ImportOpenApi3EmptySchema</code> set to <code>false</code> as well.</li>
</ul>
<p><strong>Example</strong>:</p>
<pre><code>{
	&quot;ImportSettings&quot;: {
		&quot;ImportOpenApi3EmptySchema&quot;: false
	},
	&quot;ExportSettings&quot;: {
		&quot;ExportAnyType&quot;: false
	}
}
</code></pre>
]]></content:encoded>
      <category>New</category>
    </item>
    <item>
      <title>Announcing New Features in SDK Generation in Multiple Languages</title>
      <link>https://docs.apimatic.io/changelog/added-new-features-in-sdks</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/added-new-features-in-sdks</guid>
      <pubDate>Mon, 24 Jan 2022 10:13:04 GMT</pubDate>
      <description>This changleog gives information about new supports added for SDK generation in different languages</description>
      <content:encoded><![CDATA[<p>APIMatic now has good news for all those who use our SDKs. We now support all the popular features given below for the SDK generation in multiple languages. You can now use these features in your API specifications for generating SDKs.</p>
<h2>oneOf &amp; anyOf Support Added in Python, Java, and PHP SDKs</h2>
<p>oneOf &amp; anyOf is a popular feature in OpenAPI and RAML specification which gives the ability to create a complex schema, or validate a value against multiple criterias. Customers who have defined it in their API specifications expect that our SDKs support this feature.</p>
<p>Hence, oneOf and anyOf support has been added in Python, Java, and PHP SDKs with known limitations.</p>
<h2>Multiple Authentication Support Added in Python SDK</h2>
<p>Some REST APIs support several authentication types making it a popular feature in OpenAPI and RAML specification. Customers or prospects who have defined this in their API specifications expect that our SDKs have the ability to support a combination of different authentication schemes. </p>
<p>Therefore, multiple authentication support has been added in Python SDK, and we are working on adding the support to other languages. </p>
<h2>Retries and Backoff Support Added in PHP and TypeScript SDK</h2>
<p>An SDK that does API calls to an API server is prone to problems like momentary loss of network connectivity, temporary unavailability of the API server, and timeouts that occur when the API server is busy. For such a situation if the API call is retried after a specified interval, then the API call will be successful and the client application will not face an error for the API call.</p>
<p>Following this, retries and backoff support has been added in PHP and TyepScript SDKs. Therefore, now all 6 language SDKs have support for retries with exponential backoff.</p>
<h2>Ability to Pass Http Client Added in Python, Ruby and TypeScript SDK</h2>
<p>To make an API call, each SDK uses an HttpClient particular to that language or framework. Previously developers using APIMatic’s SDKs didnot have the ability to pass their own configured instance of Http Client. Hence, providing them with this ability would increase their control over how they want the Http Client to make the API calls.</p>
<p>Therefore, Http Client support has been added to pass instances in Python, Ruby, and TypeScript SDKs.Therefore, now all 6 language SDKs have this support.</p>
<h2>Complex types in Query Parameters Support Added in C#, Java, Ruby and Python SDKs</h2>
<p>OAS allows to define schemas or complex types in query parameters. This is becoming a popular mode of data transmission by different API providers. Therefore, SDKs should have the ability to transmit complex types via query parameters while respecting the serialization format specified for them.</p>
<p>Now, support for complex types in query parameters has been added in C#, Java, Ruby and Python SDKs.</p>
]]></content:encoded>
      <category>New</category>
      <category>SDKs</category>
    </item>
    <item>
      <title>Announcing Support for Multiple Authentication Schemes in API Transformer</title>
      <link>https://docs.apimatic.io/changelog/announcing-support-for-multiple-authentication-in-transformer</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/announcing-support-for-multiple-authentication-in-transformer</guid>
      <pubDate>Mon, 17 Jan 2022 10:46:45 GMT</pubDate>
      <description>We now support multiple authentication schemes and related information in our API Transformer for all applicable API description formats including OpenAPI, RAML, Postman and Insomnia. You can now convert between these formats without losing important authentication details.</description>
      <content:encoded><![CDATA[<p>We now support multiple authentication schemes and related information in our <a href="https://www.apimatic.io/transformer">API Transformer</a> for all applicable API description formats including OpenAPI, RAML, Postman and Insomnia. You can now convert between these formats without losing important authentication details.</p>
<h2>What was Supported Before?</h2>
<p>Only a single authentication scheme was loaded per API and all other schemes were ignored. This meant that:</p>
<ul>
<li>If some endpoints of the API used one authentication scheme while others used a different scheme, only the first authentication scheme was globally applied and assumed for all endpoints that required authentication. The endpoint level authentication was used to override global authentication only when it needed to specify different OAuth 2.0 scopes.</li>
<li>If an endpoint needed multiple authentication schemes to complete its authentication flow, only the first authentication scheme was considered and information about the other schemes was ignored.</li>
<li>Each OAuth 2.0 grant type was considered as a separate authentication scheme. If an API allowed multiple grant types, information about only the first grant type was imported.</li>
</ul>
<p>The authentication scheme was exported with a custom name and the user-defined name was ignored.</p>
<h2>What&#39;s New?</h2>
<p>Support for multiple authentication schemes and related features has been added for the following API description formats: OpenAPI (<code>v3.x</code>, <code>v2.0</code>, <code>v1.x</code>), RAML (<code>v1.0</code>, <code>v0.8</code>), Postman Collections (<code>v2.x</code>, <code>v1.0</code>), Insomnia (<code>v3</code>). A detailed breakdown of what has been added is discussed below.</p>
<h3>Support Added for Multiple Authentication Schemes</h3>
<p>If your API defines multiple authentication schemes, these schemes will now be transformed with complete information including authentication type specific details as well as user-defined authentication scheme name and descriptive content.</p>
<p>Supported authentication schemes are listed <a href="https://docs.apimatic.io/define-apis/api-authentication/">here</a>.</p>
<h4>Merging APIs With Different Authentication Schemes</h4>
<p>If you are merging multiple APIs together that make use of different authentication schemes, these authentication schemes will now also be merged together without conflicts. This is in contrast to before when the merging process was terminated if it encountered different authentication schemes.</p>
<h3>Support Added for Applying Different Authentication Schemes</h3>
<p>Support has been added in API Transformer for the various mechanisms to apply authentication on endpoints which are discussed below:</p>
<ul>
<li><p><strong>Global vs Endpoint Level Authentication</strong></p>
<p>In OpenAPI, RAML, and Postman collections, authentication schemes can be applied either globally to all endpoints or for specific endpoints only. The endpoint level authentication overrides any globally applied authentication.</p>
</li>
<li><p><strong>Authentication Options and Groups</strong></p>
<p>Regardless of where the authentication is applied, however, an endpoint can have a list of authentication scheme options out of which one must be satisfied. An authentication option can also be an authentication scheme group (supported only in OpenAPI <code>v3.0</code> and <code>v2.0</code>) where multiple authentication schemes need to be satisfied in order to complete the authentication process. RAML (<code>v1.0</code>, <code>v0.8</code>) supports only ungrouped authentication options. On the other hand, Postman collections (<code>v2.x</code>, <code>v1.0</code>) and Insomnia allows only one authentication scheme to be applied per endpoint.</p>
</li>
</ul>
<blockquote>
<p><strong>Note</strong></p>
<p>  When exporting to formats like Postman collection or Insomnia where only single authentication schemes are supported per endpoint, a non-grouped authentication scheme will be given more precedence, if available.</p>
</blockquote>
<h4>Ability to Extend Applied Authentication Information Via Extensions</h4>
<p>When specifying security options in OpenAPI (<code>v3.0</code>, <code>v2.0</code>), you can now extend the security information with additional metadata like name or description to improve output, where applicable. This can be done through our new vendor extension <code>x-security-options-meta</code>, more details of which you can find <a href="https://docs.apimatic.io/specification-extensions/swagger-codegen-extensions/#applied-authentication-options-extension">here</a>.</p>
<h3>Support Added for Optional Authentication</h3>
<p>RAML (<code>v1.0</code>, <code>v0.8</code>) and OpenAPI (<code>v3.x</code>, <code>v2.0</code>) support optional authentication for endpoints. This is now supported in API Transformer as well.</p>
<p><strong>RAML 1.0</strong></p>
<pre><code class="language-yml">#%RAML 1.0
title: Example API
version: v3
baseUri: https://api.example.com
securitySchemes:
  oauth_2_0:
    type: OAuth 2.0
    settings:
      authorizationUri: https://www.example.com/oauth2/authorize
      accessTokenUri: https://example.com/oauth2/token
      authorizationGrants: [ authorization_code ]
/users:
  get:
    securedBy: [null, oauth_2_0]
</code></pre>
<p><strong>OpenAPI 3.x</strong></p>
<pre><code class="language-yml">openapi: 3.0.0
info:
  title: Example API
  version: &#39;v3&#39;
paths:
  /user:
    get:
      responses:
        &#39;200&#39;:
          description: &#39;&#39;
      security:
      - {}
      - oauth_2_0: []
components:
  securitySchemes:
    oauth_2_0:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: https://www.example.com/oauth2/authorize
          tokenUrl: https://example.com/oauth2/token
          scopes: {}
security: []
</code></pre>
<h3>New Validation Rules Added</h3>
<p>The following new validation rules related to authentication have been added:</p>
<ul>
<li><a href="https://docs.apimatic.io/rulesets/apimatic-post-processing-validation/non-empty-authentication-scheme-name/">non-empty-authentication-scheme-name (APIMATICPOSTPROCESS_V103)</a></li>
<li><a href="https://docs.apimatic.io/rulesets/apimatic-post-processing-validation/non-null-non-empty-applied-authentication-scheme-name/">non-null-non-empty-applied-authentication-scheme-name (APIMATICPOSTPROCESS_V104)</a></li>
<li><a href="https://docs.apimatic.io/rulesets/apimatic-post-processing-validation/unique-authentication-option-name/">unique-authentication-option-name (APIMATICPOSTPROCESS_V105)</a></li>
<li><a href="https://docs.apimatic.io/rulesets/apimatic-post-processing-validation/unique-authentication-options/">unique-authentication-options (APIMATICPOSTPROCESS_V106)</a></li>
<li><a href="https://docs.apimatic.io/rulesets/apimatic-post-processing-validation/authentication-scheme-referenced-by-auth-option/">authentication-scheme-referenced-by-auth-option (APIMATICPOSTPROCESS_V107)</a></li>
<li><a href="https://docs.apimatic.io/rulesets/apimatic-post-processing-validation/unique-authentication-schemes-in-group-auth-option/">unique-authentication-schemes-in-group-auth-option (APIMATICPOSTPROCESS_V108)</a></li>
<li><a href="https://docs.apimatic.io/rulesets/apimatic-post-processing-validation/two-or-more-authentication-schemes-in-group-auth-option/">two-or-more-authentication-schemes-in-group-auth-option (APIMATICPOSTPROCESS_V109)</a></li>
<li><a href="https://docs.apimatic.io/rulesets/apimatic-preliminary-validation/valid-authentication-scheme-name/">valid-authentication-scheme-name (APIMATICPRE_V070)</a></li>
<li><a href="https://docs.apimatic.io/rulesets/apimatic-preliminary-validation/authentication-scheme-referenced-by-auth-option/">authentication-scheme-referenced-by-auth-option (APIMATICPRE_V071)</a></li>
<li><a href="https://docs.apimatic.io/rulesets/apimatic-preliminary-validation/non-null-non-empty-applied-authentication-scheme-name/">non-null-non-empty-applied-authentication-scheme-name (APIMATICPRE_V072)</a></li>
<li><a href="https://docs.apimatic.io/rulesets/apimatic-preliminary-validation/pre-defined-authentication-scheme/">pre-defined-authentication-scheme (APIMATICPRE_V073)</a></li>
<li><a href="https://docs.apimatic.io/rulesets/apimatic-preliminary-validation/unique-authentication-option-name/">unique-authentication-option-name (APIMATICPRE_V074)</a></li>
<li><a href="https://docs.apimatic.io/rulesets/apimatic-preliminary-linting/unique-authentication-options/">unique-authentication-options (APIMATICPRE_L023)</a></li>
<li><a href="https://docs.apimatic.io/rulesets/apimatic-preliminary-linting/unique-authentication-schemes-in-group-auth-option/">unique-authentication-schemes-in-group-auth-option (APIMATICPRE_L024)</a></li>
<li><a href="https://docs.apimatic.io/rulesets/apimatic-preliminary-linting/two-or-more-authentication-schemes-in-group-auth-option/">two-or-more-authentication-schemes-in-group-auth-option (APIMATICPRE_L025)</a></li>
</ul>
<h2>How to Avoid Changes in Output?</h2>
<p>If you wish to avoid receiving any changes to your output which are discussed above, you can opt out of them by setting the import flag value <code>ImportMultipleAuthentication</code> to <code>false</code> in a metadata file uploaded along with your API description file. For more details on how to create a metadata file and add import settings, please visit this <a href="https://docs.apimatic.io/api-transformer/configuring-transformer/#import-settings">link</a>. </p>
<p>If you are merging multiple APIs together, you will additionally need to set the <code>MergeMultipleAuthentication</code> merge setting value to <code>false</code> as well. For more details, please visit this <a href="https://docs.apimatic.io/api-transformer/configuring-transformer/#merge-settings-object">link</a>.</p>
]]></content:encoded>
      <category>New</category>
      <category>Authentication</category>
    </item>
    <item>
      <title>Improvements to Error Messages and Code Formatting in API Portal</title>
      <link>https://docs.apimatic.io/changelog/added-improvements-to-error-messages-apiportal</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/added-improvements-to-error-messages-apiportal</guid>
      <pubDate>Mon, 13 Dec 2021 09:35:04 GMT</pubDate>
      <description>Notifies users about improvements in error message on API portal.</description>
      <content:encoded><![CDATA[<p>Based on the various feedbacks given to us, we have enhanced our error messages shown on the API Portal visible to the users while making API calls via the API code playground. This release improves the message content by adding some more useful information to the older error message.</p>
<h2>Improved Error Messages on Try it Out Console</h2>
<p>Earlier on, <strong>API Portal’s Try it Out Console</strong> showed a single error in each case of failure for the API Call. This made it difficult for the user to understand why the API call has failed. The recent release improves the user experience by showing the possible reason for the API call failure and would also help the user in understanding if there is something they could do to resolve the error.</p>
<p><img src="https://docs.apimatic.io/images/changelog/try-it-out.gif" alt="Improved Error Message on Try It Out"></p>
<h2>Improved Error Messages on Documentation Loading</h2>
<p>Previously, upon loading the <strong>API Portal</strong>, if a failure occurred, a generic message for <strong>Documentation Loading Failed error</strong> was shown to the user. It became really difficult for the user to understand why the documentation loading failed. Therefore, the recent enhancement improves the user experience for documentation loading failure. In case of any technical error, the muted text would help the subscriber to resolve the issue. </p>
<p><img src="https://docs.apimatic.io/images/changelog/docs-loading.gif" alt="Improved Error Message for Docs Loading"></p>
<h2>Formatted XML &amp; HTML Responses in Try it Out Console</h2>
<p>Before, <strong>API Portal’s Try it Out</strong> responses of <strong>XML and HTML</strong> were shown without formatting which was really difficult for the user to understand. The recent release improves the user experience by showing <strong>formatted XML and HTML responses</strong>, helping the user in interpreting these responses much easily.</p>
<p>A sample <strong>XML Response</strong> looks like this.</p>
<p><img src="https://docs.apimatic.io/images/changelog/xml-response-v2.png" alt="Formatted XML Response for Try it Out"></p>
<p>A sample <strong>HTML Response</strong> looks like this.</p>
<p><img src="https://docs.apimatic.io/images/changelog/html-response.png" alt="Formatted HTML Response for Try it Out"></p>
]]></content:encoded>
      <category>Improvement</category>
    </item>
    <item>
      <title>Introducing Multiple Response Examples in API Portal</title>
      <link>https://docs.apimatic.io/changelog/multiple-response-examples</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/multiple-response-examples</guid>
      <pubDate>Thu, 11 Nov 2021 15:40:06 GMT</pubDate>
      <description>To make your API documentation even more comprehensive and user-friendly, we have added support to add multiple examples against each response status code. This includes support for response headers and multiple content types.</description>
      <content:encoded><![CDATA[<p>To make your API documentation even more comprehensive and user-friendly, we have added support to add multiple examples against each response status code. This includes support for response headers and multiple content types.</p>
<p>Previously, the API Portal supported a single example against a single response code, which restricted in-depth understanding of the expected response behaviors.</p>
<p>With this release, users can add multiple response examples in their API definition files to make them even more detailed for their API consumers. The API portal section for the endpoint responses has been updated to support this change in the API definition and can now display multiple response examples and response headers for the status codes that can be switched via tabs. The UI will also show a hierarchy to show multiple content types containing multiple examples.</p>
<p><img src="https://docs.apimatic.io/images/changelog/multiple-response-examples.gif" alt="Multiple Response Examples"></p>
]]></content:encoded>
      <category>New</category>
      <category>API Portal</category>
    </item>
    <item>
      <title>Improvements To The Existing Support for Request Body Content-Type</title>
      <link>https://docs.apimatic.io/changelog/improvements-related-to-requests-content-type</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/improvements-related-to-requests-content-type</guid>
      <pubDate>Mon, 08 Nov 2021 10:58:12 GMT</pubDate>
      <description>We have added some improvements to our existing support for how request body Content-Type headers were handled during import. These changes can reflect in your output for SDK/portal generation or API transformations.</description>
      <content:encoded><![CDATA[<p>We have added some improvements to our existing support for how request body <code>Content-Type</code> headers were handled during import. These changes can reflect in your output for SDK/portal generation or API transformations.</p>
<blockquote>
<p><strong>Note</strong></p>
<p>These changes will only affect you if you choose to re-transform or re-import your files. Please review this changelog carefully and make any adjustments to your API description files, if necessary, to avoid any issues. </p>
</blockquote>
<h2>Details</h2>
<p>A request body&#39;s content type information is determined from its <code>Content-Type</code> header. If explicitly present in the API specification document, it is expected to be sent as is when the API calls are made with the generated SDK or portal. If, however, the header is not defined by the user, the <code>Content-Type</code> header value is automatically determined from the request body&#39;s type definition and sent.</p>
<p>Until today, the import behavior regarding the <code>Content-Type</code> headers has been largely inconsistent e.g. for certain API description formats, we ignored the user defined <code>Content-Type</code> entirely. This has now been improved and you can find format-specific details about the changes below:</p>
<ul>
<li>For OpenAPI (<code>v3.x</code>, <code>v2.0</code>, <code>v1.x</code>), RAML (<code>v1.0</code>, <code>v0.8</code>), Insomnia (<code>v3</code>), HAR and WADL (<code>2009</code>), the <code>Content-Type</code> information was being ignored completely. Upon the API description import, we will now add a fixed value <code>Content-Type</code> header in the API definition explicitly. The value of this header will be determined from either the user defined <code>Content-Type</code> header (if present) or from the request body media type e.g. the media type in the following example is &quot;application/json&quot;.</li>
</ul>
<pre><code class="language-json">&quot;requestBody&quot;: {
    &quot;content&quot;: {
      &quot;application/json&quot;: {
	      &quot;schema&quot;: {
	        &quot;$ref&quot;: &quot;#/components/schemas/User&quot;
	      }
	    }
    }
  }
</code></pre>
<ul>
<li>For Postman (<code>v2.x</code>, <code>v1.0</code>) and API Blueprint, a <code>Content-Type</code> header was being added upon import already. However, now the headers will be considered fixed-value or constant by default, which was not the case before.</li>
</ul>
<h2>How to Disable This Feature?</h2>
<p>The changes described above can add a new header in any form of output you generate from your API description files. If you do not wish to receive these changes, please upload a <a href="https://docs.apimatic.io/manage-apis/apimatic-metadata/">Metadata</a> file along with your specification file at the time of importing/transforming your API description file with the <code>ImportRequestBodyContentTypeHeader</code> <a href="https://docs.apimatic.io/api-transformer/configuring-transformer/#import-settings">import setting</a> disabled.</p>
]]></content:encoded>
      <category>Improvement</category>
    </item>
    <item>
      <title>Improved OAuth 2.0 Authorization Code Grant Flow</title>
      <link>https://docs.apimatic.io/changelog/improved-oauth-flow</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/improved-oauth-flow</guid>
      <pubDate>Fri, 15 Oct 2021 15:40:06 GMT</pubDate>
      <description>The OAuth 2.0 authorization code grant flow in the API Portal has been improved to make it more comprehensive and user-friendly. This includes introducing cancellable actions, access token visibility and updates to the UI for selecting scopes or resetting the token.</description>
      <content:encoded><![CDATA[<p>The OAuth 2.0 authorization code grant flow in the API Portal has been improved to make it more comprehensive and user-friendly. This includes introducing cancellable actions, access token visibility and updates to the UI for selecting scopes or resetting the token.</p>
<p>Previously, the API Portal supported a basic form of OAuth 2 authorization grant flow. If you clicked on the <strong>Get Token</strong> button, the state was not cancellable and the user remained stuck until the consent credentials were provided. Furthermore, the access token obtained was not visible to the user.</p>
<p>Now, once the user clicks on the <strong>Get Token</strong> button in the API Portal, a new tab will open to complete the OAuth consent step, with an option to cancel the operation.</p>
<p>After successfully completing the consent flow, the user is notified and redirected back to the API Portal, and the OAuth access token is set in the config for use with the API calls. The user is also able to see the authorization token details (including access token, refresh token and token type) along with the expiry timer of the token. At any point, the user can request to reset the token using the <strong>Reset Token</strong> button.</p>
<p>Moreover, the UI for selecting and removing scopes has been revamped to make selection easier.</p>
<p><img src="https://docs.apimatic.io/images/changelog/auth-code-grant.gif" alt="Auth Code Grant Flow"></p>
]]></content:encoded>
      <category>Improvement</category>
      <category>API Portal</category>
    </item>
    <item>
      <title>Support Added for OpenAPI v3 Discriminator Mapping Information</title>
      <link>https://docs.apimatic.io/changelog/added-support-for-openapi-discriminator-mapping</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/added-support-for-openapi-discriminator-mapping</guid>
      <pubDate>Mon, 27 Sep 2021 04:36:13 GMT</pubDate>
      <description>Changelog for announcement of release for OpenAPI discriminator mapping information</description>
      <content:encoded><![CDATA[<p>The <a href="https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.0.md#discriminatorObject">Discriminator object</a> in OpenAPI v3 supports a set of mapping values that helps determine which schema to map to based on the discriminator property&#39;s value in the payload. We have now added support for this set of mapping values in our OpenAPI v3 import and export. Previously, only the key or <code>title</code> of each schema involved in the hierarchy was considered as its discriminator value or one provided using the <code>x-discriminator-value</code> extension. </p>
<h2>Details</h2>
<p>The information in the <a href="https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.0.md#discriminatorObject">Discriminator object</a> mapping values will now be mapped to the <a href="https://docs.apimatic.io/define-apis/models/#discriminator-value">Discriminator Value</a> of each <a href="https://docs.apimatic.io/define-apis/models/">Model</a> in APIMatic that is involved in the hierarchy. </p>
<pre><code>components:
  schemas:
    Pet:
      type: object
      required:
      - pet_type
      properties:
        pet_type:
          type: string
      discriminator:
        propertyName: pet_type
        mapping:
          cachorro: Dog
    Cat:
      allOf:
      - $ref: &#39;#/components/schemas/Pet&#39;
      - type: object
        # all other properties specific to a `Cat`
        properties:
          name:
            type: string
    Dog:
      allOf:
      - $ref: &#39;#/components/schemas/Pet&#39;
      - type: object
        # all other properties specific to a `Dog`
        properties:
          bark:
            type: string
</code></pre>
<p>In the example above, the model <code>Dog</code> will have a discriminator value of <code>cachorro</code> as specified in the mapping values of model <code>Pet</code>. Whereas, the model <code>Cat</code> will have a discriminator value of <code>Cat</code> since it has no mapping information available and, therefore, the schema&#39;s name is picked up as its discriminator value.</p>
<p><img src="https://docs.apimatic.io/images/changelog/new-discriminator-mapping.png" alt="Dog Discriminator Value"></p>
<h2>Impact</h2>
<ul>
<li><p>If you&#39;ve been using Discriminator <code>mapping</code> in your OpenAPI v3 file, re-importing it can replace the existing Discriminator values of your models with the ones specified in the mapping defined. This can impact your SDK generation, portal generation as well as transformations. To disable this, you can upload a <a href="https://docs.apimatic.io/manage-apis/apimatic-metadata/">Metadata file</a> along with your OpenAPI specification in the form of a ZIP file. This metadata file should set the <code>ImportFromOpenApiDiscriminatorMapping</code> <a href="https://docs.apimatic.io/api-transformer/configuring-transformer/#import-settings">import setting</a> as <code>false</code>. Alternatively, you should remove the mapping information from your API specification to avoid issues.</p>
</li>
<li><p>If your API has discriminator values set for models, exporting such APIs to OpenAPI v3 will also export mapping information. To disable this, you will have to first re-import your API specification along with a <a href="https://docs.apimatic.io/manage-apis/apimatic-metadata/">Metadata file</a> in a ZIP file. This metadata file should set the <code>ExportDiscriminatorMappingValues</code> <a href="https://docs.apimatic.io/api-transformer/configuring-transformer/#export-settings">export setting</a> as <code>false</code>. Exporting this API then at any later time will not export the mapping information anymore.</p>
</li>
<li><p>If you&#39;ve been using the <a href="https://docs.apimatic.io/specification-extensions/swagger-codegen-extensions/#discriminator-value-extension"><code>x-discriminator-value</code> extension</a> to specify the Discriminator value for your model, it will make more precedence than the information available in the discriminator mapping definition.</p>
</li>
</ul>
]]></content:encoded>
      <category>New</category>
      <category>OpenAPI</category>
      <category>Discriminator</category>
    </item>
    <item>
      <title>&gt;-</title>
      <link>https://docs.apimatic.io/changelog/support-added-for-openapi31</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/support-added-for-openapi31</guid>
      <pubDate>Wed, 22 Sep 2021 04:36:13 GMT</pubDate>
      <description>&gt;-</description>
      <content:encoded><![CDATA[<p>Here at APIMatic, we are excited to finally announce support for <a href="https://www.openapis.org/blog/2021/02/18/openapi-specification-3-1-released">OpenAPI&#39;s newer version</a> <code>v3.1</code> in all our major offerings including API Transformer, Developer Experience Portal and Code Generation. This format has now become a part of our ever-growing list of <a href="https://www.apimatic.io/transformer#supported-formats">supported input and output formats</a>. </p>
<h2>Where is This Format Supported in APIMatic?</h2>
<p>All products of APIMatic now support this format. You can <a href="https://docs.apimatic.io/manage-apis/create-or-import-api/#import-api-definition">import</a> your OpenAPI <code>v3.1</code> files into your Dashboard to generate a portal or SDK. You can also easily <a href="https://docs.apimatic.io/api-transformer/transform-api-spec/">transform</a> from one API description format to OpenAPI <code>v3.1</code> or vice versa.</p>
<h2>What Features of OpenAPI v3.1 are Supported?</h2>
<p>OpenAPI <code>v3.1</code> comes with a few structural changes as well as some new features. List of currently supported changes from this <a href="https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md">newer version of OpenAPI</a> are listed below:</p>
<ul>
<li><a href="https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#schema-object">Schema Object</a> is now a super set of the <a href="https://datatracker.ietf.org/doc/html/draft-bhutton-json-schema-00">JSON Schema Draft 2020-12</a>. We support the following changes (in both import and export) that are part of this draft:<ul>
<li>Support for examples which was not available in the Schema object of OpenAPI <code>v3.0</code>.</li>
<li><code>ExclusiveMinimum</code> and <code>ExclusiveMaximum</code> are now of type <code>Number</code>. Instead of using <code>Maximum</code> and a boolean <code>ExclusiveMaximum</code>, as was the case in the older draft supported by OpenAPI, you can now simply replace them with a numeric <code>ExclusiveMaximum</code>. The same applies to <code>ExclusiveMinimum</code>.</li>
<li>The <code>type</code> keyword in a Schema Object can be an array if it represents multiple types. </li>
<li>Instead of using the <code>nullable</code> keyword as was the case in OpenAPI <code>v3.0</code>, you can use <code>type</code> set to <code>null</code> instead.</li>
<li><code>format</code> is now replaced by <code>contentEncoding</code>.</li>
<li>An empty schema indicates a binary type schema. This is in contrast to using <code>type</code> as <code>string</code> and <code>format</code> as <code>binary</code> in OpenAPI <code>v3.0</code>.</li>
<li>Support for a fixed value schema now uses a new keyword <code>const</code>.</li>
</ul>
</li>
<li><code>JsonSchemaDialect</code> in the root object can be used to store default JSON Schema Dialect information for schemas used in the API specification document. This is supported in export.</li>
<li><a href="https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#infoObject">Info Object</a> can now have <code>summary</code> along with <code>description</code>. In APIMatic, the <code>description</code> will take precedence over the <code>summary</code>.</li>
<li><a href="https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#referenceObject">Reference Object</a> <code>$ref</code> can now contain <code>summary</code> and <code>description</code> to override the corresponding properties of the component being referenced. This is supported in import.</li>
<li>Support for remaining features of OpenAPI <code>v3.1</code> that have not changed since <code>v3.0</code> remains the same.</li>
</ul>
<p>If you are looking to migrate from an older version of OpenAPI to the latest version or vice versa or simply looking to generate a portal or SDK with this newer version, bring your API to APIMatic today.</p>
<p>Learn more in our latest blog <a href="https://www.apimatic.io/blog/2021/09/introducing-openapi-3-1-support-in-apimatic/">at this link</a> where we break down all shiny features of this version in much more detail.</p>
]]></content:encoded>
      <category>New</category>
      <category>OpenAPI</category>
    </item>
    <item>
      <title>Improvements and Changes to Validation Messages</title>
      <link>https://docs.apimatic.io/changelog/added-improvements-and-changes-to-validation-messages</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/added-improvements-and-changes-to-validation-messages</guid>
      <pubDate>Tue, 21 Sep 2021 09:35:04 GMT</pubDate>
      <description>Notifies users about changes to validation message.</description>
      <content:encoded><![CDATA[<p>Based on internal and customer feedback, we have revamped our validation messages shown to users during import or generation of artifacts like SDKs/Portal, etc. This release improves message content, introduces a couple of new validation messages and changes severity of some of the older messages. </p>
<blockquote>
<p><strong>Heads-up! Breaking Change</strong></p>
<p>   It is recommended to especially make note of the messages for which severity has been upgraded. If you were previously running into those messages, you may no longer be able to generate SDKs, Docs/DX Portal or export to the chosen format unless you make the required fixes to your API.</p>
</blockquote>
<h2>Changes to Severity of Validation Messages</h2>
<p>We&#39;ve upgraded severity of a few messages which are given below:</p>
<ol>
<li>If an <a href="https://docs.apimatic.io/define-apis/models/#model-type">enumeration model</a> field is set to an array, the validation message thrown will now be an <strong>Error</strong> instead of a <strong>Warning</strong>.</li>
<li>If the default value of a <a href="https://docs.apimatic.io/define-apis/server-configuration/#template-parameters">server template parameter</a> is invalid, the validation message thrown in this case will now be an <strong>Error</strong> instead of a <strong>Warning</strong>.</li>
</ol>
<h2>New Validation Messages</h2>
<p>The following new validation messages have been added. Their corresponding severity is also mentioned:</p>
<ol>
<li><p><strong>Error</strong>: If a model of type <a href="https://docs.apimatic.io/define-apis/models/#model-type">Exception</a> is used for a component which is not an error response.</p>
</li>
<li><p><strong>Error</strong>: If a model of type <a href="https://docs.apimatic.io/define-apis/models/#model-type">Enumeration</a> has a base type set.</p>
</li>
<li><p><strong>Error</strong>: If a model of type <a href="https://docs.apimatic.io/define-apis/models/#model-type">Enumeration</a> has duplicate values.</p>
</li>
<li><p><strong>Error</strong>: If the required name for a component is missing e.g. a parameter name.</p>
</li>
<li><p><strong>Error</strong>: If an <a href="https://docs.apimatic.io/define-apis/api-authentication/#custom-header">Authentication header</a> is also added in the <a href="https://docs.apimatic.io/define-apis/additional-headers/">Additional Headers</a> list with the same name.</p>
</li>
<li><p><strong>Error</strong>: If a component is marked as constant/read-only but no default value is set.</p>
</li>
<li><p><strong>Warning</strong>: If the value of the maximum limit type restriction attribute is less than the value specified for the minimum limit. This applies to the following cases:</p>
<ul>
<li>If, for arrays, the value of <code>Maximum Items</code> is less than the value for <code>Minimum Items</code>. </li>
<li>If, for objects, the value of <code>Maximum Properties</code> is less than the value for <code>Minimum Properties</code>.</li>
<li>If, for numbers, the value of <code>Maximum</code> is less than the value for <code>Minimum</code>.</li>
<li>If, for strings, the value of <code>Maximum Length</code> is less than the value for <code>Minimum Length</code>.</li>
</ul>
</li>
<li><p><strong>Information</strong>: If an <code>Authorization</code> header is found in an endpoint when no global authentication mechanism is set up for the API, then the user is recommended to set up a global authentication instead.</p>
</li>
</ol>
<p>While an API specification file is imported, some fixes are automatically made to the file to prevent a user from facing any issues in output generation. However, end-users were not being informed about those fixes. We have now added validation messages that let users know when an issue is detected and automatically fixed. The severity of all these messages is set to <code>Warning</code>. </p>
<ol start="9">
<li><strong>Warning</strong>: If a <a href="https://docs.apimatic.io/define-apis/server-configuration/#template-parameters">server parameter</a> is declared as an array, it is converted to a non-array entity.</li>
<li><strong>Warning</strong>: If a <a href="https://docs.apimatic.io/define-apis/server-configuration/#template-parameters">server parameter</a> is declared as a map or object it is converted to a primitive type entity.</li>
<li><strong>Warning</strong>: If a <a href="https://docs.apimatic.io/define-apis/server-configuration/#template-parameters">server parameter</a> is declared as constant/read-only, it is marked as a non-constant entity.</li>
<li><strong>Warning</strong>: If the <a href="https://docs.apimatic.io/define-apis/global-errors/">global</a> or <a href="https://docs.apimatic.io/define-apis/endpoints/#error-response-codes">endpoint level</a> errors are not sorted in increasing order of their error status codes, they are automatically sorted.</li>
<li><strong>Warning</strong>: If a component uses primitive type <a href="https://docs.apimatic.io/define-apis/field-types/#additional-types"><code>Dynamic</code></a> and is also declared as an array, it is changed to a non-array component.</li>
<li><strong>Warning</strong>: If a custom type has a <a href="https://docs.apimatic.io/define-apis/discriminators/">Discriminator</a> declared but a corresponding discriminator field is not declared in the same custom type, it is automatically added.</li>
<li><strong>Warning</strong>: If an example/sample value has leading or trailing white-space characters, the example is automatically trimmed from the start and end.</li>
<li><strong>Warning</strong>: If the example/sample value is of boolean type and the value uses some other variant than <code>true</code> and <code>false</code>, the variant is converted to one which is supported.</li>
<li><strong>Warning</strong>: If the name of a component has leading or trailing white-space characters, the name is automatically trimmed from the start and end.</li>
<li><strong>Warning</strong>:  If the user-friendly description of a component has leading or trailing white-space characters, the description is automatically trimmed from the start and end.</li>
<li><strong>Warning</strong>: For Code generation purposes, the endpoint parameters should be sorted in order of their optional characteristic i.e. required parameters should be placed first while optional parameters should be placed at the end. If this is not the case by default, the parameters are automatically sorted accordingly.</li>
</ol>
<h2>Improvements to Message Content</h2>
<p>We have improved the message content so that it gives more information than before in order to help you trace the issue more quickly. The message content will now be more consistent in structure and easier to read.</p>
<p>An example of an old validation message is:</p>
<p><img src="https://docs.apimatic.io/images/changelog/old-validation-message.png" alt="Old Validation Message"></p>
<p>The same message now looks like: </p>
<p><img src="https://docs.apimatic.io/images/changelog/new-validation-message.png" alt="New Validation Message"></p>
<p>Here,  <code>[APIMATICPRE_V404]</code> is the unique Id assigned to the message against which you can find more details about the issue which caused the message to be logged.</p>
<h2>Detailed Documentation for Each Validation Message</h2>
<p>We have added <a href="https://docs.apimatic.io/rulesets/overview/">reference documentation</a> for you to find more details about each and every validation message you run into. The details can range from a detailed description of the issue, external links that can help provide more information, tips/hints that can be followed to resolve the issue and any contextual tags, etc. Links to the documentation are given below:</p>
<ul>
<li><a href="https://docs.apimatic.io/rulesets/apimatic-post-processing-validation/overview">APIMatic Post-Processing Validation</a></li>
<li><a href="https://docs.apimatic.io/rulesets/apimatic-post-processing-codegen-validation/overview">APIMatic Post-Processing Validation for Code-Generation</a></li>
<li><a href="https://docs.apimatic.io/rulesets/apimatic-preliminary-validation/overview">APIMatic Preliminary Validation</a></li>
<li><a href="https://docs.apimatic.io/rulesets/apimatic-preliminary-linting/overview">APIMatic Preliminary Linting</a></li>
<li><a href="https://docs.apimatic.io/rulesets/apimatic-codegen-validation/overview">APIMatic Validation for Code Generation</a></li>
<li><a href="https://docs.apimatic.io/rulesets/apimatic-docs-linting/overview">APIMatic Linting for Portal Generation</a></li>
</ul>
]]></content:encoded>
      <category>Improvement</category>
      <category>Validation</category>
    </item>
    <item>
      <title>Revamped PHP SDKs as Immutable Clients, Added Support for PHP 8.0</title>
      <link>https://docs.apimatic.io/changelog/php-v3-update</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/php-v3-update</guid>
      <pubDate>Thu, 09 Sep 2021 10:51:12 GMT</pubDate>
      <description>APIMatic's PHP SDKs have been refactored to immutable clients and now support PHP 8.0 with updated dependencies. All static analysis and linting issues have been resolved, support for optional and nullable has been added along with a new restructured authorization flow, and mu...</description>
      <content:encoded><![CDATA[<p>APIMatic&#39;s PHP SDKs have been refactored to immutable clients and now support PHP 8.0 with updated dependencies. All static analysis and linting issues have been resolved, support for optional and nullable has been added along with a new restructured authorization flow, and much more.</p>
<h2>Details</h2>
<h3>Updated Language and Runtime Requirement</h3>
<p>We are now supporting PHP 7.2 and above.</p>
<h3>Updated Dependencies</h3>
<p>Updated other dependencies to support PHP 8.0:</p>
<ul>
<li>apimatic/jsonmapper: v2.0.2</li>
<li>squizlabs/PHP_codesniffer: v3.5</li>
<li>phan/phan: v3.0</li>
<li>PHPunit/PHPunit: v8.5</li>
</ul>
<h3>Applying Coding Standards</h3>
<p>All static analysis and linting issues have been resolved, which resulted in generating clean and human readable code.</p>
<h3>Immutable Client</h3>
<p>To make the client thread safe and remove the need of explicit synchronization and defensive copying, we have made the client immutable. The following code explains how to work with an immutable client in PHP:</p>
<pre><code class="language-php">// Initialize the immutable client
$client = new MyClient([
    &#39;environment&#39; =&gt; &#39;production&#39;,
    &#39;timeout&#39; =&gt; 10,
    &#39;port&#39; =&gt; &#39;80&#39;,
]);

// Get a copy of client&#39;s configurations
$configurations = $client-&gt;getConfiguration();

// Clone a client by overriding some of its configuration
$newClient = $client-&gt;withConfiguration([
    &#39;timeout&#39; =&gt; 20,
]);
</code></pre>
<h3>Authorization</h3>
<p>Authorization structure has been greatly improved in APIMatic v3 SDKs. We now have separate authorization managers, which are not only responsible for encapsulation of authorization credentials, but are also used to apply authorization to each endpoint (where required). Besides updating flow for authorization handling, we have also added support for custom authorization and OAuth 2.0.</p>
<p>The following code sample shows how to set/get authorization in the client:</p>
<pre><code class="language-php">// Initialize the immutable client with basic authorization
$client = new MyClient([
    &#39;environment&#39; =&gt; &#39;production&#39;,
    &#39;username&#39; =&gt; &#39;api-key&#39;,
    &#39;password&#39; =&gt; &#39;Qaws2W233WedeRe4T56G6Vref2&#39;,
]);

// Get username and password from configuration
$username = $client-&gt;getBasicAuthCredentials()-&gt;getUserName();
$password = $client-&gt;getBasicAuthCredentials()-&gt;getPassword();

// Check if client’s username and password match with the new ones
$areEqual = $client-&gt;getBasicAuthCredentials()-&gt;equals($newUser, $newPass);
</code></pre>
<h3>Required Model Constructor Arguments</h3>
<p>In PHP, only required fields are a part of a model’s constructor, so models can not be initialized without setting their required parameters.</p>
<h3>Optional and Nullable</h3>
<p>PHP SDKs now provide support for optional and nullable. You can get/set and unset the <code>optional</code> and <code>nullable</code> fields. The following example shows how to set/unset any field in PHP:</p>
<pre><code class="language-php">// Create a sample model object with its required fields
$model = new SampleModel(&quot;requiredField1&quot;, &quot;requiredField2&quot;, &quot;requiredField3&quot;);

$model-&gt;setAnotherField(&quot;This property is both optional and nullable&quot;);

// EITHER: Unset property will not be sent in the JSON request
$model-&gt;unsetAnotherField();

// OR: Null property will be sent as a “null” in the JSON request
$model-&gt;setAnotherField(null);
</code></pre>
<h3>File Uploads</h3>
<p>Added support for sending a file as a body with the specified content type for its headers. You can send the file by wrapping it in a <code>FileWrapper</code> as shown:</p>
<pre><code class="language-php">// Wrap image file in a file wrapper
$image = FileWrapper::createFromPath(&quot;path/to/image&quot;);

// Use the client to send it as body
$client-&gt;getBinaryApi()-&gt;sendFileAsBody($image);
</code></pre>
<h3>HttpCallback as Configuration</h3>
<p>With the new PHP SDKs, you can also optionally pass the HttpCallback in configurations:</p>
<pre><code class="language-php">// Create HttpCallback object
$httpCallback = new HttpCallback(
    function ($request) {
        // To be called before executing every request
        // User can work with $request here
    },
    function ($httpContext) {
        // To be called after executing every request
        $request = $httpContext-&gt;getRequest();
        $response = $httpContext-&gt;getResponse();
        // User can work with $request &amp; $response here
    },

);

// Initialize the immutable client with http callback
$client = new MyClient([
    &#39;environment&#39; =&gt; &#39;production&#39;,
    &#39;httpCallback&#39; =&gt; $httpCallback,
]);
</code></pre>
<h3>Improved Readme and Docs</h3>
<p>Updated the Authorization section and code samples in the README as well as documentation, guiding users to work with the new authorization flow.</p>
]]></content:encoded>
      <category>Improvement</category>
      <category>PHP</category>
    </item>
    <item>
      <title>Support for User-Defined Test Cases Added in APIMatic For RAML v1.0</title>
      <link>https://docs.apimatic.io/changelog/added-support-for-user-defined-test-cases-raml10</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/added-support-for-user-defined-test-cases-raml10</guid>
      <pubDate>Thu, 09 Sep 2021 03:48:45 GMT</pubDate>
      <description>&gt;-</description>
      <content:encoded><![CDATA[<p>We have added support for a RAML annotation that lets you define unit-tests for your RAML <code>v1.0</code> <a href="https://github.com/raml-org/raml-spec/blob/master/versions/raml-10/raml-10.md#methods">methods</a> within your specification. These unit-tests are then converted automatically to language-specific tests upon SDK generation.</p>
<h2>Details</h2>
<p>Until now, APIMatic <a href="https://apimatic.io/blog/2017/04/from-raml-example-objects-to-test-cases/">created test cases automatically</a> during import from RAML files that contained enough request/response example data to create useful test cases. However, we have now added the ability to let users add their own test data for each of their RAML <a href="https://github.com/raml-org/raml-spec/blob/master/versions/raml-10/raml-10.md#methods">methods</a> using our new unit tests <a href="https://github.com/raml-org/raml-spec/blob/master/versions/raml-10/raml-10.md/#annotations">annotation</a>. This test data is then converted to language specific unit tests upon SDK generation that lets users test their SDKs more efficiently.</p>
<p>You can find more details about declaring and applying the new annotation to your methods <a href="https://docs.apimatic.io/specification-extensions/raml-apimatic-annotations/#unit-tests-annotation">here</a>.</p>
<blockquote>
<p><strong>Note</strong></p>
<p>Test cases will not be auto-generated for methods containing user-defined tests.</p>
</blockquote>
]]></content:encoded>
      <category>New</category>
      <category>RAML</category>
      <category>Annotations</category>
    </item>
    <item>
      <title>OpenAPI Fix for HTTP Bearer Authentication</title>
      <link>https://docs.apimatic.io/changelog/bearer-jwt-authentication-fix</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/bearer-jwt-authentication-fix</guid>
      <pubDate>Mon, 19 Jul 2021 14:35:04 GMT</pubDate>
      <description>Describes bug fix related to changes to mapping of bearer authentication in APIMatic instead of the default JWT authentication.</description>
      <content:encoded><![CDATA[<p>We have released a fix for HTTP Bearer authentication type in our OpenAPI import/transformation which was previously treating JWT as the default bearer authentication type. However, this will no longer be the case unless the <code>bearerFormat</code> in OpenAPI explicitly declares the format to be <code>JWT</code>.</p>
<h2>Details</h2>
<p>Previously, <code>OpenAPI v3.0</code> specification files using the <code>http</code> <code>bearer</code> <a href="https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.0.md#securitySchemeObject">security scheme</a> were all imported in APIMatic with the <code>JWT</code> bearer authentication type regardless of the <code>bearerFormat</code>. However, we are now changing the behaviour to be such that a HTTP Bearer authentication would be considered of <code>JWT</code> type only if its <code>bearerFormat</code> is set to <code>JWT</code> 
otherwise it would be treated as a normal <code>HTTP Bearer</code> authentication.</p>
<blockquote>
<p><strong>Warning</strong></p>
<p>This is a breaking change as re-importing or re-transforming your OpenAPI files will change the bearer authentication type unless your file explicitly states the <code>bearerFormat</code> as <code>JWT</code>. </p>
</blockquote>
<h3>How Can I Avoid This Change?</h3>
<p>If you want to retain <code>JWT</code> as the bearer token type upon import/tranformation, you need to explicitly set <code>bearerFormat</code> as <code>JWT</code> in your OpenAPI file security scheme configuration as shown below:</p>
<pre><code class="language-json">{
  &quot;type&quot;: &quot;http&quot;,
  &quot;scheme&quot;: &quot;bearer&quot;,
  &quot;bearerFormat&quot;: &quot;JWT&quot;,
}
</code></pre>
]]></content:encoded>
      <category>Bug Fix</category>
    </item>
    <item>
      <title>APIMatic Code Generator V3</title>
      <link>https://docs.apimatic.io/changelog/apimatic-code-generator-v3-titan</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/apimatic-code-generator-v3-titan</guid>
      <pubDate>Thu, 20 May 2021 18:42:24 GMT</pubDate>
      <description>APIMatic V3 (codenamed Titan) is APIMatic's largest release to date, bringing some major improvements to the Code Generator, the API Portal and the portal publishing flow. This changelog covers the new features and improvements in the updated APIMatic Code Generator which now...</description>
      <content:encoded><![CDATA[<p>APIMatic V3 (codenamed <em>Titan</em>) is APIMatic&#39;s largest release to date, bringing some major improvements to the Code Generator, the API Portal and the portal publishing flow. This changelog covers the new features and improvements in the updated APIMatic Code Generator which now generates vastly improved SDKs.</p>
<p>Note that as part of this release, Ruby, Python, C# and Java code generators are available. A later release will add support for PHP and Node.js soon.</p>
<p>Since a lot of these changes are breaking changes, we suggest that you <strong>test your SDKs thoroughly after generating them and publishing them as a new major version</strong>.</p>
<p>Checkout all the new features and changes below:</p>
<h2>Updated Language and Runtime Versions Requirements</h2>
<p>A major part of this release included updating the target language and runtime versions in all the SDKs we generate.</p>
<p>We chose the new minimum language and runtime versions with a focus on balancing support for new features and improvements that the new versions bring with our aim for supporting the most commonly used versions in the ecosystem.</p>
<p>The new minimum language and runtime requirements are:</p>
<table>
<thead>
<tr>
<th>Language/Platform</th>
<th>Supported Versions</th>
</tr>
</thead>
<tbody><tr>
<td>C# (a.k.a .NET)</td>
<td>.NET Standard 2.0.</td>
</tr>
<tr>
<td>Java</td>
<td>Version 8+</td>
</tr>
<tr>
<td>Python</td>
<td>Version 3.7 to 3.9</td>
</tr>
<tr>
<td>Ruby</td>
<td>Version &gt;= 2.5, &lt; 3.0</td>
</tr>
<tr>
<td>PHP</td>
<td>Version &gt;= 7.2</td>
</tr>
</tbody></table>
<p>Not only do the SDKs target an updated minimum version, but they have also been refactored to use new language features where possible.</p>
<p>For example, as part of moving to Java 8, we updated the Java SDKs to use the new <a href="https://www.oracle.com/technical-resources/articles/java/jf14-date-time.html">Date and Time utilities under <code>java.time</code></a> in the Java standard library. Previously, we were using the <a href="https://www.joda.org/joda-time/">Jodatime</a> library which provided a quality replacement for the buggy Date and Time classes in the standard library prior to Java 8. Another major change in Java SDKs is the <a href="#concurrency-improvements-in-java">use of <code>CompleteableFutures</code> in endpoints methods</a>.</p>
<p>For more details, checkout the documentation on <a href="https://docs.apimatic.io/generate-sdks/supported-sdk-version-dependencies#supported-sdk-language-versions">SDK Language Version Support</a>.</p>
<h2>Update to Dependencies</h2>
<p>As part of migrating the SDKs to newer language and runtime versions, we also updated the dependencies used in the SDKs to use newer versions where possible. These dependencies include HTTP client libraries and other utility libraries needed by the SDK to send and receive JSON in the API calls. Our goal was again to enable compatibility with the maximum number of user codebase where these SDKs would be installed.</p>
<p>Note that we also monitor the dependencies closely for security vulnerability and where possible, provide a resolution as early as possible.</p>
<p>For more details on dependencies, check out the documentation on <a href="https://docs.apimatic.io/generate-sdks/supported-sdk-version-dependencies#supported-dependencies">Supported SDK Dependencies</a>.</p>
<h2>Applying Coding Standards</h2>
<p>One of the goals of the APIMatic CodeGen is to generate clean, readable code that would otherwise have been written by a human being. In order to keep the code inside our SDKs to a reasonable standard, our SDKs adhere to popular coding conventions which we test for using code style analyzers and linting tools.</p>
<p>As part of this release, we&#39;ve updated the Code Generator so that the generated Java and C# SDKs now adhere to popular coding standards:</p>
<ul>
<li>The generated Java SDKs now adhere to the <a href="https://google.github.io/styleguide/javaguide.html">Google Java Style Guide</a>. This can be tested using the <a href="https://checkstyle.org/eclipse-cs/#!/">Eclipse Checkstyle Plugin</a>.</li>
<li>The generated C# SDKs now adhere to the <a href="https://documentation.help/StyleCop/StyleCop%20Rules.html">default StyleCop Coding Style</a>. This can be tested using <a href="https://documentation.help/StyleCop/StyleCop.html">StyleCop</a>.</li>
</ul>
<p>Our Ruby and Python SDKs were also kept up-to-date with the coding standards we follow for them.</p>
<p>For more information, check out our documentation about <a href="https://docs.apimatic.io/generate-sdks/sdk-coding-standards">SDK Coding Standards</a>.</p>
<h2>New Immutable Clients in SDKs</h2>
<p>One of the biggest design-related changes to the SDKs in this release is the refactoring of our SDKs into <em>Immutable Clients</em>.</p>
<p>An Immutable Client doesn&#39;t allow the user of the client to mutate the client (i.e change its state) once it has been created. At the beginning, this might look like a limitation to design our clients like this; however, to the contrary, Immutable Clients make it easier to write network-related code as code that deals with network requests (like the code written by the SDK users) often uses multi-threading or concurrency for performance or efficiency reasons. By making the clients immutable, it becomes easier to reason about multi-threaded or concurrent code because the immutable clients are inherently thread-safe and don&#39;t require explicit synchronization or defensive copying when working with them.</p>
<p>To make clients immutable, we make sure that all the necessary configuration is taken from the user at the time of the instantiation of the client. To make this easy for the user, we provide builders for the client in Java, C# and PHP; for Python and Ruby, the configuration is passed in as keyword arguments in the client&#39;s constructor. There are no setters on the client that allow the configuration to be modified once the client has been created. Instead, the clients can be cloned while changing some of the configuration. Cloning clients like this helps clone the internal state of the client while overriding only some configuration.</p>
<p><strong>Java</strong></p>
<pre><code class="language-java">// Create new client instance
MyClient client = new MyClient.Builder()
    .environment(Environment.PRODUCTION)
    .httpClientConfig(config -&gt; config.timeout(30))
    .build();

// Clone client while modifying configuration
MyClient modifiedClient = client.newBuilder()
    .environment(Environment.SANDBOX)
    .build();
</code></pre>
<p><strong>C#</strong></p>
<pre><code class="language-csharp">// Create new client instance
var client = new MyClient.Builder()
    .Environment(Environment.Production)
    .HttpClientConfig(config =&gt; config.Timeout(TimeSpan.FromSeconds(30)))
    .Build();

// Modify client by cloning it
var modifiedClient = client.ToBuilder()
    .Environment(Environment.Sandbox)
    .Build();
</code></pre>
<p><strong>Python</strong></p>
<pre><code class="language-python"># Create new client instance
client = MyClient(
    environment = Environment.PRODUCTION,
    timeout = 30)
</code></pre>
<p><strong>Ruby</strong></p>
<pre><code class="language-ruby"># Create new client instance
client = MySdk::Client.new(
  environment: Environment::PRODUCTION,
  timeout: 30
)
</code></pre>
<p><strong>PHP</strong></p>
<pre><code class="language-php">// Initialize the immutable client
$client = new MyClient([
    &#39;environment&#39; =&gt; &#39;production&#39;,
    &#39;timeout&#39; =&gt; 10,
    &#39;port&#39; =&gt; &#39;80&#39;,
]);

// Get a copy of client&#39;s configurations
$configurations = $client-&gt;getConfiguration();

// Clone a client by overriding some of its configuration
$newClient = $client-&gt;withConfiguration([
    &#39;timeout&#39; =&gt; 20,
]);
</code></pre>
<p>The new immutable design of the client also helps solve a long-standing issue in the SDKs where there was wide-spread usage of singleton in many places which prevented the users of the SDKs from creating multiple client instances with different configurations.</p>
<h2>Timeout and Automatic Retries on API Call Errors</h2>
<p>To create fault-tolerant network applications, it&#39;s important that an application doesn&#39;t cede control of the execution to another service or application. This principle is critical when writing applications that call APIs because API calls can timeout, return a temporary error, return a permanent error or become unreachable.</p>
<p>SDKs generated by APIMatic help you write fault-tolerant applications by helping deal with these kinds of errors. All SDKs come with support for timing out API calls that are taking too long and for retrying API calls that have a temporary error.</p>
<ul>
<li><em>Timeouts</em> ensure that the application isn&#39;t stuck on an API call that&#39;s taking too long, perhaps because of an issue at the API server end or due to a network error.</li>
<li><em>Retries</em> means retrying failing API calls in case of transient errors. Note that only API calls that are safe to retry (usually idempotent API calls) will be retried.</li>
</ul>
<p>APIMatic uses an <em>exponential back-off algorithm</em> to calculate time between retries. The idea behind using exponential back-off with retry is that instead of retrying after waiting for a fixed amount of time, we increase the waiting time between retries after each retry failure. This gives the API server some breathing time so that if the fault is due to service overload, it could get resolved faster.</p>
<p>By default, all SDKs come with timeouts and retries enabled. You can configure the timeout and retries behavior when instantiating the client like this:</p>
<p><strong>Java</strong></p>
<pre><code class="language-java">MyClient client = new MyClient.Builder()
    .httpClientConfig(
      config -&gt; config.timeout(10)
                      .numberOfRetries(2)
                      .backOffFactor(2)
    )
    .build();
</code></pre>
<p><strong>C#</strong></p>
<pre><code class="language-csharp">var client = new MyClient.Builder()
    .HttpClientConfig(
      config =&gt; config.Timeout(TimeSpan.FromSeconds(10))
                      .NumberOfRetries(2)
                      .BackOffFactor(2))
    .Build();
</code></pre>
<p><strong>Python</strong></p>
<pre><code class="language-python">client = MyClient(
    timeout = 10,
    max_retries = 2,
    backoff_factor = 2)
</code></pre>
<p><strong>Ruby</strong></p>
<pre><code class="language-ruby">client = MySdk::Client.new(
  timeout: 30,
  max_retries: 2,
  backoff_factor: 2
)
</code></pre>
<p><strong>PHP</strong></p>
<pre><code class="language-php">$client = new TesterClient([
    &#39;timeout&#39;         =&gt; 10,
    &#39;numberOfRetries&#39; =&gt; 2,
    &#39;backOffFactor&#39;   =&gt; 2
]);
// Endpoint response is wrapped in a type called ApiResponse
$response = $api-&gt;getData();

// Access the response data and deserialized response body like this:
$responseStatusCode = $response-&gt;getStatusCode();
$responseHeaders = $response-&gt;getHeaders();
$result = $response-&gt;getBody();
</code></pre>
<h2>Access to HTTP Response Data</h2>
<p>The APIMatic Code Generator can now be configured to create SDKs that also return the HTTP response information like response headers, status code and body on API calls. This feature is supported in all languages.</p>
<p>This feature is optional and can be turned on by setting the &quot;Return Complete HTTP Response&quot; <a href="https://docs.apimatic.io/generate-sdks/customize-sdks/codegen-settings/codegen-settings-overview">CodeGen setting</a> to <code>true</code>. This will change the endpoint methods so that they return the HTTP response data along with the deserialized or parsed form of the endpoint result.</p>
<p>This code sample shows how the HTTP response data can be accessed after an endpoint call:</p>
<p><strong>Java</strong></p>
<pre><code class="language-java"> api.getDataAsync.thenAccept(response -&gt; {
  // response is an instance of ApiResponse&lt;ENDPOINT_RESPONSE_TYPE&gt;.

  // You can access the response data and the deserialized body like this:
  int responseStatusCode = response.getStatusCode();
  Headers responseHeaders = response.getHeaders();
  GetDataResponse result = response.getResult();
}).exceptionally(exception -&gt; {
    // Do something in case of an error...
    return null;
});
</code></pre>
<p><strong>C#</strong></p>
<pre><code class="language-cs">// Endpoint methods return an instance of ApiResponse&lt;&gt;
ApiResponse&lt;GetDataResponse&gt; response = await api.GetDataAsync();

// Access the response data and deserialized response body like this:
int responseStatusCode = response.StatusCode;
Dictionary&lt;string, string&gt; responseHeaders = response.Headers;
GetDataResponse result = response.Data;
</code></pre>
<p><strong>Ruby</strong></p>
<pre><code class="language-ruby"># Endpoint response is wrapped in a type called ApiResponse
response = api.get_data()

# Access the response data and deserialized response body like this:
response_status_code = response.status_code
response_headers = response.headers
result = response.data
</code></pre>
<p><strong>Python</strong></p>
<pre><code class="language-python"># Endpoint response is wrapped in a type called ApiResponse
response = api.get_data()

# Access the response data and deserialized response body like this:
response_status_code = response.status_code
response_headers = response.headers
result = response.body
</code></pre>
<h2>Support for XML</h2>
<p>We&#39;ve added support for sending and receiving XML in the API calls. This is now supported in all SDKs. Previously, we only supported sending and receiving JSON in the request and response bodies in our SDK.</p>
<p>If you have an API definition that uses XML in the request or response bodies, you can now import it into APIMatic and generate SDKs that make the right API call. Since the SDKs wrap the API calls and hide the low-level HTTP details, the SDK user doesn&#39;t have to worry about what the XML request or response body looks like and what data needs to be sent as an attribute or as an element. The SDK is responsible for handling the correct serialization and deserialization of the data into and back from XML.</p>
<p>To start using this feature, you must document the XML request and responses for your API using the OpenAPI format or in one of the supported API specification formats. For more information, checkout this changelog about the <a href="https://docs.apimatic.io/v4/changelog#support-for-xml-added-in-api-transformer">Support for XML in API Transformer</a>.</p>
<blockquote>
<p><strong>Note</strong></p>
<p>The API Portal hasn&#39;t yet been updated to work with API definitions that use XML. Therefore, the documentation on the API Portal might not be complete and some features like the &quot;Try It Out&quot; might now work. We&#39;re working on this. 😊</p>
<p>Also, we didn&#39;t add support for XML namespaces and prefixes in the Code Generator because the OpenAPI specification isn&#39;t clear on the semantics around them. Please reach out to our support in case this is blocking you.</p>
</blockquote>
<h2>Deprecating Endpoints</h2>
<p>You can now mark endpoints as deprecated. An endpoint that&#39;s marked as deprecated will result in a compiler warning or a notice logged to the console when the endpoint method is called by the SDK user.</p>
<p>You can even provide a custom message and a deprecation version in your API definition which will be used by the SDK as part of the deprecation notice.</p>
<p>Check out how we set the endpoint as deprecated in an OpenAPI definition and how that translates into the SDK:</p>
<p><strong>OpenAPI</strong></p>
<p>Check out this documentation on <a href="https://docs.apimatic.io/specification-extensions/swagger-codegen-extensions#deprecation-details">setting a endpoint as deprecated in OpenAPI</a>.</p>
<p>Here&#39;s a quick glimpse at how you would mark an operation as deprecated in the OpenAPI definition:</p>
<pre><code class="language-json">&quot;get&quot;: {
    ...
    &quot;operationId&quot;: &quot;getData&quot;,
    &quot;summary&quot;: &quot;Deprecated operation&quot;,
    &quot;deprecated&quot;: true,
    &quot;x-deprecation-details&quot;: {
        &quot;message&quot;: &quot;Use the NewData endpoint instead.&quot;,
        &quot;deprecatedInVersion&quot;: &quot;2.0&quot;
    }
}
</code></pre>
<p><strong>Java</strong></p>
<p>The endpoint method gets a <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html"><code>@Deprecated</code></a> attribute attached to it. This results in a compiler warning that looks like this:</p>
<pre><code>The method getDataAsync() from the type ApiController is deprecated
</code></pre>
<p>In addition to this, the Javadoc for this method contains a deprecation notice that looks like this:</p>
<pre><code>Use the newData method instead. This method was deprecated in version 2.0.
</code></pre>
<p><strong>C#</strong></p>
<p>The endpoint method gets an <a href="https://docs.microsoft.com/en-us/dotnet/api/system.obsoleteattribute?view=netstandard-2.0"><code>[Obsolete]</code></a> attribute added to it.</p>
<p>This results in a compiler warning in places that reference this deprecated method:</p>
<pre><code>Warning	CS0618: &#39;ApiController.GetDataAsync(CancellationToken)&#39; is obsolete: &#39;Use the NewData endpoint instead. This method was deprecated in version 2.0.&#39;
</code></pre>
<p><strong>Ruby</strong></p>
<p>The endpoint methods logs a warning to the console when it&#39;s run. The warning looks like this:</p>
<pre><code>Endpoint get_data in ApiController is deprecated since version 2.0. Use the NewData endpoint instead.
</code></pre>
<p><strong>Python</strong></p>
<p>The endpoint method gets a <a href="https://pypi.org/project/Deprecated/"><code>@deprecated</code></a> decorator added to it.</p>
<p>This results in a warning whenever this method is run. The warning looks like this:</p>
<pre><code>DeprecationWarning: Call to deprecated method get_data.
(Use the NewData endpoint instead.) -- Deprecated since version 2.0.
</code></pre>
<p><strong>PHP</strong></p>
<p>The endpoint method gets a <code>@deprecated</code> annotation added to it.</p>
<p>The SDK will also print the following warning message when executing deprecated API calls:</p>
<pre><code>Method DataApi::getData is deprecated.
</code></pre>
<h2>Nullable Properties in Models</h2>
<p>The Code Generator now supports generating Java, C# and PHP SDKs that contain <em>nullable properties</em> in models.</p>
<p>Previously, the Code Generator only supported <em>optional</em> properties which meant that properties that weren&#39;t assigned a value by the user in the SDK were skipped and not sent in the HTTP request.</p>
<p>With full support for nullable properties, a <code>null</code> value will be sent in case the user doesn&#39;t assign a value to a property after initializing an instance of the model. In case a model is both nullable and optional, the user can either set <code>null</code> as the value or skip the property by &quot;unsetting&quot; it. Check out this example which demonstrates the usage of a property that&#39;s both nullable <strong>and</strong> optional:</p>
<p><strong>Java</strong></p>
<pre><code class="language-java">SampleModel modelInstance = new SampleModel(OperationType.SUM, 2, 3);
model.setAnotherField(&quot;this is property is both optional AND nullable&quot;);

// EITHER: Unset property will not be sent in the JSON request
modelInstance.unsetAnotherField();

// OR: Null property will be sent as a &quot;null&quot; in the JSON request
modelInstance.setAnotherField(null)
</code></pre>
<p><strong>C#</strong></p>
<pre><code class="language-csharp">var modelInstance = new SampleModel(OperationType.SUM, 2, 3);
model.AnotherField = &quot;this is property is both optional AND nullable&quot;;

// EITHER: Unset property will not be sent in the JSON request
modelInstance.UnsetAnotherField();

// OR: Null property will be sent as a &quot;null&quot; in the JSON request
modelInstance.AnotherField = null;
</code></pre>
<p><strong>PHP</strong></p>
<pre><code class="language-php">// Create a sample model object with its required fields
$model = new SampleModel(OperationType.SUM, 2, 3);

$model-&gt;setAnotherField(&quot;This property is both optional and nullable&quot;);

// EITHER: Unset property will not be sent in the JSON request
$model-&gt;unsetAnotherField();

// OR: Null property will be sent as a “null” in the JSON request
$model-&gt;setAnotherField(null);
</code></pre>
<h2>Required Model Constructor Arguments</h2>
<p>Required properties can now be set as part of the model instantiation in C#, Java and PHP SDKs.</p>
<p>A <em>required property</em> is one that&#39;s neither optional nor nullable. Since this property is required to be set for the API request to be correct, We&#39;ve added them as required parameters to the model constructors.</p>
<p>Check out what the model instantiation looks like when there are required properties in a model:</p>
<p><strong>Java</strong></p>
<pre><code class="language-java">// Required properties must be passed as required arguments.
// Optional and nullable properties can be set later.
SampleModel modelInstance = new SampleModel.Builder(
    &quot;required property value&quot;,
    &quot;another required property value&quot;
  )
  .optionalProperty(&quot;optional property value&quot;)
  .build();
</code></pre>
<p><strong>C#</strong></p>
<pre><code class="language-cs">// Required properties must be passed as required arguments.
// Optional and nullable properties can be passed as optional parameters.
var modelInstance = new SampleModel(
  &quot;required property value&quot;,
  &quot;another required property value&quot;,
  optionalProperty: &quot;optional property value&quot;);

// Optional and required properties can be set again later after
// the initialization.
modelInstance.RequiredProperty = &quot;value&quot;;
</code></pre>
<p><strong>PHP</strong></p>
<pre><code class="language-php">// Required properties must be passed as constructor arguments.
$modelInstance = new SampleModel(
  &quot;required property value&quot;,
  &quot;another required property value&quot;
);

// Optional and required properties can be set again later after
// the initialization.
$modelInstance-&gt;setRequiredProperty(&quot;value&quot;);
$modelInstance-&gt;setOptionalProperty(&quot;optional&quot;);
</code></pre>
<p>While Ruby and Python accept arguments in the model constructors, these arguments are optional.</p>
<h2>Cancellable API Calls in C#</h2>
<p>All async endpoint methods in the generated C# SDKs now accept an optional <a href="https://docs.microsoft.com/en-us/dotnet/api/system.threading.cancellationtoken?view=net-5.0"><code>CancellationToken</code></a> as the last argument. This allows the SDK user to cancel the endpoint call if needed.</p>
<p>Let&#39;s say that you wanted to cancel an endpoint call if it exceeded some time. You can do it using a timed <a href="https://docs.microsoft.com/en-us/dotnet/api/system.threading.cancellationtokensource.cancelafter?view=net-5.0"><code>CancellationTokenSource</code></a> like this. Note that the C# SDKs generated by APIMatic already have support for timeouts which can be configured in the client; this example is just for demonstration purpose:</p>
<pre><code class="language-cs">// Set CancellationToken to fire after 2 seconds.
var cancellationTokenSource = new CancellationTokenSource(2000);
var cancellationToken = cancellationTokenSource.Token;

try {
  // Call the endpoint with a CancellationToken as the last argument.
  var response = await api.GetDataAsync(cancellationToken);
}
catch (OperationCanceledException ex) when (ex.CancellationToken == cancellationToken)
{
  // OperationCanceledException is thrown if the API call doesn&#39;t complete
  // within 2 seconds.
}
</code></pre>
<p>Checkout these <a href="https://devblogs.microsoft.com/premier-developer/recommended-patterns-for-cancellationtoken/">recommended patterns for using <code>CancellationToken</code></a>.</p>
<h2>Concurrency Improvements in Java</h2>
<p>As part of updating the generated Java SDKs to support Java 8, we also replaced the usage of callbacks in async endpoint methods with <a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletableFuture.html"><code>CompleteableFuture</code></a> which will help the SDK users write better concurrent code. The <code>CompleteableFuture</code> instance returned by the async endpoint method resolves to the response expected from the endpoint.</p>
<p>Without <code>CompleteableFuture</code>, asynchronous actions have to be represented as callbacks which tend to be scattered across the code or deeply nested inside one another. <code>CompleteableFuture</code> introduced in Java 8 makes it possible to replace callbacks with a cleaner interface that resembles a more powerful form of the <code>Promise</code> interface seen in JavaScript code: the new interface contains over 50 methods for composing, combining, and executing asynchronous computation steps and handling errors!</p>
<p>This means that the Java SDK users can now chain API calls together, wait on multiple API calls and handle more advanced use-cases when calling the async endpoint methods. Checkout this code sample that shows the usage of the generated Java SDK with the new <code>CompleteableFuture</code>:</p>
<pre><code class="language-java">// Making an endpoint call and handling the response asynchronously.
api.sendDataAsync(request).thenAccept(result -&gt; {
    // Do something in case of a successful response...
}).exceptionally(exception -&gt; {
    // Do something in case of an error...
    return null;
});

// You can also chain two endpoint calls together.
api.getDataAsync(request)
  .thenCompose(
    firstApiCallResponse -&gt; api.sendDataAsync(firstApiCallResponse.SomeData))
  .thenAccept(secondApiCallResponse -&gt; {
      // Do something in case of a successful response...
  }).exceptionally(exception -&gt; {
      // Do something in case of an error...
      return null;
  });
</code></pre>
<p>Check out this article for more <a href="https://www.baeldung.com/java-completablefuture">patterns on using <code>CompleteableFuture</code></a>.</p>
<h2>Sending Binary and JSON-Encoded Content in Multipart Requests</h2>
<p>Sending JSON-encoded content in a multipart request is now supported in all languages. Previously, we only supported sending binary data in the form of files but now you can also send JSON-encoded data by setting the encoding of the parameter as JSON in your API definition.</p>
<p>For endpoints that require sending a &quot;binary&quot; content or file in a multipart request, the generated SDKs now expect an instance of the &quot;File Wrapper&quot; to be passed in. The semantics for this depends on the language. The &quot;File Wrapper&quot; allows you to pass the file (or stream) instance, file name and content (or mime) type for the file in one go.</p>
<p><strong>OpenAPI</strong></p>
<p>Here&#39;s a quick glimpse at how you would create a JSON-encoded and a &quot;File&quot; parameter in an endpoint in your OpenAPI definition:</p>
<pre><code class="language-json">&quot;post&quot;: {
    ...
    &quot;operationId&quot;: &quot;sendMultipart&quot;,
    &quot;summary&quot;: &quot;This endpoint requires sending a JSON object and a file in a multipart request.&quot;,
    &quot;requestBody&quot;: {
      &quot;required&quot;: true,
      &quot;content&quot;: {
        &quot;multipart/form-data&quot;: {
          &quot;schema&quot;: {
            &quot;type&quot;: &quot;object&quot;,
            &quot;properties&quot;: {
              &quot;request&quot;: {
                &quot;$ref&quot;: &quot;#/components/schemas/ObjectThatGetsSentAsJson&quot;
              },
              &quot;file&quot;: {
                &quot;type&quot;: &quot;string&quot;,
                &quot;format&quot;: &quot;binary&quot;
              }
            }
          },
          &quot;encoding&quot;: {
            &quot;request&quot;: {
              &quot;contentType&quot;: &quot;application/json; charset=utf-8&quot;
            },
            &quot;file&quot;: {
              &quot;contentType&quot;: &quot;image/jpeg&quot;
            }
          }
        }
      }
    },
}
</code></pre>
<p><strong>Java</strong></p>
<p>This is what calling the endpoint using the Java SDK would look like:</p>
<pre><code class="language-java">ObjectThatGetsSentAsJson request = new ObjectThatGetsSentAsJson(/* args */);

// Create a file instance and wrap it with a FileWrapper
File imageFile = new File(&quot;/path/to/image/file.jpg&quot;);
FileWrapper file = new FileWrapper(imageFile, &quot;image/jpeg&quot;);

// request and file will be sent as part of a multipart request
SendMultipartResponse result = api.sendMultipart(request, file);
</code></pre>
<p><strong>C#</strong></p>
<p>This is what calling the endpoint using the C# SDK would look like:</p>
<pre><code class="language-cs">var request = new ObjectThatGetsSentAsJson(/* args */);

// Open a file stream and wrap it in a FileStreamInfo
using var imageStream = File.Open(&quot;/path/to/image/file.jpg&quot;);
var file = new FileStreamInfo(imageStream, &quot;file.jpg&quot;, &quot;image/jpeg&quot;);

// request and file will be sent as part of a multipart request
var result = await api.sendMultipartAsync(request, file);
</code></pre>
<p><strong>Ruby</strong></p>
<p>This is what calling the endpoint using the Ruby SDK would look like:</p>
<pre><code class="language-ruby">request = ObjectThatGetsSentAsJson.new
# Set properties on the model...

# Open a file stream and wrap it in a FileWrapper
imageFile = File::open(&#39;/path/to/image/file.jpg&#39;, &#39;rb&#39;)
file = FileWrapper.new(imageFile, content_type: &#39;image/jpeg&#39;)

# request and file will be sent as part of a multipart request
result = api.send_multipart(request, file)
</code></pre>
<p><strong>Python</strong></p>
<p>This is what calling the endpoint using the Python SDK would look like:</p>
<pre><code class="language-ruby">request = ObjectThatGetsSentAsJson()
# Set properties on the model...

# Open a file stream and wrap it in a FileWrapper
imageFile = open(&#39;/path/to/image/file.jpg&#39;, &#39;rb&#39;)
file = FileWrapper(imageFile, &#39;image/jpeg&#39;)

# request and file will be sent as part of a multipart request
result = api.send_multipart(request, file)
</code></pre>
<p><strong>PHP</strong></p>
<pre><code class="language-php">// Create a FileWrapper instance using a real path to any file
$imageFile = FileWrapper::createFromPath(&quot;/path/to/image/file.jpg&quot;, &quot;image/jpeg&quot;);
$model = new SampleModel(
  &quot;required property value&quot;,
  &quot;another required property value&quot;
);

// model and file will be sent as part of a multipart request
$result = api.sendMultipart($model , $imageFile);
</code></pre>
<h2>Using Simple Types Instead of Enumerations</h2>
<p>The default behavior of the Code Generator is to create an enumeration type in the SDK for every enumeration type it encounters in the API definition. You can now configure the Code Generator to use simple types like strings or integers in the generated Java or C# SDK instead of using enumeration types.</p>
<p>Since enumerations are &quot;closed types,&quot; they restrict the API server from sending some other string or number which isn&#39;t present in the enumeration; this can cause a deserialization error when using the SDK because the API server would be breaking the contract defined in the API definition. This is the right behavior for most of the cases as it helps catch schema validation issues while also helping the SDK user write good code when using the SDK.</p>
<p>By setting the &quot;Generate Enums&quot; <a href="https://docs.apimatic.io/generate-sdks/customize-sdks/codegen-settings/codegen-settings-overview">CodeGen Setting</a> to false, you can change the generated SDK to use the simpler string or number type in place of enumeration types. This is useful in case you want to treat the enumerations defined in your API definition as &quot;open types&quot; or in case you intend to change the definition of the enumerations frequently over the course of the API lifetime.</p>
<p><strong>Java</strong></p>
<pre><code class="language-java">// SDK usage when enumerations are generated...
SampleModel modelInstance = new SampleModel(OperationType.SUM, 2, 3);

// SDK usage when enumerations are NOT generated...
SampleModel modelInstance = new SampleModel(&quot;sum&quot;, 2, 3);
</code></pre>
<p><strong>C#</strong></p>
<pre><code class="language-csharp">// SDK usage when enumerations are generated...
var modelInstance = new SampleModel(OperationType.SUM, 2, 3);

// SDK usage when enumerations are NOT generated...
var modelInstance = new SampleModel(&quot;sum&quot;, 2, 3);
</code></pre>
<h2>User-Friendly String Representation for Classes</h2>
<p>The generated Java and C# SDKs now provide a convenient string representation of classes by overriding the default <em>&quot;stringification&quot;</em> method.</p>
<p>By overriding the <code>toString</code> (or in case of C#, the <code>ToString</code>) methods in the model, HTTP Request, HTTP Response and other utility classes generated with the SDKs, we allow the SDK user to quickly inspect these classes by printing them to the console.</p>
<p><strong>Java</strong></p>
<pre><code class="language-java">// Create a sample model and write it to the standard output
SampleModel modelInstance = new SampleModel(OperationType.SUM, 2, 3);
System.out.println(modelInstance);

// Output: SampleModel [operation=SUM, x=2.0, y=3.0]
</code></pre>
<p><strong>C#</strong></p>
<pre><code class="language-csharp">// Create a sample model and write it to the standard output
var modelInstance = new SampleModel(OperationType.SUM, 2, 3);
Console.WriteLine(modelInstance);

// Output: SampleModel : (this.Operation = SUM, this.X = 2, this.Y = 3)
</code></pre>
<h2>URL-Encoding of Template Parameters</h2>
<p>By default, the generated SDKs will encode all template parameters in the endpoints using URL-encoding before the final URL for the endpoint is built. This makes it easy for the user of the SDK to provide data without having to URL-encode the template arguments in case it&#39;s needed.</p>
<p>However, this created a limitation where a URL path for an endpoint couldn&#39;t be dynamically built from the SDK user input because the template parameters were always URL-encoded, which would replace forward-slashes and other characters otherwise allowed in a path with their escaped forms.</p>
<p>We&#39;ve now added a new <a href="https://docs.apimatic.io/generate-sdks/customize-sdks/codegen-settings/codegen-settings-overview">CodeGen Setting</a> called &quot;Encode Template Parameters&quot; which can be set to <code>false</code> to disable the URL-encoding behavior for all endpoints in the generated SDK. Note that this should be used carefully as our default behavior is often the right one in most cases.</p>
<blockquote>
<p><strong>Note</strong></p>
<p>The &quot;Encode Template Parameters&quot; is applied globally to all template parameters in all endpoints in the generated SDK. We&#39;re working on a setting that will allow this to be set for individual endpoint parameters instead. Please reach out to the support in case you are blocked by this.</p>
</blockquote>
<h2>Custom License Text</h2>
<p>APIMatic Code Generator includes a license file in the source code of the generated SDKs. This defaults to the MIT license (in case you are a paid APIMatic user).</p>
<p>You can now define your custom license text by setting the &quot;License Text&quot; <a href="https://docs.apimatic.io/generate-sdks/customize-sdks/codegen-settings/codegen-settings-overview">CodeGen Setting</a>. The contents of this setting will be put in the <code>LICENSE</code> file in the generated SDK.</p>
<h2>Improved Documentation in the SDKs</h2>
<p>The SDKs generated by APIMatic come with complete documentation of the types and the methods available in the SDK. This documentation was included as a Markdown file named <code>README.md</code> in the SDK. We&#39;ve updated this documentation to make it a more complete reference for the generated SDKs:</p>
<ul>
<li>The documentation is now split into multiple pages by default. This helps overcome a limitation in GitHub (and other source code hosting platforms) that resulted in the <code>README.md</code> file being cut off because it was too long to display on one page. In addition to the <code>README.md</code> file, there is now an additional <code>docs</code> directory inside the generated SDKs that contains the parts of the documentation which are linked on the main <code>README.md</code> page.</li>
<li>We&#39;ve updated the instructions for installing the SDK, initializing the client, setting the configuration and making the first API call in addition to updates to the API and Model Reference sections. This follows from the updates in the design of the SDK and the feedback from our users.</li>
<li>The endpoint documentation now shows detailed code samples on how to make the call along with sample request data that&#39;s derived from the examples given in the API definition file.</li>
<li>We&#39;ve added documentation for the utility and infrastructure classes included in the SDK such as the HTTP Request, HTTP Response, Configuration and API Exception classes.</li>
</ul>
<p>We&#39;ve also added some new <a href="https://docs.apimatic.io/generate-sdks/customize-sdks/codegen-settings/codegen-settings-overview">Code Generation settings</a> for customizing the documentation:</p>
<ul>
<li><em>Generate Examples For Optional Fields</em>: This setting which is enabled by default ensures that the optional properties in the models are also included in the examples that are generated. Previously, optional properties were skipped for performance reasons.</li>
<li><em>Usage Example Endpoint</em>: This setting lets you select the endpoint to use in the example shown in the initialization section of the documentation. Previously, the first endpoint in the API definition was used. This setting lets you use the endpoint that might make the most sense in the context of your API.</li>
<li><em>Is Latest Version</em>: This setting removes the version number from the package installation instructions for the SDK. By default, we include the version number for the package in the package installation instructions in the generated documentation.</li>
</ul>
]]></content:encoded>
      <category>New</category>
    </item>
    <item>
      <title>Revamped API Portal in APIMatic V3</title>
      <link>https://docs.apimatic.io/changelog/releasing-apimatic-v3-revamped-api-portal</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/releasing-apimatic-v3-revamped-api-portal</guid>
      <pubDate>Thu, 20 May 2021 18:42:24 GMT</pubDate>
      <description>APIMatic V3 (codenamed Titan) is APIMatic's largest release to date, bringing some major improvements to the Code Generator, the API Portal and the portal publishing flow. This changelog covers the new features and improvements to the API Portal.</description>
      <content:encoded><![CDATA[<p>APIMatic V3 (codenamed <em>Titan</em>) is APIMatic&#39;s largest release to date, bringing some major improvements to the Code Generator, the API Portal and the portal publishing flow. This changelog covers the new features and improvements to the API Portal.</p>
<h2>Improved Look-and-Feel</h2>
<p>We have updated the design of our API Portal based on feedback for our users. We have moved towards a more modern, leaner design for which we have revised our default color theme, typography, UI layout and the design of various components.</p>
<p>We updated the typography to default to a new font, <a href="https://fonts.google.com/specimen/Rubik#about">Rubik</a>, which is a sans serif font with slightly rounded corners which fits in better with our new theme while maintaining the same level of readability as our previous font-stack.</p>
<p>We also revised the font-sizes we use in the API Portal with the aim to improve readability; the main body text now is 16px while the headings and the rest of the UI has been updated to match.</p>
<p>Based on feedback from our users about the discoverability of the language-selector, we have moved it to the right-edge of the API Portal which brings it closer to the code samples that you see in the third-column.</p>
<p>Check out how the new API Portal looks like:</p>
<p><img src="https://docs.apimatic.io/images/changelog/v3-portal-guide.png" alt="APIMatic V3 Portal"></p>
<h2>Unified API Explorer</h2>
<p>We have unified the endpoint request documentation with the API Console into a single &quot;Explorer&quot; that lets you explore the request documentation as well as edit the request data (used to build the code sample) in one place. We now just call it the &quot;API Explorer&quot; 😊</p>
<p>The API Portal user can now drill into the definitions for the endpoint request parameter types using the API Explorer without having to leave the page.</p>
<p>The API Explorer is also able to render Markdown text from the request parameter and schema definitions which makes it easier to write formatted documentation.</p>
<p>Check out the new API Explorer in action:</p>
<p><img src="https://docs.apimatic.io/images/changelog/explorer-in-action.gif" alt="APIMatic V3 API Explorer"></p>
<h2>Customizing Table-of-Content</h2>
<p>APIMatic now supports more customizability in the table-of-content for your documentation</p>
<ul>
<li>You can now nest sections deeply. Previously, only a single level of nesting was allowed but now you can nest your sections within sections and place your pages inside them.</li>
<li>You can even move the auto-generated documentation around, placing them into a nested section if you need to.</li>
<li>You can turn off the auto-generated &quot;Getting Started&quot; documentation and replace it with your own.</li>
</ul>
<p>All of this customizability is available through our new Portal Editor which provides a simple interface for customizing the table-of-content for your documentation to your heart&#39;s content. 💙</p>
<p><img src="https://docs.apimatic.io/images/changelog/nested-guides.gif" alt="APIMatic V3 Nested Guides"></p>
<p>Check out how to <a href="https://docs.apimatic.io/publish-apis/customize-docs#custom-documentation">customize the table-of-content for your documentation</a> using the Portal editor.</p>
<h2>Language-Specific Guides</h2>
<p>When writing your documentation using Markdown, you can now define segments of your documentation to be language-specific.</p>
<p>Language-specific documentation only shows up when the API Portal user is viewing the documentation for that language. For example, if you mark a segment to be visible only for PHP, it will only show up in the PHP documentation in the API Portal; it will not be visible when any other language is selected.</p>
<p>Marking a segment of your documentation page as language-specific is quite easy. In your Markdown page, use a <code>visible</code> annotation to create a language-specific segment like this:</p>
<pre><code class="language-markdown">Other markdown content that is not language-specific.

:::visible {language=php}
This will only be shown in the PHP documentation only.
:::

:::visible {language=php,csharp}
This will only be shown in the PHP and C# documentation only.
:::

Continue with content that is not language-specific.
</code></pre>
<p>The valid language names are: <code>java</code>, <code>csharp</code>, <code>php</code>, <code>ruby</code>, <code>python</code>, <code>ts</code>, <code>go</code> and <code>http</code>.</p>
<h2>Linking Your Pages Together</h2>
<p>We have updated our Permalink scheme to cater for the newly added support for nesting documentation sections within sections. We also took the opportunity to update the Permalink scheme to make it more writer-friendly.</p>
<p>Check out what a link to a page looks like when you are writing the documentation in Markdown:</p>
<pre><code class="language-markdown">[link text](page:section/sub-section/markdown-page-name)
</code></pre>
<p>You can even link to a heading inside a Markdown page by using the heading ID derived automatically from the heading text:</p>
<pre><code class="language-markdown">[link text](page:section/sub-section/markdown-page-name#heading-text)
</code></pre>
<p>We also added some <a href="https://docs.apimatic.io/publish-apis/referencing-content-in-dx-portal">shortcuts in our Portal Editor</a> to make it easier for you to insert these links.</p>
<p>When you switch to APIMatic V3, your documentation content will automatically be updated to use the new link scheme. Since this is a major release of APIMatic, after migration, you should test out the API Portal by previewing it to see whether your content is as you expect it to be and whether the links are working fine.</p>
<h2>Pop-Out Code Samples</h2>
<p>We have added the ability to expand the code samples in the endpoint pages. This makes it easier to read code samples with lengthy lines, which would otherwise have required scrolling horizontally.</p>
<p><img src="https://docs.apimatic.io/images/changelog/pop-out-code-sample.gif" alt="APIMatic V3 API Explorer"></p>
<h2>Toggle API Export Formats</h2>
<p>You can now toggle what formats to <a href="https://docs.apimatic.io/publish-apis/customize-docs#api-spec-export">allow your API definition to be exported</a> from the API Portal. You can even remove the API definition export button from your API Portal if you want.</p>
<h2>Version-Specific Documentation</h2>
<p>Previously, the documentation pages (a.k.a the Markdown pages or your handwritten guides) were shared between all versions of an API. This made it difficult to write documentation specific to an API version.</p>
<p>We have now changed this behavior to make documentation pages specific to each version. Documentation pages are no longer shared between all versions of an API which prevents issues like broken-links to endpoint or model pages because they were not present in a version. It also makes it possible to write documentation specific to a version.</p>
<h2>And Numerous Fixes...</h2>
<p>We made a lot of small fixes in the API Portal:</p>
<ul>
<li>Quick Search could not be scrolled using the keyboard.</li>
<li>Breadcrumbs shown in the Quick Search box did not have the right color.</li>
<li>In documentation content, the inline elements did inherit their parent element&#39;s styling in some cases.</li>
<li>The navigation menu on the left was hiding navigation item text on overflow; now the text is wrapped.</li>
<li>And a lot more small fixes... 🐛</li>
</ul>
<h2>Migrating to APIMatic V3</h2>
<p>To start using the improved API Portal in the APIMatic V3, you need to migrate your account to APIMatic V3.</p>
<p>Since this is a major release, after migration, you should test out the API Portal by previewing it to see whether your content is as you expect it to be and whether the links are working fine. Once you are satisfied with the portal, you can <a href="https://docs.apimatic.io/publish-apis/hosting-your-portal">publish it</a> to make it publicly available.</p>
]]></content:encoded>
      <category>New</category>
    </item>
    <item>
      <title>Revamped API Transformer in APIMatic V3</title>
      <link>https://docs.apimatic.io/changelog/releasing-apimatic-v3-revamped-transformer</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/releasing-apimatic-v3-revamped-transformer</guid>
      <pubDate>Thu, 20 May 2021 13:42:24 GMT</pubDate>
      <description>APIMatic V3 (codenamed Titan) is APIMatic’s largest release to date, bringing some major improvements to the Code Generator, the API Portal and the portal publishing flow. It also brings some shiny new features and improvements to API Transformer which are covered as part of t...</description>
      <content:encoded><![CDATA[<p>APIMatic V3 (codenamed <em>Titan</em>) is APIMatic’s largest release to date, bringing some major improvements to the Code Generator, the API Portal and the portal publishing flow. It also brings some shiny new features and improvements to API Transformer which are covered as part of this changelog.</p>
<p>Checkout all the new features and changes below:</p>
<h2>No More Slow OpenAPI v2.0 and v3.0 Imports</h2>
<p>Our support for OpenAPI/Swagger v2.0 and v3.0 import has undergone a complete overhaul. You now get faster imports, improved support for $refs, improved warnings, error messages that make more sense, and much more. Check out the changelog at <a href="https://docs.apimatic.io/v4/changelog#oas-importers-revamp-release">OAS Importers Revamp Release</a> for more details.</p>
<h2>Introducing Support for <code>anyOf</code>, <code>oneOf</code>, <code>not</code> Constructs and Union Types</h2>
<p>The much awaited support for <code>anyOf</code>, <code>oneOf</code> and <code>not</code> constructs is now finally available in all major formats like OpenAPI/Swagger, JSON Schema, API Blueprint, etc. Support for RAML and XML schema &quot;union&quot; types has also been added as part of this feature. This means that you can now convert between formats that support these constructs without losing this data. Check out our detailed changelog at <a href="https://docs.apimatic.io/v4/changelog#support-for-union-types-added-in-transformer">Support for Union Types</a> to learn more.</p>
<h2>Complete Support for Responses Added</h2>
<p>Worry no more about losing data related to response status codes in the range <code>1XX</code>, <code>2XX</code> and <code>3XX</code>. Our existing support for error codes in the range <code>4XX</code> and <code>5XX</code> has also been improved. If you use status ranges instead of status codes, we’ve got you covered for that too. </p>
<p>Check out our detailed changelog at <a href="https://docs.apimatic.io/v4/changelog#support-for-multiple-responses-added-in-api-transformer-across-all-formats">Support for Multiple Responses Across All Formats</a> and <a href="https://docs.apimatic.io/v4/changelog#support-for-multiple-responses-added-in-raml10-import">Support for Multiple Responses In RAML 1.0</a> to learn more.</p>
<h2>Support For Multiple Examples Added</h2>
<p>A good API description comes with a user-friendly example for each component. Since OpenAPI <code>v3.0</code> and RAML <code>v1.0</code> support multiple examples, you can take your API description to the next level with this feature. And now easily use API Transformer to convert between these two formats without losing the multiple examples data. Check out our changelog on <a href="https://docs.apimatic.io/v4/changelog#added-multiple-examples-support-in-transformer">Support for Multiple Examples</a> for more details.</p>
<h2>More Configuration Settings Than Ever Before</h2>
<p>Looking to customize the default import/export behavior? We’ve added new configuration settings to help you configure various aspects of your transformation process than ever before.</p>
<h3>Introducing APIMatic RAML Annotations</h3>
<p>Learn to configure RAML import through our new annotations. Check out our documentation on <a href="https://docs.apimatic.io/specification-extensions/raml-apimatic-annotations">RAML Annotations</a> for more details.</p>
<h3>New Vendor Extensions for OpenAPI/Swagger</h3>
<p>We offer a large number of vendor extensions to configure the APIMatic CodeGen engine and transformations. You can visit <a href="https://docs.apimatic.io/specification-extensions/swagger-codegen-extensions">Swagger CodeGen Extensions</a> for more details. With this release, we&#39;ve added the following new extensions:</p>
<ul>
<li><p>Added a new extension <code>x-image-uri</code> to help users configure Image URI in the <a href="https://docs.apimatic.io/specification-extensions/swagger-codegen-extensions/#api-metadata-extensions">API Metadata</a>.</p>
</li>
<li><p>Added new <a href="https://docs.apimatic.io/generate-sdks/customize-sdks/codegen-settings/codegen-settings-overview/#timeout-and-retries">OpenAPI CodeGen extensions</a> to configure CodeGen settings: </p>
<ul>
<li><code>licenseText</code></li>
<li><code>retryInterval</code></li>
<li><code>backOffFactor</code></li>
<li><code>statusCodesToRetry</code></li>
<li><code>requestMethodsToRetry</code></li>
<li><code>userConfigurableRetries</code></li>
</ul>
</li>
</ul>
<h3>New Import Settings</h3>
<p>You can configure the import process by specifying <a href="https://docs.apimatic.io/api-transformer/configuring-transformer#import-settings">Import Settings</a> in a <a href="https://docs.apimatic.io/manage-apis/apimatic-metadata">Metadata file</a> based on your requirements. Newly added import settings include:</p>
<ul>
<li><code>ImportArrayOfMapsAndMapOfArrays</code></li>
</ul>
<h3>New Export Settings</h3>
<p>You can configure the export process by specifying <a href="https://docs.apimatic.io/api-transformer/configuring-transformer#export-settings">Export Settings</a> in a <a href="https://docs.apimatic.io/manage-apis/apimatic-metadata">Metadata file</a> based on your requirements. Newly added export settings include:</p>
<ul>
<li><code>AddRefSiblingDataInAllOfSchema</code></li>
<li><code>EncodeUrlParamsInPostman</code></li>
<li><code>UseXsdBase64BinaryType</code></li>
</ul>
<h1>Bug Fixes</h1>
<p>Numerous bugs were squashed. A few notable ones are listed below:</p>
<ul>
<li>Handled issues related to circular dependencies when importing JSON schemas.</li>
<li>Fixed an issue that was preventing RAML libraries from being imported in the same order on consecutive imports/transformations.</li>
<li>Fixed a bug related to discriminator property being unnecessarily set in the child classes when importing/transforming from RAML <code>v1.0</code>.</li>
<li>Fixed a bug related to importing OpenAPI <code>v3.0</code> form parameter default values.</li>
<li>Fixed a bug related to file parameters getting loaded with <code>Body</code> parameter type in absence of <code>x-send-file-in-body</code> extension in OpenAPI <code>v3.0</code> import.</li>
<li>Fixed issue with <code>Accept</code> header value not loading correctly for export to Postman Collection format <code>v1.0</code> and <code>v2.0</code>.</li>
<li>Fixed a bug related to nullable information getting missed out in case of arrays and maps when exporting to JSON schemas and OpenAPI <code>v3.0</code> schemas.</li>
<li>Added a fix to handle older JSON schema drafts like Draft 3. </li>
<li>Added a bug fix related to importing XML data from Postman Collection (<code>v1.0</code>, <code>v2.0</code>) and HAR.</li>
<li>Fixed issues related to incorrectly loading response <code>Content-Type</code> from API Blueprint files.</li>
<li>Fixed issues related to importing complex models when the <code>AppendParentNameForClashes</code> import setting is enabled.</li>
<li>Added a fix for WADL importer that prevents importing empty media types.</li>
<li>Added a fix for a bug that prevented RAML <code>v0.8</code> resource types from getting imported.</li>
<li>Added a fix for handling array JSON schemas that do not contain <code>items</code> sibling property.</li>
</ul>
]]></content:encoded>
      <category>New</category>
    </item>
    <item>
      <title>Support for Multiple Examples Added in API Transformer</title>
      <link>https://docs.apimatic.io/changelog/added-multiple-examples-support-in-transformer</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/added-multiple-examples-support-in-transformer</guid>
      <pubDate>Wed, 19 May 2021 09:35:04 GMT</pubDate>
      <description>Highlights the changes as part of release of multiple examples feature in OpenAPI v3.0 and RAML v1.0.</description>
      <content:encoded><![CDATA[<p>API Transformer now supports multiple examples as an alternative to providing a single example for components. This is a feature available in both OpenAPI <code>v3.0</code> and RAML <code>v1.0</code> API description formats and any future transformations between these will see minimized loss of the examples&#39; information.</p>
<h2>Details</h2>
<p>OpenAPI <code>v3.0</code> and RAML <code>v1.0</code> are two formats that allows its users to specify multiple examples for components where previously only a single example was supported. In APIMatic, only a single example was loaded i.e., if multiple examples were available the first one was loaded by default. Now, with the addition of this feature in API Transformer, we aim to reduce loss of examples information when converting between these two formats. A detailed breakdown of where we support this feature for each format is given below.</p>
<blockquote>
<p><strong>Note</strong></p>
<p>Our auto test-case generation feature that generates test cases from examples will remain unaffected and will use the first available example as before.</p>
</blockquote>
<h3>Support in OpenAPI <code>v3.0</code></h3>
<p>You can specify multiple examples in <a href="https://swagger.io/docs/specification/adding-examples/">OpenAPI <code>v3.0</code></a> using the <code>examples</code> map of unique keys and corresponding <a href="https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.0.md#exampleObject">Example Objects</a>. This property can be specified as a sibling property of wherever the <code>schema</code> property is allowed except for anywhere within the <a href="https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.0.md#schemaObject">Schema Object</a>. This implies that you cannot specify multiple examples in the Schema Object itself or for its properties.</p>
<blockquote>
<p><strong>Note</strong></p>
<p><code>example</code> and <code>examples</code> are mutually exclusive properties. <code>examples</code> will be given precedence in case both are present.</p>
</blockquote>
<p>APIMatic now supports multiple examples for OpenAPI <code>v3.0</code> at the levels defined below. Globally defined examples under <code>components/examples</code> are also supported.</p>
<h4><a href="https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.0.md#parameterObject">Parameter Object</a></h4>
<pre><code class="language-yml">parameters:
  - name: name
    in: query
    schema:
      type: string
    examples:
      example1:
        summary: Example 1
        description: This is the 1st example
        value: dummy name 1
      example2:
        summary: Example 2
        description: This is the 2nd example
        value: dummy name 2
      example3:
        summary: Example 3
        description: This is the 3rd example
        externalValue: &gt;-
          https://example.com#example
</code></pre>
<h4><a href="https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.0.md#mediaTypeObject">Content Media Type Object</a></h4>
<p><a href="https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.0.md#request-body-object"><strong>Request Body</strong></a></p>
<pre><code class="language-yml">requestBody:
  content:
    application/xml:
      schema:
        type: object
        properties:
          id:
            type: string
          name:
            type: string
      examples:
        example1:
          summary: Example 1
          description: This is the 1st example
          value: &lt;root&gt;&lt;id&gt;dummy id 1&lt;/id&gt;&lt;name&gt;dummy name 1&lt;name&gt;&lt;/root&gt;
        example2:
          summary: Example 2
          description: This is the 2nd example
          value: &lt;root&gt;&lt;id&gt;dummy id 2&lt;/id&gt;&lt;name&gt;dummy name 2&lt;name&gt;&lt;/root&gt;
</code></pre>
<p><a href="https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.0.md#responseObject"><strong>Response Body</strong></a></p>
<pre><code class="language-yml">responses:
  &#39;200&#39;:
    content:
      application/json:
        schema:
          properties:
            id:
              type: string
            name:
              type: string
          type: object
        examples:
          example1:
            value:
              id: dummy id 1
              name: dummy name 1
          example2:
            value:
              id: dummy id 2
              name: dummy name 2
          example3:
            externalValue: &#39;https://example.com#example&#39;
</code></pre>
<h3>Support in RAML <code>v1.0</code></h3>
<p>Unlike OpenAPI <code>v3.0</code>, which does not allow multiple examples to be specified in the Schema object, <a href="https://github.com/raml-org/raml-spec/blob/master/versions/raml-10/raml-10.md/#defining-examples-in-raml">RAML <code>v1.0</code></a> allows multiple examples at all places where single examples are supported i.e. wherever a <a href="https://github.com/raml-org/raml-spec/blob/master/versions/raml-10/raml-10.md/#type-declarations">Type Declaration</a> is used (including types, type properties, request parameters and responses). This is now supported by APIMatic as well and an example is shown below:</p>
<pre><code class="language-yml">MyTypeDeclaration:
  examples:
    example1:
      value:
        id: dummy id 1
        name: dummy name 1
    example2:
      displayName: Example2
      description: This is 2nd example
      value:
        id: dummy id 2
        name: dummy name 2
  displayName: MyTypeDeclaration
  type: object
  properties:
    id:
      type: string
    name:
      type: string
</code></pre>
<blockquote>
<p><strong>Note</strong></p>
<p><code>example</code> and <code>examples</code> are mutually exclusive properties. <code>examples</code> will be given precedence in case both are present.</p>
</blockquote>
]]></content:encoded>
      <category>New</category>
    </item>
    <item>
      <title>&gt;-</title>
      <link>https://docs.apimatic.io/changelog/support-for-multiple-responses-added-in-api-transformer-across-all-formats</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/support-for-multiple-responses-added-in-api-transformer-across-all-formats</guid>
      <pubDate>Mon, 15 Feb 2021 05:36:13 GMT</pubDate>
      <description>&gt;-</description>
      <content:encoded><![CDATA[<p>Complete support for multiple responses has been added to API Transformer across all major formats like OpenAPI, RAML, API Blueprint, etc. This means a major reduction in loss of information related to responses when converting between various formats. Note, that these changes can also affect how your import in the Dashboard works.</p>
<blockquote>
<p><strong>Note</strong></p>
<p>These changes will only affect you if you choose to re-transform or re-import your files. Please review this changelog carefully and make any adjustments to your API description files, if necessary, to avoid any issues. </p>
</blockquote>
<h2>What Was Supported Before?</h2>
<p>Previously, we supported the following in terms of responses:</p>
<ul>
<li>A single success response definition per endpoint (status code in the range 200-208).</li>
<li>A single body content definition per response.</li>
<li>Multiple client/server error response definitions (in the range 400-599) with limited support for error response body schema’s details excluding array information, primitive type information, nullable information, examples, etc.</li>
<li>For response definitions involving status code ranges (as supported in <a href="https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md#patterned-fields-1">OpenAPI v3.0</a>), only information of supported response codes falling in that range were loaded independently during import/transformation as there was no support for ranges syntax.</li>
<li>A single auto-generated test case per each supported response code.</li>
</ul>
<p>Until now, full support for this feature was only available for our RAML v1.0 import/transformation as you can see from the changelog <a href="https://docs.apimatic.io/v4/changelog#support-for-multiple-responses-added-in-raml10-import">here</a> and unavailable in other formats.</p>
<h2>What’s New?</h2>
<p>We have now added as well as improved existing support for multiple responses in all major formats where applicable. These formats include Postman (v1.0, v2.0), OpenAPI/Swagger (v1.2, v2.0, v3.0), RAML (v1.0, v0.8), WADL, WSDL, API Blueprint and HAR. These changes will affect how your transformation and may also affect how your import in the Dashboard works.</p>
<blockquote>
<p><strong>Note</strong></p>
<p>Currently, these changes will only be available in <a href="http://apimatic.io/transformer">API Transformer</a>. A release date for SDKs/Docs will be announced later. </p>
</blockquote>
<h3>Complete Response Information Will Be Imported/Transformed</h3>
<p>For all responses with status codes in the range 100-599, we now support:</p>
<ul>
<li>All possible content-types of a response with complete information related to its respective body schema definition.</li>
<li>Complete information of headers and examples associated with the response.</li>
</ul>
<h3>Better Support for Error Responses</h3>
<p>Details related to error responses (of range 400-599) that were previously lost during transformation/import e.g. primitive type information, array information, enumeration type details, examples, etc. will now be loaded.</p>
<h3>Changes to Imported/Transformed Models</h3>
<h4>Additional types/models may be added</h4>
<p>Additional types may be added upon transformation/import due to the following reasons:</p>
<ul>
<li>Loading of additional responses in the range 1XX or 3XX.</li>
</ul>
<pre><code class="language-yml">	responses:
	 &#39;100&#39;:
	   description: Continue Response
	   content: 
		 application/json:
		   schema:
			 type: object
			 properties:
			   id:
				 type: number
	 &#39;302&#39;:
	   description: Found Response
	   content: 
		 application/json:
		   schema:
			 type: object
			 properties:
			   operation:
				 type: string
</code></pre>
<p>Previously, only status codes in the range 200-208 and 400-500 were supported, but now all status codes in the range 1XX and 3XX are supported as well. As a result of loading these additional responses, additional types/models may be generated in some cases especially where inline schemas are involved.
	</p>
<ul>
<li>Loading of additional success responses.</li>
</ul>
<pre><code class="language-yml">	responses:
	 &#39;200&#39;:
	   description: Successful Response
	   content: 
		 application/json:
		   schema:
			 type: object
			 properties:
			   id:
				 type: number
	 &#39;201&#39;:
	   description: Successful Response
	   content: 
		 application/json:
		   schema:
			 type: object
			 properties:
			   operation:
			     type: string
</code></pre>
<p>Previously, in case multiple success response definitions were present [of range 200-299], only the first one was picked and the rest were ignored e.g. in the example above status code 200 is loaded while the status code 201 was ignored. Now, as a result of loading all status codes additional types may be loaded in such cases especially if the schemas are defined in-line.</p>
<ul>
<li>Loading of multiple body content definitions.</li>
</ul>
<pre><code class="language-yml">	responses:
	 &#39;200&#39;:
	   description: Successful Response
	   content: 
		 application/json:
		   schema:
			 type: object
			 properties:
			   id:
				 type: number
		 text/plain:
			schema:
			  type: string
			  enum:
				- one
				- two
				- three
</code></pre>
<p>As we now support all possible content-types for a single response, so loading associated schema definitions may result in additional models.</p>
<ul>
<li>Loading of complete information for error responses [of range 400-599].</li>
</ul>
<pre><code class="language-yml">	responses:
	  &#39;400&#39;:
	     description: Successful Response
	     content: 
		   application/json:
		     schema:
			   type: object
			   required:
			     - message
			     - code
			   properties:
			     message:
				   type: string
			     code:
				   type: integer
				   minimum: 100
				   maximum: 600
</code></pre>
<p>An error response model is loaded as a special type of <a href="https://docs.apimatic.io/define-apis/models#model-type">model</a> in APIMatic i.e. <code>Exception</code>. This helps treat errors in a better way in SDKs. However, to facilitate better transformation in API Transformer and to reduce loss of information, error models will now also be added as <code>Structure</code> type models in addition to <code>Exception</code> type models. This may result in additional models upon importing your API specification especially if your error response definition involves inline schemas.
		
Since enumeration type error responses are now supported as well, this may also result in new models of type <code>Enumeration</code> upon import.</p>
<h4>Names of imported inline models/types may change</h4>
<p>Inline schemas (not globally defined) are imported in APIMatic with the names inferred from the field/parameter names in which the schemas are defined. To prevent duplication of model names, a number is usually appended to the end of the conflicting model’s name. Since new models may get added as described in previous points, the model names for loaded inline schemas may change in some cases e.g. a type previously named as <code>Status1</code> may become <code>Status2</code> if an additional type of the same name gets loaded before it.</p>
<h3>Changes to Auto-Generated Test Cases</h3>
<p>Multiple test-cases will now be generated against each response’s status code (in the range 200-208) and for every possible body content definition in that response. In addition to this, the following changes will also take place:</p>
<ul>
<li>Test cases will no longer be auto-generated for error responses (in the range 400-599).</li>
<li>Invalid <code>Content-Type</code> headers e.g. those containing media type ranges (using the * wildcard) will no longer be added to expected headers of auto-generated test cases.</li>
</ul>
<h3>Support for Status Code Ranges [1XX, 2XX, 3XX, 4XX, 5XX]</h3>
<p>Specifying status code ranges using uppercase wildcard characters ‘X’ in the status codes is a feature supported by <a href="https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md#patterned-fields-1">OpenAPI 3.0</a> and is now supported by us as well.</p>
<pre><code class="language-yml">responses:
 &#39;2XX&#39;:
   description: Successful Response
   content: 
     application/json:
       schema:
         type: object
         properties:
           id:
             type: number
</code></pre>
<p>For exporting to formats that do not support ranges, only valid status codes from the range will be exported e.g. if the range specified is 5XX all status codes between 500-512 will be exported.</p>
<h3>Support for Media Type Ranges e.g. <code>*/*</code></h3>
<p>Support for content-type ranges has been added which is a feature supported by <a href="https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md#responseObject">OpenAPI 3.0</a> and <a href="https://www.w3.org/Submission/wadl/#x3-210002.11">WADL</a>. Information related to these ranges will therefore be imported/exported where applicable.</p>
<pre><code class="language-yml">responses:
 &#39;200&#39;:
   description: Successful Response
   content: 
     */*:
       schema:
         type: object
         properties:
           id:
             type: number
</code></pre>
<h3>Improved Support for RAML v1.0 Default Media Types</h3>
<p>Previously, if your RAML v1.0 specification file contained a <a href="https://github.com/raml-org/raml-spec/blob/master/versions/raml-10/raml-10.md/#default-media-types">list of media types</a> at root level, our importer only utilized the first/default media type and ignored the rest. However, we now support multiple media types specified at root level. This means that if there is no media type at response level to override root level media type(s), response body content will be loaded for every media type in the root media types list.</p>
<h3>Changes to Accept Header In Postman Export</h3>
<p>If the <code>Accept</code> header is not found in the imported specification file, then while exporting to  Postman 1.0 and 2.0, this header will now be generated automatically from response content information.</p>
<h2>How to Disable This Feature?</h2>
<p>If you do not wish to receive the changes described above, please upload a <a href="https://docs.apimatic.io/manage-apis/apimatic-metadata">Metadata</a> file along with your specification file at the time of importing/transforming your API description file with the <code>ImportMultipleResponses</code> <a href="https://docs.apimatic.io/api-transformer/configuring-transformer#import-settings">import setting</a> disabled.</p>
<blockquote>
<p><strong>Caution</strong></p>
<p>The import setting used for disabling this feature has been renamed from <strong>DisableMultipleResponses</strong> to <strong>ImportMultipleResponses</strong>. In case you are using the older name in your settings, please update the name as well as its value to avoid any issues.</p>
</blockquote>
]]></content:encoded>
      <category>New Feature</category>
    </item>
    <item>
      <title>&gt;-</title>
      <link>https://docs.apimatic.io/changelog/support-for-union-types-added-in-transformer</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/support-for-union-types-added-in-transformer</guid>
      <pubDate>Mon, 18 Jan 2021 13:14:43 GMT</pubDate>
      <description>&gt;-</description>
      <content:encoded><![CDATA[<p>Support for union types and other type constructs (<code>oneOf</code>, <code>anyOf</code>, <code>not</code>) has now been added to <a href="https://www.apimatic.io/transformer/">API Transformer</a> and can also affect how your import in the <a href="https://www.apimatic.io//dashboard">Dashboard</a> works. Re-transform/re-import your files to get these latest changes. Learn more about how (and if) these changes will affect you if you use any of these constructs in your API specification file.</p>
<h2>Details</h2>
<blockquote>
<p><strong>Release Note</strong></p>
<p>We are aiming to roll out these changes mid of January so it is strongly recommended that you review these changes carefully to learn whether they will affect you or not. Accordingly, make any necessary adjustments before then to your API specification, if required, to avoid any issues. Note, however, that these changes will only affect you if you choose to re-transform or re-import your files after the changes are released. </p>
</blockquote>
<p>Various API description formats support type combining constructs like <code>anyOf</code>, <code>oneOf</code> and <code>not</code>. Others like RAML support &quot;union&quot; types which are a kind of an equivalent of one of these constructs. We have now added support for these constructs across format parsers of API Blueprint, RAML, OpenAPI, WSDL, WADL and of secondary formats like JSON Schema and XML Schema. </p>
<p><strong>Impact Details:</strong> These new features will help reduce loss of information related to these constructs during the transformation/import process. However, loading this additional type information can also result in new models/types which can impact not just the transformation but also imports you make in your <a href="https://www.apimatic.io//dashboard">Dashboard</a> that in return can impact the types appearing in your SDKs/Docs.</p>
<blockquote>
<p><strong>How to disable this feature?</strong></p>
<p>If you do not wish to receive these changes, please upload a <a href="https://docs.apimatic.io/manage-apis/apimatic-metadata">Metadata</a> file along with your files with the <code>ImportTypeCombinators</code> import setting set to <code>false</code>. Note that RAML <code>v1.0</code> users should also disable the import setting <code>UseRamlUnionTypeAsOneOf</code> to prevent related changes. </p>
</blockquote>
<p>A detailed breakdown of the support for this feature across formats is given below:</p>
<h3>OpenAPI <code>v3.0</code></h3>
<p>OpenAPI <code>v3.0</code> supports constructs like <code>anyOf</code>, <code>oneOf</code> and <code>not</code> for its <a href="https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md#schemaObject">Schema Object</a>. <a href="https://www.apimatic.io/transformer/">API Transformer</a> and our <a href="https://www.apimatic.io//dashboard">Dashboard</a> import/export feature now supports these constructs.</p>
<h3>RAML <code>v0.8</code> and <code>v1.0</code></h3>
<p>RAML <code>v1.0</code> supports <a href="https://github.com/raml-org/raml-spec/blob/master/versions/raml-10/raml-10.md/#union-type">union types</a> which the <a href="https://www.apimatic.io/transformer/">API Transformer</a> and Dashboard import/export feature will now support.</p>
<p>RAML <code>v0.8</code> supports <a href="https://github.com/raml-org/raml-spec/blob/master/versions/raml-08/raml-08.md#named-parameters-with-multiple-types">named parameters with multiple types</a> which are now also supported in <a href="https://www.apimatic.io/transformer/">API Transformer</a> and our <a href="https://www.apimatic.io//dashboard">Dashboard</a> import/export feature.</p>
<h3>JSON Schema</h3>
<p>JSON Schema supports constructs like <code>anyOf</code>, <code>oneOf</code> and <code>not</code> which <a href="https://www.apimatic.io/transformer/">API Transformer</a> and <a href="https://www.apimatic.io//dashboard">Dashboard</a> import/export now also supports for raw JSON schema files as well as embedded JSON schema cases like in API Blueprint or RAML <code>v0.8</code> files etc.</p>
<h3>XML Schema</h3>
<p>XML Schema supports union types <code>xsd:union</code> for which we previously created a new merged type out of all types listed. However, they will now be loaded separately and treated as a case equivalent of <code>oneOf</code> types. This change will reflect in API transformations and <a href="https://www.apimatic.io//dashboard">Dashboard</a> import/export of raw XML schema files or embedded cases in WSDL and WADL files.</p>
]]></content:encoded>
      <category>New Feature</category>
    </item>
    <item>
      <title>OpenAPI v2.0 and v3.0 Importers See Major Revamp</title>
      <link>https://docs.apimatic.io/changelog/oas-importers-revamp-release</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/oas-importers-revamp-release</guid>
      <pubDate>Mon, 14 Sep 2020 05:51:50 GMT</pubDate>
      <description>&gt;-</description>
      <content:encoded><![CDATA[<p>Our OpenAPI importers (both v2.0 and v3.0) have undergone a complete overhaul that includes some major performance improvements, bug fixes and other refinements.</p>
<p>A detailed breakdown of the changes is given below. Please review these changes carefully as the way your file gets imported can impact your SDK generation, Docs/Portal generation as well as API Transformer output.</p>
<blockquote>
<p><strong>Note</strong></p>
<p> These changes will only affect you if you choose to re-import or re-transform your OpenAPI files. </p>
</blockquote>
<h2>Import is Now Much Faster!</h2>
<p><strong><code>Improvement</code></strong></p>
<p>The release includes major performance improvements especially for files containing a lot of references (above 500) using <code>$ref</code>. You should now be able to import all your files that are less than 15MB in size in less than 1 minute.</p>
<h2>Improved Warning/Error Messages for Invalid Component Types</h2>
<p><strong><code>Improvement</code></strong></p>
<p>If a component was found to have an unexpected type with respect to the official OpenAPI specification e.g. if an object was expected but an array was found, the error shown during import was unclear and rather complex. It also lacked information about which file the issue was found in and its location within that file. Now, the error messages for type related issues have been made user friendly and will contain complete details including the file in which the issue exists as well as the line number and line position.</p>
<h2>Improved Error Messages for Unresolvable <code>$ref</code>s</h2>
<p><strong><code>Improvement</code></strong></p>
<p>A user could only find out about the first unresolvable <code>$ref</code> in his file when the import failed due to this. This was especially troublesome if a user&#39;s file contained more than 10 such references and, therefore, he needed to fix and import his file more than 10 times to get the import to work. Now, however, users can get information about all unresolvable $refs with a single import along with details about file and line number indicating exactly where such <code>$ref</code>s were found.</p>
<h2>Path Item Level Parameters No Longer Ignored</h2>
<p><strong><code>New</code></strong></p>
<p>Path item object [<a href="https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#pathItemObject">v2</a>, <a href="https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md#pathItemObject">v3</a>] level parameter definitions were ignored previously. They are now loaded with complete information including parameter type and description. 
	</p>
<ul>
<li>Parameters with location set to <code>path</code> were previously being loaded with type assumed as <code>string</code> by default and <code>description</code> was ignored. They will now be loaded with concrete information provided in the path level parameter definitions.</li>
</ul>
<p><strong>Impact Level</strong>: <code>HIGH</code></p>
<p><strong>Impact Details</strong>: Existing parameter types may change as well as new parameters may be loaded in SDKs, Docs/Portal and API Transformer in accordance with the definitions found at path item level as described above.</p>
<p><strong>Workaround</strong>: You will need to remove the parameters defined at path item level to get the output as before.</p>
<h2>Extra Models Eliminated for Globally Defined Response Schemas</h2>
<p><strong><code>Improvement</code></strong></p>
<p>Schemas defined in-line within Response objects (i.e. not globally defined under <code>definitions</code> in v2.0 or under <code>components/schemas</code> in v3.0) without containing a <code>title</code>, were loaded with name of the Operation in which the response was defined or with a name generated from the Operation&#39;s relative path. However, now in cases where response objects reference global responses defined under root object&#39;s <code>responses</code> in v2.0 or under <code>components/responses</code> in v3.0, the response schema model will now be loaded with the name of the global response definition. This will help prevent loading the same response&#39;s schema each time with a different name and will thus result in less extra models. </p>
<p><strong>Impact Level</strong>: <code>HIGH</code></p>
<p><strong>Impact Details</strong>: In above case, only one model will be loaded while all extra models will be removed from SDKs, Docs/Portal and API Transformer output where applicable.</p>
<p><strong>Workaround</strong>: To get the output as before, you will have to remove global responses and instead define response schemas independently for each operation with the desired <code>title</code>.</p>
<h2>Changes to Globally Defined Schemas Import</h2>
<p><strong><code>New</code></strong></p>
<p>If a globally defined schema (under <code>components/schemas</code> in v3.0 or under <code>definitions</code> in v2.0) directly references another globally defined schema in its definition body and the inner referenced schema has no <code>title</code> property, then both schemas will now be loaded as two separate types after importing into APIMatic.</p>
<p><strong>Impact Level</strong>: <code>HIGH</code></p>
<p><strong>Impact Details</strong>: New types may appear as a result of this in SDKs, Docs/Portal and API Transformer output where applicable.</p>
<p><strong>Workaround</strong>: You may use <code>title</code> in the inner referenced type to give your schema the desired name and to load both types as a single type as before.</p>
<h2>Changes to Imported Model Names for Inline Schemas</h2>
<p><strong><code>Improvement</code></strong></p>
<p>Schema definitions that are not globally defined like under <code>definitions</code> in v2.0 or under <code>components/schemas</code> in v3.0 are imported in APIMatic with names inferred from property/parameter names in which these schemas are defined. Duplicate names are handled by appending a number at end of the name. It was noticed that some types were assigned higher number values even when lower ones could be assigned. This is now fixed. Due to this, you may notice that for some types names will now have a lower number value attached with them compared to before e.g. a type loaded as <code>Status5</code> may now be loaded as <code>Status3</code>.</p>
<p><strong>Impact Level</strong>: <code>HIGH</code></p>
<p><strong>Impact Details</strong>: Names of such types may now become changed in SDKs, Docs/Portal and API Transformer output where applicable.</p>
<p><strong>Workaround</strong>: Add a desired <code>title</code> for such schemas to override the names and restore them to their original values.</p>
<h2>Duplicate Paths Are No Longer Allowed</h2>
<p><strong><code>New</code></strong></p>
<p>If the <code>paths</code> object [<a href="https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#pathsObject">v2</a>, <a href="https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md#pathsObject">v3</a>] contains duplicate path entries, the OpenAPI file will be treated as invalid and no longer imported. Previously, the importer simply ignored duplicate paths and loaded the rest of the information.</p>
<p><strong>Impact Level</strong>: <code>HIGH</code></p>
<p><strong>Impact Details</strong>: If your files contain this issue, you will no longer be able to import them into APIMatic until you remove the duplicate entries.</p>
<h2>Fixed: Incorrectly Imported <code>allOf</code> Schemas</h2>
<p><strong><code>Bug Fix</code></strong></p>
<p>When importing a schema that uses <code>allOf</code>, APIMatic first combines the schemas within <code>allOf</code> into one and creates a new schema out of it which is then imported. However, in some cases it was noticed that the first <code>allOf</code> schema item was imported as the final schema instead of the new combined schema. This is now fixed and may result in new types.</p>
<p><strong>Impact Level</strong>: <code>HIGH</code></p>
<p><strong>Impact Details</strong>: Correct import of <code>allOf</code> schemas may result in modification of existing or addition of new models that can impact SDKs, Docs/Portal and API Transformer output where applicable.</p>
<h2>Changes to <code>oneOf</code> Schemas Import</h2>
<p><strong><code>New</code></strong></p>
<p>APIMatic does not currently support <code>oneOf</code> schemas. However, in some rare cases, <code>oneOf</code> schemas got imported as a single model with optional fields. This is now disabled by default and any component referencing such schemas will now be assigned the type <a href="https://docs.apimatic.io/define-apis/field-types#additional-types"><code>Object</code>/<code>Dynamic</code></a> after importing into APIMatic.</p>
<p><strong>Impact Level</strong>: <code>HIGH</code></p>
<p><strong>Impact Details</strong>: If your file contains such schemas, some models may now be removed and their references updated accordingly in your SDKs, Docs/Portal and API Transformer output where applicable.</p>
<p><strong>Workaround</strong>: You can upload a <a href="https://docs.apimatic.io/manage-apis/apimatic-metadata">Metadata</a> file along with your specification at the time of importing, with the <code>LoadOneOfAsOptionalFields</code> <a href="https://docs.apimatic.io/manage-apis/apimatic-metadata#import-settings">import setting</a> enabled to load all <code>oneOf</code> schemas as models with optional fields.</p>
<h2>Invalid <code>$ref</code> Schema Paths Will Not Be Dereferenced</h2>
<p><strong><code>New</code></strong></p>
<p>For specs containing direct references to a global schema (those defined under <code>definitions</code> in v2.0 or under <code>components/schemas</code> in v3.0) in the <code>$ref</code> path will no longer be dereferenced e.g. the following case shows a direct reference made to a global schema named <code>DefinitionName</code>:</p>
<pre><code class="language-json">&quot;$ref&quot;: &quot;DefinitionName&quot;
</code></pre>
<p>This is invalid and will no longer be dereferenced and an error will be thrown instead. Only valid <code>$ref</code> paths will be entertained e.g. in case of v2.0 a valid path would look like:</p>
<pre><code class="language-json">&quot;$ref&quot;: &quot;#/definitions/DefinitionName&quot;
</code></pre>
<p>and for v3.0 it will look like:</p>
<pre><code class="language-json">&quot;$ref&quot;: &quot;#/components/schemas/DefinitionName&quot;
</code></pre>
<p><strong>Impact Level</strong>: <code>HIGH</code></p>
<p><strong>Impact Details</strong>: If your files contains invalid references like these, you will need to correct them to avoid any issues during import.</p>
<h2>Operations Containing Invalid <code>$ref</code>s in Parameters Will Now Be Imported</h2>
<p><strong><code>Improvement</code></strong></p>
<p>In OpenAPI, you can only use <code>$ref</code> to reference another component of the same type. This means you cannot reference a Parameter object inside a Schema object or vice versa. If, in an Operation object [<a href="https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#operationObject">v2</a>, <a href="https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md#operationObject">v3</a>], a Parameter object [<a href="https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#parameterObject">v2</a>, <a href="https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md#parameterObject">v3</a>] tried referencing a Schema object [<a href="https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#schemaObject">v2</a>, <a href="https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md#schemaObject">v3</a>] directly using <code>$ref</code>, the importer did not import the whole Operation object in which the parameter resided. However, now the operation is loaded and only the Parameter object is not loaded.</p>
<p><strong>Impact Level</strong>: <code>HIGH</code></p>
<p><strong>Impact Details</strong>: If a case like above exists in your spec, a new endpoint will be added upon import which will impact SDKs, Docs/Portal and API Transformer output where applicable. If there are any inline schemas defined in the endpoint they will also be imported. Addition of new models can also impact SDKs, Docs/Portal and API Transformer output where applicable.</p>
<p><strong>Workaround</strong>: To get the output as before, you will need to remove the concerned Operation object from your spec.</p>
<h2><code>$ref</code> As a Schema Property Now Allowed</h2>
<p><strong><code>Improvement</code></strong></p>
<p>If an object schema was defined in which a property was named as <code>$ref</code>, it was ignored as the name conflicted with the reserved key <code>$ref</code> used for referencing components. However, now such schema properties will no longer be ignored.</p>
<p><strong>Impact Level</strong>: <code>HIGH</code></p>
<p><strong>Impact Details</strong>: Schema properties named <code>$ref</code> will now be loaded into model properties that can impact SDKs, Docs/Portal and API Transformer output where applicable.</p>
<p><strong>Workaround</strong>: You can remove the <code>$ref</code> property from schema properties definition to get the output as before.</p>
<h2>Fixed: Valid <code>$ref</code>s That Remained Unresolved Even After Import</h2>
<p><strong><code>Bug Fix</code></strong></p>
<p>In some rare cases, a valid reference could not be dereferenced properly resulting in fields/parameters/responses to acquire the type <a href="https://docs.apimatic.io/define-apis/field-types#additional-types"><code>Object</code>/<code>Dynamic</code></a> after importing into APIMatic. This is now fixed.</p>
<p><strong>Impact Level</strong>: <code>HIGH</code></p>
<p><strong>Impact Details</strong>: Affected components will now have correct types assigned to them that can result in changes in SDKs, Docs/Portal and API Transformer output where applicable. In case the type involved complex models/schemas, it is possible that new models may appear after import that can also impact SDKs, Docs/Portal and API Transformer output where applicable.</p>
<h2>Changes to Null Value Handling in Enums</h2>
<p><strong><code>Improvement</code></strong></p>
<p>Any unquoted variations of null e.g. <code>null</code>, <code>Null</code>, <code>NULL</code>, etc. in <code>enum</code> definitions were not imported as enumeration values in APIMatic. Now, if a value equal to <code>null</code> is found, the enumeration list will be considered a <code>nullable</code> enum property/parameter/schema and this value will be removed from the enumeration list when importing into APIMatic. However, all other variations of this value like <code>NULL</code>, <code>Null</code>, etc. will now be considered actual values of the enumeration definition.</p>
<p><strong>Impact Level</strong>: <code>HIGH</code></p>
<p><strong>Impact Details</strong>: Values of enumeration models may be affected accordingly in SDKs, Docs/Portal and API Transformer output where applicable. Properties/parameters/schemas referencing such enums may be treated nullable in some cases which can also impact API Transformer output where applicable.</p>
<p><strong>Workaround</strong>: If you want <code>null</code> to be treated as an enum value and avoid properties/parameters/schemas from becoming nullable you may need to quote the value like <code>&quot;null&quot;</code>. You will have to remove values like <code>NULL</code>, <code>Null</code>, etc. from the enum definition if you do not want them to be treated as enum values.</p>
<h2>Boolean <code>additionalProperties</code> Now Allowed in OpenAPI v2.0 Import</h2>
<p><strong><code>New</code></strong></p>
<p>Support for boolean type <code>additionalProperties</code> in our OpenAPI v2.0 importer has now been added which was previously causing an error during import for some users.</p>
<p><strong>Impact Level</strong>: <code>MEDIUM</code></p>
<p><strong>Impact Details</strong>: You should now be able to import your files successfully that contained boolean type <code>additionalProperties</code> in v2.0. This will not, however, impact output of SDKs, Docs/Portal or API Transformer.</p>
<h2>Misplaced <code>$ref</code>s Will Be Ignored</h2>
<p><strong><code>New</code></strong></p>
<p>A <code>$ref</code> used inside an object where OpenAPI does not allow usage of <code>$ref</code> will no longer be dereferenced. Please check the <a href="https://swagger.io/docs/specification/using-ref">OpenAPI official documentation</a> for more details about valid $refs.</p>
<p><strong>Impact Level</strong>: <code>MEDIUM</code></p>
<p><strong>Impact Details</strong>: Value of the relevant component will no longer show as the dereferenced value in Docs/Portal and API Transformer output where applicable.</p>
<h2>Fixed: Incorrect Model Names When Using <code>PreferSchemaNameOverTitle</code> Import Setting</h2>
<p><strong><code>Bug Fix</code></strong></p>
<p>Even when using <a href="https://docs.apimatic.io/manage-apis/apimatic-metadata#import-settings">import setting</a> <code>PreferSchemaNameOverTitle</code>, some model names were neither being loaded from their global schema name nor <code>title</code> but instead were being inferred from property/parameter names in which these schemas were referenced. This is now fixed.</p>
<p><strong>Impact Level</strong>: <code>MEDIUM</code></p>
<p><strong>Impact Details</strong>: Affected models will now appear with correct names that may impact SDKs, Docs/Portal and API Transformer output where applicable.</p>
<h2>Changes to Array Error Response Schemas Import</h2>
<p><strong><code>New</code></strong></p>
<p>If your error response schemas directly reference an array schema, then the inner schema of this array that describes the array items may now be loaded with the <code>_Error</code> postfix after importing into APIMatic.</p>
<p><strong>Impact Level</strong>: <code>MEDIUM</code></p>
<p><strong>Impact Details</strong>: If such a case exists in your file, then error model names may get changed in SDKs, Docs/Portal and API Transformer output where applicable.</p>
<p><strong>Workaround</strong>: Define the inner model globally under <code>definitions</code> in case of v2.0 or under <code>components/schemas</code> in case of v3.0 and assign it the desired name. It will then be loaded as before.</p>
<h2>Missing Schema Property Descriptions Will Be Loaded</h2>
<p><strong><code>New</code></strong></p>
<p>For schema properties referencing, using <code>$ref</code>, other schemas that contain a <code>description</code> property, the <code>description</code> will now also be loaded as the property&#39;s description during import.</p>
<p><strong>Impact Level</strong>: <code>LOW</code></p>
<p><strong>Impact Details</strong>: The property level <code>description</code> will now appear in Docs/Portal and API Transformer output where applicable.</p>
<h2>Fixed: Decimal Values Getting Changed During Import</h2>
<p><strong><code>Bug Fix</code></strong></p>
<p>Decimal point values used in examples were often affected during import e.g. a value <code>37.777709</code> was being loaded as <code>37.77771</code>. We have fixed the issue and the values will no longer be affected.</p>
<p><strong>Impact Level</strong>: <code>LOW</code></p>
<p><strong>Impact Details</strong>: Such example values may change in Docs/Portal and API Transformer output where applicable.</p>
<h2>Fixed: Valid Map Type Examples Getting Ignored</h2>
<p><strong><code>Bug Fix</code></strong></p>
<p>Some valid examples for cases where map type parameter/schemas were involved were getting missed out during import which is now fixed.</p>
<p><strong>Impact Level</strong>: <code>LOW</code></p>
<p><strong>Impact Details</strong>: Previously such ignored examples will now show up in Docs/Portal and API Transformer output where applicable.</p>
<h2><code>$ref</code>s Within Vendor Extensions Will Be Ignored</h2>
<p><strong><code>New</code></strong></p>
<p>A <code>$ref</code> used within vendor extensions (those starting with <code>x-</code>) will not be dereferenced anymore.</p>
<p><strong>Impact Level</strong>: <code>LOW</code></p>
<p><strong>Impact Details</strong>: Value of the relevant component will no longer show as the dereferenced value in Transformer output where applicable.</p>
<h2>User Vendor Extensions Will Not Be Affected by Importer&#39;s Metadata</h2>
<p><strong><code>Improvement</code></strong></p>
<p>In some cases, the vendor extensions data specified in the OpenAPI description got modified because of the importer inserting importer-specific metadata like <code>id</code>, etc. This is fixed and user data will no longer be modified.</p>
<p><strong>Impact Level</strong>: <code>LOW</code></p>
<p><strong>Impact Details</strong>: Extension values may change accordingly in API Transformer output if applicable.</p>
]]></content:encoded>
      <category>Improvement</category>
    </item>
    <item>
      <title>Support for Multiple Responses Added in RAML 1.0 Import</title>
      <link>https://docs.apimatic.io/changelog/support-for-multiple-responses-added-in-raml10-import</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/support-for-multiple-responses-added-in-raml10-import</guid>
      <pubDate>Fri, 13 Mar 2020 08:37:29 GMT</pubDate>
      <description>&gt;-</description>
      <content:encoded><![CDATA[<p>As part of our ongoing work on support for multiple responses, we have released some related changes in RAML <code>1.0</code> that may change how your imported API entity looks like.</p>
<h2>Details</h2>
<p>Currently, our products (API Transformer, Docs and SDKs) support the following in terms of responses:</p>
<ul>
<li>A single success response definition (status code <code>200</code> or any other in the range <code>200-208</code>).</li>
<li>Multiple client/server error response definitions (status code range <code>400 - 599</code>).</li>
</ul>
<p>We now plan to support all valid status code ranges <code>1XX</code>, <code>2XX</code>, <code>3XX</code>, <code>4XX</code>, or <code>5XX</code> with complete information about response headers as well as allowed content-types and related response body schema definitions and examples. Though any work related to this is still in its early stages, we have released partial support for it in RAML <code>1.0</code> import. So if you are importing RAML <code>1.0</code> files in the Dashboard, you might notice some additional types loaded from the new response data for the following cases:</p>
<ul>
<li>Your RAML file contains response definitions with status codes in the range <code>1XX</code> or <code>3XX</code> that have inline schema definitions like below:</li>
</ul>
<pre><code class="language-yml">  responses:
    303:
      body:
        application/json:
          properties:
            redirection_message: string
</code></pre>
<ul>
<li>Your file contains multiple success response definitions with status codes in the range <code>200-208</code> and the responses (excluding the first one) have inline schema definitions. Note that the first response definition was imported previously as well so any related types for that will appear as before. The only changes you will see are related to importing additional success responses with type definitions that were previously ignored e.g. in the example below an extra type will appear because of loading type information from response with status code <code>206</code>:</li>
</ul>
<pre><code class="language-yml">  responses:
    200:
      body:
        application/json:
          properties:
            message: string
            userId: int
    206:
      body:
        application/json:
          properties:
            receivedContent: string
</code></pre>
<ul>
<li>Your file has error responses in the range <code>4XX</code> or <code>5XX</code> with either inline schema definitions or definitions referencing a global type/model which is referenced only by error responses across the API. The behavior for the latter case is affected because APIMatic loads such types as <code>Exception</code> type models but with this new generic support of responses, they will also be loaded as normal <code>Structure</code> type models that may be considered extra in the current context.</li>
</ul>
<p>The additional types in above cases will not affect your existing/new generated docs/SDKs but will only appear in the editor. In case you want to disable this new data, you can upload a <a href="https://docs.apimatic.io/manage-apis/apimatic-metadata">Metadata</a> file along with your specification at the time of importing, with the <code>DisableMultipleResponses</code> <a href="https://docs.apimatic.io/manage-apis/apimatic-metadata#import-settings">import setting</a> enabled.</p>
]]></content:encoded>
      <category>New Feature</category>
    </item>
    <item>
      <title>Support for XML Added in API Transformer</title>
      <link>https://docs.apimatic.io/changelog/support-for-xml-added-in-api-transformer</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/support-for-xml-added-in-api-transformer</guid>
      <pubDate>Thu, 02 Jan 2020 10:49:33 GMT</pubDate>
      <description>&gt;-</description>
      <content:encoded><![CDATA[<p>API Transformer now preserves XML examples and XML serialization attributes like XML node name, prefix, namespace, etc. which reduces loss of information when converting between popular formats that support XML like <code>OAS</code>, <code>RAML</code>, <code>WSDL</code>, <code>WADL</code>, etc.</p>
<p>Format specific details about these new features are given below:</p>
<h3>OpenAPI</h3>
<p>The OpenAPI format offers a special XML object to help its users fine-tune representation of XML data. This helps specify node name, namespace, prefix and other arrays related metadata. More details about this can be found <a href="https://swagger.io/docs/specification/data-models/representing-xml/">here</a>. Both versions of OAS <code>2.0</code> and <code>3.0</code> support this XML object as well as corresponding XML examples. </p>
<p>API Transformer now preserves information about this XML object as well as any XML examples in all conversions to and from OAS files at the following levels:</p>
<ol>
<li>Request Body</li>
<li>Response Body</li>
<li>Schema</li>
</ol>
<blockquote>
<p><strong>Note</strong></p>
<p>In case both media types <code>application/json</code> and <code>application/xml</code> are supported by an API, currently only <code>application/json</code> will be considered. </p>
</blockquote>
<h3>RAML</h3>
<p>Much like OpenAPI, RAML also offers a very similar XML object to better represent XML data allowing users to specify node name, namespace, prefix and other arrays related metadata. This is supported in <code>1.0</code> and not in <code>0.8</code>. More details about this object can be found <a href="https://github.com/raml-org/raml-spec/blob/master/versions/raml-10/raml-10.md/#xml-serialization-of-type-instances">here</a>. In addition to this, RAML also supports XML schema for defining types that use XML. While <a href="https://docs.apimatic.io/v4/changelog#support-for-xml-and-xsd-added-to-raml-parsers">support for parsing XML schema from RAML has been available</a> in API Transformer for a while, it now also supports XML examples as well as preserves information from the XML object that includes serialization details. Existing support for XML schema has been improved as well. More details about that are provided in the <a href="#xml-schema">XML schema</a> section below. </p>
<p>The above information will now be preserved for all conversions to and from RAML files at the following levels:</p>
<ol>
<li>Request Body</li>
<li>Response Body</li>
<li>Schema/Type Declaration</li>
</ol>
<blockquote>
<p><strong>Note</strong></p>
<p> In case both media types <code>application/json</code> and <code>application/xml</code> are supported by an API, currently only <code>application/json</code> will be considered. </p>
</blockquote>
<h3>Postman</h3>
<p>Postman supports XML examples in request/response body which are now supported in API Transformer for all conversions to and from Postman files. This applies to all supported versions of Postman: <code>1.0</code>, <code>2.0</code> and <code>2.1</code>.</p>
<h3>Insomnia</h3>
<p>Insomnia supports XML examples in the request body which are now supported in API Transformer for all conversions to and from Insomnia files. This applies to all supported versions of Insomnia (<code>3</code> and above).</p>
<h3>HAR</h3>
<p>HAR supports XML examples in request/response body which are now supported in API Transformer for all conversion from HAR files. This applies to the supported version of HAR <code>1.2</code>.</p>
<h3>WSDL/WADL</h3>
<p>Both formats support XML schema for types specification in which improvements have been made that are discussed in the <a href="#xml-schema">XML schema</a> section below.</p>
<h3>XML Schema</h3>
<p>Import/export of XML schema is supported in API Transformer for conversion involving formats RAML, WSDL and WADL. Improvements have been made to the existing support for XML schema that include:</p>
<ol>
<li>Information about node name, prefix and namespaces will now be preserved.</li>
<li>Element and attribute form defaults (qualified/unqualified) will now be taken care of when importing.</li>
<li>During export, if multiple namespaces are involved, multiple XML schema objects will be exported.</li>
</ol>
<h3>XML Examples</h3>
<p>When importing/exporting XML examples, information about node name, prefix, namespace and attributes will now be preserved.</p>
]]></content:encoded>
      <category>New Feature</category>
    </item>
    <item>
      <title>Fix for Vulnerability in Jackson Databind 2.9.9</title>
      <link>https://docs.apimatic.io/changelog/jackson-databind-vulnerability-2-9-9</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/jackson-databind-vulnerability-2-9-9</guid>
      <pubDate>Fri, 27 Sep 2019 08:24:29 GMT</pubDate>
      <description>&gt;-</description>
      <content:encoded><![CDATA[<p>We have updated the <code>jackson-databind</code> library in our Java SDKs due to a vulnerability reported recently. Please generate a new Java SDK from APIMatic to get the fix.</p>
<h2>Details</h2>
<p>The following vulnerability, detailed in <a href="https://nvd.nist.gov/vuln/detail/CVE-2019-16335">CVE-2019-16335</a>, was reported in the version <code>2.9.9</code> of the <code>jackson-databind</code> library that we were using:</p>
<blockquote>
<p>A Polymorphic Typing issue was discovered in FasterXML jackson-databind before 2.9.10. It is related to com.zaxxer.hikari.HikariDataSource. This is a different vulnerability than CVE-2019-14540.</p>
</blockquote>
<h2>Remediation</h2>
<p>The library <code>com.fasterxml.jackson.core:jackson-databind</code> needs to be updated to version <code>2.9.10</code>. For example:</p>
<pre><code class="language-xml">&lt;dependency&gt;
  &lt;groupId&gt;com.fasterxml.jackson.core&lt;/groupId&gt;
  &lt;artifactId&gt;jackson-databind&lt;/artifactId&gt;
  &lt;version&gt;[2.9.10,)&lt;/version&gt;
&lt;/dependency&gt;
</code></pre>
<p>You can generate a new Java SDK from APIMatic to receive this fix.</p>
]]></content:encoded>
      <category>Bug Fix</category>
      <category>Java</category>
    </item>
    <item>
      <title>Response Information Now Better Represented In Exported WADL</title>
      <link>https://docs.apimatic.io/changelog/response-info-now-better-represented-in-exported-wadl</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/response-info-now-better-represented-in-exported-wadl</guid>
      <pubDate>Fri, 05 Jul 2019 07:05:16 GMT</pubDate>
      <description>&gt;-</description>
      <content:encoded><![CDATA[<p>Information about array responses or primitive type responses was being incorrectly represented or entirely missed. We have released some fixes to improve on this.</p>
<h2>Details</h2>
<p>Previously, the response type was linked directly with the response <code>representation</code>. These created two major problems discussed below:</p>
<h3>No Support for Response Arrays</h3>
<p>A response returning a <code>Pet</code> array object was represented as follows:</p>
<pre><code class="language-xml">&lt;response status=&quot;200&quot;&gt;
  &lt;doc title=&quot;200&quot; xml:lang=&quot;en&quot;&gt;successful operation&lt;/doc&gt;
  &lt;representation element=&quot;tns:Pet&quot; mediaType=&quot;application/xml&quot; /&gt;
&lt;/response&gt;
</code></pre>
<p>Since the <code>representation</code> tag does not support arrays, any information about that was lost in the above case. To overcome this problem, we now create a separate model for the response definition that will wrap around the actual response definition. The model will be linked with the <code>representation</code> as follows:</p>
<pre><code class="language-xml">&lt;response status=&quot;200&quot;&gt;
  &lt;doc title=&quot;200&quot; xml:lang=&quot;en&quot;&gt;successful operation&lt;/doc&gt;
  &lt;representation element=&quot;tns:findPetsByStatus_Response&quot; mediaType=&quot;application/xml&quot; /&gt;
&lt;/response&gt;
</code></pre>
<p>The model definition, itself, will look like this and is capable of supporting arrays:</p>
<pre><code class="language-xml">&lt;xs:complexType name=&quot;findPetsByStatus_Response&quot;&gt;
&lt;xs:sequence&gt;
  &lt;xs:element minOccurs=&quot;1&quot; maxOccurs=&quot;unbounded&quot; name=&quot;response&quot; type=&quot;tns:Pet&quot;&gt;
    &lt;xs:annotation&gt;
      &lt;xs:documentation&gt;successful operation&lt;/xs:documentation&gt;
    &lt;/xs:annotation&gt;
  &lt;/xs:element&gt;
&lt;/xs:sequence&gt;
&lt;/xs:complexType&gt;
</code></pre>
<h3>Incorrect Reference to Primitive XSD Types</h3>
<p>According to the WADL <a href="https://www.w3.org/Submission/wadl/#x3-230002.11.2">specification</a>, the <code>element</code> attribute expects a valid reference to a type defined under the <code>grammars</code> section. Due to this, a primitive XSD type reference used here directly is not valid and will no longer be used as before.</p>
<p>This is, therefore, invalid:</p>
<pre><code class="language-xml">&lt;response status=&quot;200&quot;&gt;
  &lt;doc title=&quot;200&quot; xml:lang=&quot;en&quot;&gt;successful operation&lt;/doc&gt;
  &lt;representation element=&quot;xs:integer&quot; mediaType=&quot;application/json&quot; /&gt;
&lt;/response&gt;
</code></pre>
<p>As was in the previous case, we now create a separate model for the response definitions that will wrap around the actual response definition. The model will be linked with the <code>representation</code> as follows:</p>
<pre><code class="language-xml">&lt;response status=&quot;200&quot;&gt;
  &lt;doc title=&quot;200&quot; xml:lang=&quot;en&quot;&gt;successful operation&lt;/doc&gt;
  &lt;representation element=&quot;tns:getInventory_Response&quot; mediaType=&quot;application/json&quot; /&gt;
&lt;/response&gt;
</code></pre>
<p>The model definition, itself, will look like this:</p>
<pre><code class="language-xml">&lt;xs:element name=&quot;getInventory_Response&quot; type=&quot;xs:integer&quot; /&gt;
</code></pre>
]]></content:encoded>
      <category>Improvement</category>
    </item>
    <item>
      <title>Support for Exporting GraphQL Schema Files Now Available</title>
      <link>https://docs.apimatic.io/changelog/support-for-exporting-graphql-schema-files-now-available</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/support-for-exporting-graphql-schema-files-now-available</guid>
      <pubDate>Wed, 03 Jul 2019 10:52:21 GMT</pubDate>
      <description>&gt;-</description>
      <content:encoded><![CDATA[<p>You can now export GraphQL schema files from your REST/SOAP APIs using <a href="https://www.apimatic.io/transformer">API Transformer</a>.</p>
<h2>Details</h2>
<p>With the growing popularity of GraphQL APIs among the developers, we decided to add support for GraphQL schema for facilitating those who are looking to migrate to GraphQL from REST/SOAP. The exported schema file will use the GraphQL&#39;s <a href="https://graphql.org/learn/schema/">Schema Definition Language (SDL)</a> to define the possible queries that can be made as well the type of data that can be exchanged. </p>
<p>The exported schema will serve as a starting point for those looking to migrate to GraphQL. The following features of the schema are supported:</p>
<ul>
<li>Object types</li>
<li>Scalar and Enumeration types</li>
<li>Input types</li>
<li>Arguments</li>
<li>Queries</li>
<li>Mutations</li>
<li>Lists and Non-null fields</li>
</ul>
<p>In addition to above, the following conventions are followed for the exported schema:</p>
<ul>
<li>The names of various components will obey the rules specified <a href="https://graphql.github.io/graphql-spec/June2018/#sec-Names">here</a>.</li>
<li>Object/Input type names will be pascal cased.</li>
<li>All field names will be camel cased. </li>
<li>Enumeration field names will be upper cased.</li>
</ul>
<p><em>Update</em>: You can also check out our blog on this feature at this <a href="https://blog.apimatic.io/moving-to-graphql-from-soap-or-rest-2383f7dc6523">link</a> for more details.</p>
<blockquote>
<p><strong>Note</strong></p>
<p> If you have any feedback/suggestions, please send them over to us.</p>
</blockquote>
]]></content:encoded>
      <category>New Feature</category>
    </item>
    <item>
      <title>Fix for Jackson Data-bind Vulnerability</title>
      <link>https://docs.apimatic.io/changelog/jackson-databind-vulnerability</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/jackson-databind-vulnerability</guid>
      <pubDate>Fri, 24 May 2019 08:24:29 GMT</pubDate>
      <description>&gt;-</description>
      <content:encoded><![CDATA[<p>We&#39;ve updated the Jackson Data-bind library in our Java SDKs due to a vulnerability reported recently. Please generate a new Java SDK from APIMatic to get the fix.</p>
<h2>Details</h2>
<p>The following vulnerability, detailed in <a href="https://nvd.nist.gov/vuln/detail/CVE-2019-12086">CVE-2019-12086</a>, was reported in the version <code>2.9.8</code> of the library that we were using:</p>
<blockquote>
<p>A Polymorphic Typing issue was discovered in FasterXML jackson-databind 2.x before 2.9.9. When Default Typing is enabled (either globally or for a specific property) for an externally exposed JSON endpoint, the service has the mysql-connector-java jar (8.0.14 or earlier) in the classpath, and an attacker can host a crafted MySQL server reachable by the victim, an attacker can send a crafted JSON message that allows them to read arbitrary local files on the server. This occurs because of missing com.mysql.cj.jdbc.admin.MiniAdmin validation.</p>
</blockquote>
<h2>Remediation</h2>
<p>The library <code>com.fasterxml.jackson.core:jackson-databind</code> needs to be updated to version <code>2.9.9</code> or later. For example:</p>
<pre><code class="language-xml">&lt;dependency&gt;
  &lt;groupId&gt;com.fasterxml.jackson.core&lt;/groupId&gt;
  &lt;artifactId&gt;jackson-databind&lt;/artifactId&gt;
  &lt;version&gt;[2.9.9,)&lt;/version&gt;
&lt;/dependency&gt;
</code></pre>
<p>You can generate a new Java SDK from APIMatic to receive this fix.</p>
]]></content:encoded>
      <category>Bug Fix</category>
      <category>Java</category>
    </item>
    <item>
      <title>Support for Insomnia YAML Files Added In Import/Export</title>
      <link>https://docs.apimatic.io/changelog/support-for-insomnia-yaml-added-in-import-export</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/support-for-insomnia-yaml-added-in-import-export</guid>
      <pubDate>Wed, 22 May 2019 08:26:55 GMT</pubDate>
      <description>&gt;-</description>
      <content:encoded><![CDATA[<p>API Transformer and other APIMatic products now support import and export of <code>Insomnia Export Format</code> files that are in YAML format. </p>
<h2>Details</h2>
<p>Recently, Insomnia updated its app to allow users to export Insomnia files in YAML format. API Transformer and our other products now also support import/export of Insomnia YAML files. Previously, only JSON was supported.</p>
]]></content:encoded>
      <category>New Feature</category>
    </item>
    <item>
      <title>Some Improvements to Postman Import/Export to be Released Soon</title>
      <link>https://docs.apimatic.io/changelog/some-improvements-to-postman-import-export-to-be-released-soon</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/some-improvements-to-postman-import-export-to-be-released-soon</guid>
      <pubDate>Fri, 17 May 2019 07:03:01 GMT</pubDate>
      <description>Improvements have been made to Postman import/export of versions 1.0, 2.0 that are expected to be released in the coming few days.</description>
      <content:encoded><![CDATA[<p>Improvements have been made to Postman import/export of versions <code>1.0</code>, <code>2.0</code> that are expected to be released in the coming few days.</p>
<p>Following are the expected changes to Postman import/export across API Transformer and Dashboard:</p>
<ol>
<li><p>Any <a href="https://docs.apimatic.io/define-apis/api-authentication#additional-headers">Additional Headers</a> specified in the APIMATIC editor will be added to Postman requests at the time of export.</p>
</li>
<li><p>Support for OAuth2 client ID/client secret examples is added in import/export. </p>
</li>
<li><p>When exporting to Postman, we auto-generated sample values for request parameters and responses where no examples were available. Many improvements have been made to this sample generation including:</p>
<ul>
<li><p>The samples generated will abide by various kind of type restrictions specified (if any) in the input API description including pattern, minimum/maximum length, minimum/maximum properties, minimum/maximum/unique items, multiple of, minimum/maximum value, total/fraction digits.</p>
<blockquote>
<p><strong>Note</strong>: In case of any conflicts/ambiguities in the restrictions, the sample value will not be generated.</p>
</blockquote>
</li>
<li><p>Generating multi-dimensional array examples will be supported for properties that are of such type. </p>
</li>
<li><p>For generating samples of models that support inheritance, the samples will include parent fields to any level of inheritance.</p>
</li>
</ul>
</li>
<li><p>Support for wrapping body in object added to export for cases where endpoint contained multiple body parameters with the <code>WrapBodyInObject</code> flag turned on.</p>
</li>
<li><p>Some issues related to case-senstivity fixed in exporting OAuth2 grant type information.</p>
</li>
<li><p>Fixed issues related to exporting invalid content-type information for responses.</p>
</li>
<li><p>Handled descriptions getting missed for headers during import/export. </p>
</li>
<li><p>Handled new Postman structure for specifying authentication information in the root object in Postman 1.0 export using property <code>auth</code>. </p>
</li>
<li><p>Fixed a bug related to information from collection variables getting lost during import.</p>
</li>
<li><p>Improved type extraction that occurs during import from Postman sample values which are provided for request parameters and responses. Also improved naming scheme for extracted models during import.</p>
</li>
<li><p>Fixed a bug related to extracting path parameter name from request URLs.</p>
</li>
<li><p>Improved auto-generated test cases when importing Postman: added missing support for <code>KEYS</code> body match mode.</p>
</li>
<li><p>Added more consistency when loading JSON examples into models. Instead of loading examples at each property of the model or at both property and model level, the examples will now only be loaded at model level.</p>
</li>
<li><p>Added warnings for cases when body data is specified for GET methods.</p>
</li>
</ol>
]]></content:encoded>
      <category>Improvement</category>
    </item>
    <item>
      <title>Improvements in Blocking API Calls in Java</title>
      <link>https://docs.apimatic.io/changelog/improvement-blocking-api-call-java</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/improvement-blocking-api-call-java</guid>
      <pubDate>Fri, 03 May 2019 09:56:55 GMT</pubDate>
      <description>We've made several improvements to our Java SDK, resulting in considerable resource savings and speed-up, in case of blocking API calls. To benefit from these improvements, please generate your SDKs again.</description>
      <content:encoded><![CDATA[<p>We&#39;ve made several improvements to our Java SDK, resulting in considerable resource savings and speed-up, in case of blocking API calls. To benefit from these improvements, please generate your SDKs again.</p>
<h2>Details</h2>
<p>We&#39;ve revamped our Code Generator for Java to generate better code in case of blocking API calls.</p>
<p>Previously, the methods for blocking API calls were a wrapper around the asynchronous version and used locks to wait on the result. However, this lead to extra resource usage such as threads being consumed and time being wasted when waiting on threads.</p>
<p>The revamped code relies on the HTTP Client to provide a blocking way of making HTTP calls, instead of reimplementing this at the SDK layer.</p>
<p>We were able to do this without introducing any breaking changes; hence, generating an updated Java SDK is recommended.</p>
]]></content:encoded>
      <category>Improvement</category>
      <category>Java</category>
    </item>
    <item>
      <title>Support for Postman API Key Authentication and Disabled Request Body Added</title>
      <link>https://docs.apimatic.io/changelog/support-for-postman-api-key-auth-and-disabled-body-added</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/support-for-postman-api-key-auth-and-disabled-body-added</guid>
      <pubDate>Thu, 25 Apr 2019 08:14:27 GMT</pubDate>
      <description>Postman recently introduced API Key authentication in its latest app and corresponding Postman Collection versions. API Transformer and other APIMatic products now support this feature for all import/export purposes. In addition to this, we now also handle disabled request bod...</description>
      <content:encoded><![CDATA[<p>Postman recently introduced API Key authentication in its latest app and corresponding Postman Collection versions. API Transformer and other APIMatic products now support this feature for all import/export purposes. In addition to this, we now also handle disabled request bodies (another new feature introduced by Postman) when importing Collection files.</p>
<h2>Details</h2>
<h3>New Authentication Type: API Key</h3>
<p>Postman recently introduced API Key authentication in its latest app. This addition was also reflected in all Postman Collection versions <code>1.0</code>, <code>2.0</code> and <code>2.1</code>. More details about the changes can be viewed in the <a href="https://www.getpostman.com/downloads/release-notes">Postman Release Notes</a>. An API key is generally defined by specifying:</p>
<ol>
<li>API key name</li>
<li>API key value</li>
<li>API key location (query/header)</li>
</ol>
<p>Our Postman Collection parsers for versions <code>1.0</code>, <code>2.0</code> and <code>2.1</code> now support this authentication type for all import/export purposes. Hence, any conversions made on API Transformer or imports on the Dashboard will reflect these changes. </p>
<h3>Disable Request Body</h3>
<p>Postman now allows its users to disable request body in which case a null body will be sent. Our parsers will ignore any disabled request body params during import from Postman Collection files.</p>
]]></content:encoded>
      <category>New Feature</category>
    </item>
    <item>
      <title>Node.js SuperAgent Vulnerability and Other Fixes</title>
      <link>https://docs.apimatic.io/changelog/superagent-vulnerability-fixes</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/superagent-vulnerability-fixes</guid>
      <pubDate>Wed, 20 Mar 2019 10:35:33 GMT</pubDate>
      <description>We've updated the version of SuperAgent library used in our Node.js SDK to fix a moderate severity vulnerability. We've also made some other smaller fixes.</description>
      <content:encoded><![CDATA[<p>We&#39;ve updated the version of SuperAgent library used in our Node.js SDK to fix a moderate severity vulnerability. We&#39;ve also made some other smaller fixes.</p>
<p>Please generate a new Node.js SDK to receive these fixes.</p>
<h2>Details</h2>
<blockquote>
<p><strong>Note</strong></p>
<p> These changes only affect Node.js SDKs that use <code>SuperAgent</code> as their HTTP client. This client can be selected by changing the <a href="https://docs.apimatic.io/generate-sdks/customize-sdks/codegen-settings/codegen-settings-overview">CodeGen settings</a>; the default HTTP client is <code>request</code>. </p>
</blockquote>
<ul>
<li>We&#39;ve updated our SuperAgent dependency from <code>1.5.0</code> to <code>4.1.0</code>, due to a moderate level vulnerability in the previous version.</li>
<li>We&#39;ve fixed a bug in our HTTP client wrapper for SuperAgent, which caused our Mocha tests to get stuck.</li>
<li>We&#39;ve added license and repository information to the <code>package.json</code> file to prevent <code>npm</code> from showing a warning.</li>
</ul>
<p>Please generate a new Node.js SDK to receive these fixes.</p>
]]></content:encoded>
      <category>Bug Fix</category>
      <category>NodeJS</category>
    </item>
    <item>
      <title>Following Redirects in SDKs</title>
      <link>https://docs.apimatic.io/changelog/following-redirects-sdks</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/following-redirects-sdks</guid>
      <pubDate>Tue, 19 Mar 2019 08:27:36 GMT</pubDate>
      <description>We've fixed an issue in SDKs where HTTP redirections were not being handled properly. Please generate new SDKs to receive the fixes.</description>
      <content:encoded><![CDATA[<p>We&#39;ve fixed an issue in SDKs where HTTP redirections were not being handled properly. Please generate new SDKs to receive the fixes.</p>
<h2>Details</h2>
<p>Java, Node.js and Ruby SDKs will now follow HTTP redirects properly.</p>
<p>The table below describes what the expected behavior is:</p>
<table>
<thead>
<tr>
<th>Status Codes</th>
<th>Behavior</th>
</tr>
</thead>
<tbody><tr>
<td>301-303</td>
<td>Request is repeated but with the GET method. Request body will be dropped, if any. This matches the current behavior of the web browsers.*</td>
</tr>
<tr>
<td>307-308</td>
<td>Request is repeated with the original method and body.</td>
</tr>
</tbody></table>
<p><em>* Requests with <code>HEAD</code> method are repeated without change.</em></p>
<h2>SDKs with Pending Issues</h2>
<p>We are still looking at how to overcome the limitations of the underlying HTTP client to fix this issue in C#, PHP and Python.</p>
<ul>
<li>Python SDK will not change the HTTP method to <code>GET</code> on 301 redirects, if the original method was <code>PUT</code> or <code>DELETE</code>.</li>
<li>C# SDK will not change the HTTP method to <code>GET</code> on 301-303 redirects, if the original method was <code>PUT</code> or <code>DELETE</code>.</li>
<li>PHP SDK will not change the HTTP method to <code>GET</code> on 301-303 redirects, if the original method was <code>PUT</code> or <code>DELETE</code>.</li>
</ul>
<p>We&#39;re exploring options to fix these issues. Please <a href="https://support.apimatic.io/hc/en-us/requests/new">submit a ticket</a> if you run into them.</p>
]]></content:encoded>
      <category>Bug Fix</category>
      <category>Java</category>
      <category>NodeJS</category>
      <category>Ruby</category>
    </item>
    <item>
      <title>Logging in Java</title>
      <link>https://docs.apimatic.io/changelog/logging-java</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/logging-java</guid>
      <pubDate>Thu, 14 Mar 2019 17:56:51 GMT</pubDate>
      <description>We've added logging to our Java SDKs. Logging-enabled SDKs will log important events in the API lifecycle for troubleshooting or debugging later.</description>
      <content:encoded><![CDATA[<p>We&#39;ve added logging to our Java SDKs. Logging-enabled SDKs will log important events in the API lifecycle for troubleshooting or debugging later.</p>
<h2>Enable Logging in SDKs</h2>
<p>By default, APIMatic CodeGen does not add the ability to perform logging in SDKs.</p>
<p>To turn on this feature, just switch on the <em>Enable Logging</em> flag in Code Generation Settings.</p>
<p><img src="https://docs.apimatic.io/images/changelog/chrome_2017-01-11_18-06-17.png" alt="screenshot logging SDKs"></p>
<h2>How Java does Logging</h2>
<p>Our Java SDKs use Simple Logging Facade for Java (SLF4J). From SLF4J website:</p>
<blockquote>
<p>The Simple Logging Facade for Java (SLF4J) serves as a simple facade or abstraction for various logging frameworks (e.g. <code>java.util.logging</code>, <code>logback</code>, <code>log4j</code>) allowing the end user to plug in the desired logging framework at deployment time.</p>
</blockquote>
<h2>Configuring SLF4J</h2>
<p>SLF4J requires a logging backend to be added by installing a separate dependency.</p>
<p>For example, to use Log4J, you must add the following dependency to your application&#39;s <code>pom.xml</code>:</p>
<pre><code class="language-xml">&lt;dependency&gt;
    &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
    &lt;artifactId&gt;slf4j-log4j12&lt;/artifactId&gt;
    &lt;version&gt;1.7.7&lt;/version&gt;
&lt;/dependency&gt;
</code></pre>
<p>Now you just need to add a configuration file such as <code>src/main/resources/log4j.properties</code>.</p>
<p>Here’s a sample configuration:</p>
<pre><code class="language-txt">log4j.rootLogger=TRACE, stdout
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.Target=System.out
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d{yyyy-MM-dd&#39;T&#39;HH:mm:ss.SSS} %-5p [%c] - %m%n
</code></pre>
<h2>Using Other Logging Frameworks</h2>
<p>To learn how to add other logging frameworks, checkout this link:</p>
<ul>
<li><a href="http://jkssweetlife.com/configure-slf4j-working-various-logging-frameworks/">How to configure SLF4J working with various logging frameworks</a>.</li>
</ul>
]]></content:encoded>
      <category>New Feature</category>
      <category>Java</category>
    </item>
    <item>
      <title>Support for XML Data and XML Schema Added to Our RAML Parsers</title>
      <link>https://docs.apimatic.io/changelog/support-for-xml-and-xsd-added-to-raml-parsers</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/support-for-xml-and-xsd-added-to-raml-parsers</guid>
      <pubDate>Tue, 05 Mar 2019 06:14:21 GMT</pubDate>
      <description>Both versions of RAML (0.8, 1.0) support XML examples and XML schema definitions. Previously, we supported only JSON examples and JSON schema definitions found in RAML input files. Now, however, we support parsing of XML examples and XML schema definitions as well.</description>
      <content:encoded><![CDATA[<p>Both versions of RAML (<a href="https://github.com/raml-org/raml-spec/blob/master/versions/raml-08/raml-08.md"><code>0.8</code></a>, <a href="https://github.com/raml-org/raml-spec/blob/master/versions/raml-10/raml-10.md"><code>1.0</code></a>) support XML examples and XML schema definitions. Previously, we supported only JSON examples and JSON schema definitions found in RAML input files. Now, however, we support parsing of XML examples and XML schema definitions as well. </p>
<h2>Details</h2>
<p>XML examples and XML schema type specifications are allowed at several levels in RAML e.g. request/response body definitions, global schema/type definitions, etc. While these were ignored previously by our tool, we now utilize them in case no JSON examples/schema definitions are found. </p>
<h3>Example</h3>
<pre><code class="language-yml">/jobs:
  displayName: Jobs
  post:
    description: Create a Job
    body:
      text/xml:
        schema: |
          &lt;xs:schema attributeFormDefault=&quot;unqualified&quot;
                     elementFormDefault=&quot;qualified&quot;
                     xmlns:xs=&quot;http://www.w3.org/2001/XMLSchema&quot;&gt;
            &lt;xs:element name=&quot;api-request&quot;&gt;
              &lt;xs:complexType&gt;
                &lt;xs:sequence&gt;
                  &lt;xs:element type=&quot;xs:string&quot; name=&quot;input&quot;/&gt;
                &lt;/xs:sequence&gt;
              &lt;/xs:complexType&gt;
            &lt;/xs:element&gt;
          &lt;/xs:schema&gt;
        example: |
          &lt;api-request&gt;
            &lt;input&gt;Test Input&lt;/input&gt;
          &lt;/api-request&gt;
</code></pre>
<p>For the above case, in order to extract information about the request body, our parsers will internally convert the XML schema to a JSON schema and the XML example to a JSON example.</p>
<blockquote>
<p><strong>Note</strong></p>
<p>Since information extracted from XML schema/XML examples is essentially mapped to a JSON structure, it may not support every XML feature.</p>
</blockquote>
]]></content:encoded>
      <category>New Feature</category>
    </item>
    <item>
      <title>Token Refresh on Expiry in OAuth 2 Client Credential Flow</title>
      <link>https://docs.apimatic.io/changelog/token-refresh-expiry-oauth-2-client-credential</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/token-refresh-expiry-oauth-2-client-credential</guid>
      <pubDate>Wed, 27 Feb 2019 12:35:40 GMT</pubDate>
      <description>We've updated our SDKs that use OAuth 2 Client Credential Flow to enable automatic re-authorization of the client when the OAuth token is expired.</description>
      <content:encoded><![CDATA[<p>We&#39;ve updated our SDKs that use OAuth 2 Client Credential Flow to enable automatic re-authorization of the client when the OAuth token is expired.</p>
<h2>Details</h2>
<p>Previously, our SDK behavior was such that if the OAuth token was not set and the user attempted to make an API call, the SDK would automatically get an OAuth token before making the actual API call.</p>
<p>Now, this behavior has been extended to expired OAuth tokens as well. If an API sends the <code>expires_in</code> property in the OAuth token, the SDK will check the expiry before the user&#39;s API calls to make sure the token is still valid. If the token is found to have expired, the SDK will attempt to get a new token and then make the actual API call.</p>
]]></content:encoded>
      <category>Improvement</category>
      <category>PHP</category>
      <category>Java</category>
      <category>Ruby</category>
      <category>Python</category>
      <category>CSharp</category>
    </item>
    <item>
      <title>Configurable Logging in NodeJS</title>
      <link>https://docs.apimatic.io/changelog/nodejs-configurable-logging</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/nodejs-configurable-logging</guid>
      <pubDate>Wed, 27 Feb 2019 12:18:58 GMT</pubDate>
      <description>We've added the ability to programmatically configure the logger used in the NodeJS SDK. You can now disable logging or add a custom log handler during runtime.</description>
      <content:encoded><![CDATA[<p>We&#39;ve added the ability to programmatically configure the logger used in the NodeJS SDK. You can now disable logging or add a custom log handler during runtime.</p>
<p>In order to get this feature, you must generate an updated NodeJS SDK from APIMatic.</p>
<blockquote>
<p><strong>Note</strong></p>
<p>In order to use logging in NodeJS, you must turn on the <strong>Enable Logging</strong> flag in the <a href="https://docs.apimatic.io/generate-sdks/customize-sdks/codegen-settings/codegen-settings-overview">Code Generation settings</a>.</p>
</blockquote>
<h2>Logger Instance</h2>
<p>The NodeJS SDK now creates and maintains its own instance of the Winston logger. Previously, we were using the default static instance provided by Winston for application logging.</p>
<h2>Configuring Logger</h2>
<p>The logger can be reconfigured with custom transport:</p>
<pre><code class="language-js">const DailyRotateFile = require(&quot;winston-daily-rotate-file&quot;);
sdk.Logger.configure({
  level: &quot;verbose&quot;,
  transports: [new DailyRotateFile(opts)]
});
</code></pre>
<p>Logging can also be disabled for the SDK:</p>
<pre><code class="language-js">sdk.Logger.clear();
</code></pre>
<p>The <code>sdk.Logger</code> gets the instance of the Winston logger used by the SDK for all logging actions, assuming that the library (SDK) was imported into the <code>sdk</code> variable.</p>
<p>For more configuration options, checkout the <a href="https://github.com/winstonjs/winston/tree/2.x">documentation for Winston</a>.</p>
]]></content:encoded>
      <category>Improvement</category>
      <category>NodeJS</category>
    </item>
    <item>
      <title>&gt;-</title>
      <link>https://docs.apimatic.io/changelog/big-improvements-to-raml-resource-types-and-traits-support</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/big-improvements-to-raml-resource-types-and-traits-support</guid>
      <pubDate>Fri, 11 Jan 2019 10:51:12 GMT</pubDate>
      <description>Resource types and traits are an integral part of RAML. We have been working hard in improving our support for them in order to improve your RAML conversion experience on API Transformer. Majority of the improvements target RAML v1.0 while some of them also target v0.8.</description>
      <content:encoded><![CDATA[<p>Resource types and traits are an integral part of RAML. We have been working hard in improving our support for them in order to improve your RAML conversion experience on API Transformer. Majority of the improvements target RAML v1.0 while some of them also target v0.8.</p>
<h2>Details</h2>
<p>Here are details of the improvements made:</p>
<ul>
<li><p>[<code>RAML v1.0</code>] Merging of resource types and traits and applying them to resources and methods (respectively) now follow the algorithm described <a href="https://github.com/raml-org/raml-spec/blob/master/versions/raml-10/raml-10.md/#algorithm-of-merging-traits-and-methods">at this link</a>. Due to this, you can expect improved support for nested resource types/traits as well as a more accurate output resulting from the merge because of careful consideration of precedence/priority of the components being merged.</p>
</li>
<li><p>[<code>RAML v1.0</code>] With RAML 1.0 came support for complex type resource type and trait param values in addition to string values. Details regarding this feature can be found in their spec <a href="https://github.com/raml-org/raml-spec/blob/master/versions/raml-10/raml-10.md/#resource-type-and-trait-parameters">here</a>. We have improved support for such parameters.</p>
</li>
<li><p>[<code>RAML v0.8</code>] In RAML 0.8, resource type parameter values can be further transformed by applying functions like !singularize or !pluralize. More details regarding these can be found <a href="https://github.com/raml-org/raml-spec/blob/master/versions/raml-08/raml-08.md#parameters">here</a>. Support for these were missing in our RAML v0.8 parsers and have now have been added.</p>
</li>
<li><p>[<code>RAML v0.8, v1.0</code>] Previously, our parsing process involved a step where resource types and traits were validated before applying their parameters. This often caused issues especially in cases where resource type or trait params were expected to have a value of a type other than string e.g. in the example of the resource type below, a param <code>&lt;&lt;minimumValue&gt;&gt;</code> is assigned as a value for boolean property <code>minimum</code>.</p>
</li>
</ul>
<pre><code class="language-yml">resourceTypes:
  collection:
    get:
      queryParameters:
        per_page:
          type: integer
          minimum: &lt;&lt;minimumValue&gt;&gt;
</code></pre>
<p>Because of processing this resource type before applying the parameters, our parser assumed that the user incorrectly assigned a string value <code>&lt;&lt;minimumValue&gt;&gt;</code> to a boolean property and threw an exception. We have now restructured our parsers so that resource types and traits are now evaluated only after the parameters have been applied to avoid such issues.</p>
<ul>
<li>[<code>RAML v1.0</code>] Other minor improvements to support RAML v1.0 library-level resource types and traits in a better way were also made.</li>
</ul>
<p>Transform new or re-import your existing RAML files to get the latest changes. If you notice any issues or have any feedback, you can always generate a support ticket on our website.</p>
]]></content:encoded>
      <category>Improvement</category>
    </item>
    <item>
      <title>OpenAPI/Swagger External Documentation Now Supported in API Transformer</title>
      <link>https://docs.apimatic.io/changelog/swagger-external-docs-supported-in-api-transformer</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/swagger-external-docs-supported-in-api-transformer</guid>
      <pubDate>Fri, 11 Jan 2019 09:13:34 GMT</pubDate>
      <description>OpenAPI/Swagger allows you to include external documentation in your API description for various components. API Transformer now supports conversion of this information for both import/export of OpenAPI/Swagger files.</description>
      <content:encoded><![CDATA[<p>OpenAPI/Swagger allows you to include external documentation in your API description for various components. API Transformer now supports conversion of this information for both import/export of OpenAPI/Swagger files.</p>
<h2>Details</h2>
<p>OpenAPI/Swagger allows you to link external documentation at four different levels in your API description:</p>
<ol>
<li>Root Object [<a href="https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#swagger-object">v2.0</a>, <a href="https://swagger.io/specification/#oasObject">v3.0</a>]</li>
<li>Operation Object [<a href="https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#operationObject">v2.0</a>, <a href="https://swagger.io/specification/#operationObject">v3.0</a>]</li>
<li>Tag Object [<a href="https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#tagObject">v2.0</a>, <a href="https://swagger.io/specification/#tagObject">v3.0</a>]</li>
<li>Schema Object [<a href="https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#schemaObject">v2.0</a>, <a href="https://swagger.io/specification/#schemaObject">v3.0</a>]</li>
</ol>
<p>For each of the above levels, you can define an External Documentation Object against the <code>externalDocs</code> property. It can look like the following:</p>
<pre><code class="language-json">{	
	&quot;externalDocs&quot;: {
	  &quot;description&quot;: &quot;More details can be found at:&quot;,
	  &quot;url&quot;: &quot;https://example.com&quot;
	}
}
</code></pre>
<p>For External Documentation Object to be considered valid and transformed successfully, <code>url</code> must be present as it is a required property.</p>
]]></content:encoded>
      <category>New Feature</category>
    </item>
    <item>
      <title>Jackson Databind Vulnerability in Java SDKs</title>
      <link>https://docs.apimatic.io/changelog/java-jackson-vulnerability-fix</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/java-jackson-vulnerability-fix</guid>
      <pubDate>Thu, 10 Jan 2019 09:34:03 GMT</pubDate>
      <description>We've updated the version for jackson-databind, a dependency of our Java SDK, due to a vulnerability found in the previous version of the library.</description>
      <content:encoded><![CDATA[<p>We&#39;ve updated the version for <code>jackson-databind</code>, a dependency of our Java SDK, due to a vulnerability found in the previous version of the library.</p>
<p>We recommend that you generate and redeploy your Java SDK to get the fix.</p>
]]></content:encoded>
      <category>Bug Fix</category>
      <category>Java</category>
    </item>
    <item>
      <title>&gt;-</title>
      <link>https://docs.apimatic.io/changelog/changes-naming-scheme-urls-other-fixes-dx-portal</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/changes-naming-scheme-urls-other-fixes-dx-portal</guid>
      <pubDate>Wed, 09 Jan 2019 06:02:22 GMT</pubDate>
      <description>We're releasing a new version of our Developer Experience Portal which improves docs generation for all SDKs. This is a breaking change and requires manual migration. Check out all the changes below.</description>
      <content:encoded><![CDATA[<p>We&#39;re releasing a new version of our Developer Experience Portal which improves docs generation for all SDKs. This is a <strong>breaking change</strong> and requires manual migration. Check out all the changes below.</p>
<h2>Change in Naming Scheme Affecting Titles</h2>
<p>We&#39;re changing the default naming scheme for sections in the docs. Instead of using SDK-specific endpoint, controller and custom-type names for titles, we&#39;ll now be using the original names from the API specification making all titles SDK-agnostic.</p>
<p>All names will be <em>title-cased</em> and sanitized for use in the documentation. Original names might have been written as camel-cased or snake-cased but APIMatic will automatically convert them to title-case.</p>
<h3>How Title-Casing Works</h3>
<p>Title-casing names means that:</p>
<ul>
<li>Camel-cased and pascal-cased names are converted to space-separated words.</li>
<li>All symbols will be removed from names, except for hyphens.</li>
<li>Multiple consecutive spaces are reduced to just one space.</li>
<li>First letter of each word is capitalized.</li>
</ul>
<p>Here are some examples:</p>
<table>
<thead>
<tr>
<th>Original Name</th>
<th>Title-Cased Name</th>
</tr>
</thead>
<tbody><tr>
<td>Some string</td>
<td>Some String</td>
</tr>
<tr>
<td>SomeString1_2_3</td>
<td>Some String 1 2 3</td>
</tr>
<tr>
<td>SomeEXEString</td>
<td>Some EXE String</td>
</tr>
<tr>
<td>Some-string</td>
<td>Some-String</td>
</tr>
<tr>
<td>GetStringByName</td>
<td>Get String by Name</td>
</tr>
<tr>
<td>string-by-name</td>
<td>String-by-Name</td>
</tr>
</tbody></table>
<h2>Do-Not-Split Words Support</h2>
<p><a href="https://docs.apimatic.io/v4/changelog#do-not-split-words">Do-Not-Split words</a> lets you specify a list of words that should not be split during naming conversion. This helps converting names that have unconventional capitalization such as &quot;VMware&quot; which would otherwise be title-cased as &quot;V Mware&quot;.</p>
<p>Adding such words to the do-not-split-words list prevents this from happening in titles generated in the docs as well as identifiers created in the SDKs.</p>
<h2>Simplified URL Scheme</h2>
<p>Our new URL scheme is similar to the scheme used on GitHub for generating hash-ids for headings. The URLs are derived from titles and therefore, will respect Do-Not-Split Words list as well. This scheme also works better with abbreviations in titles.</p>
<p>Besides this, we&#39;ve also moved some SDKs to shorter URLs and added redirections for their old paths:</p>
<table>
<thead>
<tr>
<th>SDK Platform</th>
<th>Old path</th>
<th>New Path</th>
</tr>
</thead>
<tbody><tr>
<td>PHP</td>
<td><code>/php-composer-libary</code></td>
<td><code>/php</code></td>
</tr>
<tr>
<td>AngularJS</td>
<td><code>/angular-js</code></td>
<td><code>/angularjs</code></td>
</tr>
<tr>
<td>Java</td>
<td><code>/java-maven-libary</code></td>
<td><code>/java</code></td>
</tr>
</tbody></table>
<h2>Custom Guide Titles Now Included By Default (Fix)</h2>
<p>Titles for custom-guides were not previously added as heading to the top of the guide pages. This lead to inconsistency between guides and duplication of title in guide content. </p>
<p>We&#39;ve rectified this and made sure titles will always appear on top of guide pages. However, this means that you&#39;ll have to remove the extra heading from the guide content if you&#39;ve added one before migration.</p>
<h2>HTTP Method Prefix Flag Always Respected (Fix)</h2>
<p>Endpoint names are now consistently prefixed according to the HTTP verb across HTTP and SDK docs if the <code>UseHttpMethodPrefix</code> flag is <strong>on</strong> in CodeGen settings. If you don&#39;t want the endpoint names to be prefixed, please turn off this flag.</p>
<h2>Syntax Highlighting (Fix)</h2>
<p>We&#39;ve made several improvements to our syntax highlighter, improving its accuracy and fixing incorrect detection of language snippet for highlighting.</p>
<p>We&#39;ve also added highlighting for the HTTP method signature in our HTTP docs.</p>
<h2>Migrating to the New Release</h2>
<p>This release is available to all existing and new customers. This section describes how to upgrade your portal version to this release.</p>
<blockquote>
<p><strong>Breaking Changes</strong></p>
<p>Please test the URLs for all the API Endpoints and Models pages. These URLs <em>might</em> have changed due to the change in naming-scheme for titles. Also, custom guides&#39; content must not repeat the title as a heading because the title is now included by default.</p>
</blockquote>
<h3>Portals Embedded in Websites</h3>
<p>Customers who have embedded portals in their website <a href="https://docs.apimatic.io/publish-apis/embedding-your-portal"><strong>should generate a new snippet for embedding</strong></a>.</p>
<h3>Portals Hosted on APIMatic</h3>
<p>Customers who have portals hosted on APIMatic will be contacted for migration.</p>
<h3>White-Labelled Portals</h3>
<p>Customers who have white-labelled portals will be contacted for migration.</p>
]]></content:encoded>
      <category>Improvement</category>
    </item>
    <item>
      <title>Added Java Version to POM File</title>
      <link>https://docs.apimatic.io/changelog/java-added-java-version-info</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/java-added-java-version-info</guid>
      <pubDate>Mon, 10 Dec 2018 07:48:31 GMT</pubDate>
      <description>We have added information about the minimum required Java version to the pom.xml file in Java projects. The enforced version has not changed and is still Java 7. Previously if the user tried to use our Java SDK with a lower version, they would face compilation failure and rece...</description>
      <content:encoded><![CDATA[<p>We have added information about the minimum required Java version to the pom.xml file in Java projects. The enforced version has not changed and is still Java 7. Previously if the user tried to use our Java SDK with a lower version, they would face compilation failure and receive error messages that were sometimes ambiguous. Now a Maven build failure is caused which clearly informs the user that the problem is with the version of Java being used. To benefit from this change, please generate your Java SDKs again.</p>
]]></content:encoded>
      <category>New Feature</category>
      <category>Java</category>
    </item>
    <item>
      <title>Improvements in Multi-Threaded Code in Java and Android</title>
      <link>https://docs.apimatic.io/changelog/java-synchronization-improvements</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/java-synchronization-improvements</guid>
      <pubDate>Mon, 10 Dec 2018 07:48:31 GMT</pubDate>
      <description>We have made some minor improvements to synchronization in our Java and Android SDKs. To benefit from these improvements, please generate your SDKs again.</description>
      <content:encoded><![CDATA[<p>We have made some minor improvements to synchronization in our Java and Android SDKs. To benefit from these improvements, please generate your SDKs again.</p>
<p>The first change is that our Java and Android SDKs previously synchronized on non-<code>final</code> fields. This did not cause any issues as the reference was never reassigned but, following good and safe practice, we are now synchronizing on <code>final</code> fields.</p>
<p>The second change has to do with how we are synchronizing on the field. In places where synchronization was being used, our old code would lock every time the user tried to access the instance.</p>
<pre><code class="language-java">synchronized(myLock) {
    if (null == myObject) {
        myObject = new MyObject();
    }
}
</code></pre>
<p>We have switched to the following code which only locks the first time the object instance is accessed.</p>
<pre><code class="language-java">if (null == myObject) {
    synchronized(myLock) {
        if (null == myObject) {
            myObject = new MyObject();
        }
    }
}
</code></pre>
]]></content:encoded>
      <category>Improvement</category>
      <category>Android</category>
      <category>Java</category>
    </item>
    <item>
      <title>Announcing Support for Insomnia Export Format v3.0</title>
      <link>https://docs.apimatic.io/changelog/announcing-support-for-insomnia-export-format</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/announcing-support-for-insomnia-export-format</guid>
      <pubDate>Wed, 05 Dec 2018 10:46:45 GMT</pubDate>
      <description>For those of you looking to convert your Insomnia files, we have good news! Yes, we now support Insomnia Export Format Specification v3.0 in our API Transformer. With this feature, you can now convert your existing Insomnia files to any of our supported formats or vice versa.</description>
      <content:encoded><![CDATA[<p>For those of you looking to convert your Insomnia files, we have good news! Yes, we now support <a href="https://support.insomnia.rest/article/52-importing-and-exporting-data">Insomnia Export Format Specification v3.0</a> in our <a href="https://www.apimatic.io/transformer">API Transformer</a>. With this feature, you can now convert your existing Insomnia files to any of our supported formats or vice versa.</p>
<p>Support for <a href="https://support.insomnia.rest/article/52-importing-and-exporting-data">Insomnia Export Format Specification v3.0</a> has been added to API Transformer. So, if you are looking to convert your files from or to Insomnia, simply head over to <a href="https://www.apimatic.io/transformer">Transformer</a> and start converting! All major Insomnia features including authentication, environments, request groups, etc. are supported. </p>
<blockquote>
<p><strong>Note</strong></p>
<p> Only one workspace per conversion is supported. If your Insomnia file contains multiple workspaces, we will extract the first one by default.</p>
</blockquote>
]]></content:encoded>
      <category>New Feature</category>
    </item>
    <item>
      <title>Do-Not-Split Words in Code Generation Settings</title>
      <link>https://docs.apimatic.io/changelog/do-not-split-words</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/do-not-split-words</guid>
      <pubDate>Mon, 22 Oct 2018 06:43:07 GMT</pubDate>
      <description>We have added a new CodeGen setting that allows you to specify a list of words that Code Generation will not split when converting identifiers from API specification to language-specific identifiers. This is useful for declaring brand names such as APIMatic.</description>
      <content:encoded><![CDATA[<p>We have added a new CodeGen setting that allows you to specify a list of words that Code Generation will not split when converting identifiers from API specification to language-specific identifiers. This is useful for declaring brand names such as APIMatic.</p>
<p>E.g. if you provide the words <code>apimatic</code> and <code>vmware</code> in your the list, <code>APIMaticandvmWare</code> becomes <code>ApimaticAndVmware</code> or <code>apimatic_and_vmware</code>, depending on the place of use.</p>
<h2>Details</h2>
<p>Going with the previous example of the list containing <code>apimatic</code> and <code>vmware</code>, language specific examples of converting <code>APIMaticandvmWare</code> to class/model/field names are given in the table below.</p>
<table>
<thead>
<tr>
<th></th>
<th>Class Name</th>
<th>Method Name</th>
<th>Field Name</th>
<th>Argument Name</th>
</tr>
</thead>
<tbody><tr>
<td>Android</td>
<td>ApimaticAndVmware</td>
<td>apimaticAndVmware</td>
<td>apimaticAndVmware</td>
<td>apimaticAndVmware</td>
</tr>
<tr>
<td>C#</td>
<td>ApimaticAndVmware</td>
<td>ApimaticAndVmware</td>
<td>apimaticAndVmware</td>
<td>apimaticAndVmware</td>
</tr>
<tr>
<td>GO</td>
<td>ApimaticAndVmware</td>
<td>ApimaticAndVmware</td>
<td>apimaticAndVmware</td>
<td>apimaticAndVmware</td>
</tr>
<tr>
<td>Java</td>
<td>ApimaticAndVmware</td>
<td>apimaticAndVmware</td>
<td>apimaticAndVmware</td>
<td>apimaticAndVmware</td>
</tr>
<tr>
<td>NodeJS</td>
<td>ApimaticAndVmware</td>
<td>apimaticAndVmware</td>
<td>apimaticAndVmware</td>
<td>apimaticAndVmware</td>
</tr>
<tr>
<td>Obj-C</td>
<td>ApimaticAndVmware</td>
<td>apimaticAndVmware</td>
<td>apimaticAndVmware</td>
<td>apimaticAndVmware</td>
</tr>
<tr>
<td>PHP</td>
<td>ApimaticAndVmware</td>
<td>apimaticAndVmware</td>
<td>apimaticAndVmware</td>
<td>apimaticAndVmware</td>
</tr>
<tr>
<td>Python</td>
<td>ApimaticAndVmware</td>
<td>apimatic_and_vmware</td>
<td>apimatic_and_vmware</td>
<td>apimatic_and_vmware</td>
</tr>
<tr>
<td>Ruby</td>
<td>ApimaticAndVmware</td>
<td>apimatic_and_vmware</td>
<td>apimatic_and_vmware</td>
<td>apimatic_and_vmware</td>
</tr>
</tbody></table>
<p>The setting can be accessed in the editor as shown below.</p>
<p><img src="https://docs.apimatic.io/images/changelog/do-not-split-words.png" alt="screenshot codegen settings"></p>
]]></content:encoded>
      <category>New Feature</category>
      <category>ANDROID</category>
      <category>CSHARP</category>
      <category>GO</category>
      <category>JAVA</category>
      <category>NODEJS</category>
      <category>OBJ-C</category>
      <category>PHP</category>
      <category>PYTHON</category>
      <category>RUBY</category>
    </item>
    <item>
      <title>Rolling Out Long Awaited Major Improvements to Transformer</title>
      <link>https://docs.apimatic.io/changelog/long-awaited-major-transformer-improvements</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/long-awaited-major-transformer-improvements</guid>
      <pubDate>Tue, 16 Oct 2018 09:46:30 GMT</pubDate>
      <description>For the past few months, we have been hard at work improving API Transformer to give our users good quality output for any of their conversions. This changelog highlights all improvements made and new features added which we plan to release in a few weeks from now. To get full...</description>
      <content:encoded><![CDATA[<p>For the past few months, we have been hard at work improving <a href="https://www.apimatic.io/transformer">API Transformer</a> to give our users good quality output for any of their conversions. This changelog highlights all improvements made and new features added which we plan to release in a few weeks from now. To get full advantage of these improvements, some of the users who import from various formats like <code>OpenAPI/Swagger</code>, <code>API Blueprint</code>, etc. may need to regenerate their portal/SDKs.</p>
<h2>Details</h2>
<p>The changes involve improvements, bug fixes and feature addition which are a result of a major overhaul of all our format parsers. Some of the notable changes are highlighted in the sections below. </p>
<h2>Bug Fixes</h2>
<ul>
<li>Definitions for user-defined models/complex types whose names clashed with reserved primitive types like <code>string</code>, <code>number</code>, etc. were lost during the conversion process for any of the supported formats. We have now added mechanisms to prevent this from happening.</li>
</ul>
<h2>Improvements</h2>
<ul>
<li>The order as well as the names of the user-defined types will now be preserved. Previously, these types were loaded and fetched dynamically, as needed, which did not guarantee the original order of the types. Also, when name conflicts arose during this dynamic loading, there was a possibility of names of the original types getting modified as well. We now try to preserve the user defined order and naming where possible.</li>
</ul>
<blockquote>
<p><strong>Note</strong></p>
<p> The types can still be renamed in rare cases where there is a clash of names that are different only in the case used e.g. <code>user</code> and <code>User</code> are considered same by our tool and will be renamed to <code>user</code> and <code>User1</code> respectively. </p>
</blockquote>
<ul>
<li><p>Order of operations/methods was not preserved for conversions to and from OpenAPI/Swagger (v1.2, 2.0, 3.0) and RAML (v1.0) formats. This will now be preserved.</p>
</li>
<li><p>Although, we don&#39;t fully support <code>allOf</code> used in JSON schemas and OpenAPI(v3.0) schemas, we have largely improved the support by preserving as much information as possible when combining schemas using this keyword. </p>
</li>
<li><p>Inconsistencies in support for arrays and enums when converting to API Blueprint have been removed. This includes improvements for support in URI parameters, request/response attributes and MSON data structures. </p>
</li>
<li><p>Loss of descriptive content during the conversion process has been largely reduced. This includes documentation and descriptions provided for the API, endpoint parameters, responses and model fields. </p>
</li>
<li><p>Format specific reserved keywords have been taken into consideration when conversion is being made to these formats e.g. RAML (v0.8/v1.0) does not allow types to have names that conflict with the RAML primitive types. A type like <code>string</code> will, therefore, be renamed to <code>string1</code> to help users avoid issues using the exported RAML file. Similarly, other format specific restrictions have been taken into account as well.</p>
</li>
<li><p>As part of our conversion process, we treat models for success and error responses differently. This generally involves creation of different models internally for each, which lead to users seeing extra models in the exported files. This has been fixed.</p>
</li>
</ul>
<h2>New Additions</h2>
<ul>
<li><p>New settings have been introduced to let users configure the conversion process.</p>
<ul>
<li>A setting that allows user to control how our tool handles clashes between same named types/models. The default mechanism will be to append a number to one of these types but the user can opt for a mechanism that appends the parent name instead. </li>
<li>A setting to enable/disable our auto testcase generation feature when importing from formats that supports examples e.g. API Blueprint, OpenAPI, RAML, Postman, etc.</li>
<li>A setting to enable/disable our auto-sample generation when exporting to Postman.</li>
<li>A setting to enable/disable Swagger (v2.0) and API Blueprint extensions in the output files.</li>
</ul>
<p>  Details on how to use these settings will be available in our <a href="https://docs.apimatic.io/manage-apis/apimatic-metadata">Metadata</a> section upon release.</p>
</li>
<li><p>Support for error responses and their model definitions was missing for conversion from Swagger v1.2 and WADL and conversion to API Blueprint. It has now been added.</p>
</li>
</ul>
]]></content:encoded>
      <category>New Feature</category>
    </item>
    <item>
      <title>Support for Contact Info in API Editor and SDKs</title>
      <link>https://docs.apimatic.io/changelog/contact-info-in-api-editor-sdks</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/contact-info-in-api-editor-sdks</guid>
      <pubDate>Mon, 08 Oct 2018 11:57:14 GMT</pubDate>
      <description>We have added support for adding contact information of the organization maintaining the API in our API editor.</description>
      <content:encoded><![CDATA[<p>We have added support for adding contact information of the organization maintaining the API in our API editor. </p>
<h2>Details</h2>
<p>You can <a href="https://docs.apimatic.io/define-apis/basic-settings#contact-information">add the contact information</a> for your organization in the API editor now.</p>
<p><img src="https://docs.apimatic.io/images/changelog/contact-info-basic-settings.png" alt="Contact info in Basic Settings in API editor"></p>
<p>This information will be used during API export to other formats, as well in auto-generated SDKs
and documentation.</p>
<h2>Affected SDKs</h2>
<p>We&#39;ve added contact information in these SDKs:</p>
<table>
<thead>
<tr>
<th>Platform</th>
<th>Which files are affected?</th>
</tr>
</thead>
<tbody><tr>
<td>PHP</td>
<td><code>composer.json</code> file</td>
</tr>
<tr>
<td>C#</td>
<td>Nuspec file</td>
</tr>
<tr>
<td>Ruby</td>
<td>Gemspec file</td>
</tr>
<tr>
<td>Python</td>
<td>Setup file</td>
</tr>
<tr>
<td>NodeJS</td>
<td><code>package.json</code> file</td>
</tr>
</tbody></table>
<h2>Affected Documentation</h2>
<p>We&#39;re working on adding a way to contact the support in our Developer Experience Portal.</p>
<p>This will provide a short-cut for the end-user to report bugs using this contact information.</p>
]]></content:encoded>
      <category>New Feature</category>
      <category>PHP</category>
      <category>CSharp</category>
      <category>Ruby</category>
      <category>Python</category>
      <category>NodeJS</category>
    </item>
    <item>
      <title>Improvements to OpenAPI and Postman Import/Export</title>
      <link>https://docs.apimatic.io/changelog/improvements-to-openapi-and-postman</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/improvements-to-openapi-and-postman</guid>
      <pubDate>Wed, 03 Oct 2018 09:55:13 GMT</pubDate>
      <description>Support in Transformer for features of OpenAPI like API contact information and global tags has been added. In addition to this, improvements have been made to our Postman parsers including preservation of order of requests, support for folder descriptions and not nesting ungr...</description>
      <content:encoded><![CDATA[<p>Support in Transformer for features of OpenAPI like API contact information and global tags has been added. In addition to this, improvements have been made to our Postman parsers including preservation of order of requests, support for folder descriptions and not nesting ungrouped endpoints into folders. </p>
<h2>Details</h2>
<h3>Improvements to OpenAPI (v2.0, v3.0) import/export</h3>
<ul>
<li>OpenAPI supports global tags to provide more details for the tags used in operations e.g. a tag description. These tags also help group operations and their order indicates the order of these groups. Transformer now supports tag descriptions as well as preserve order of operations according to the order of the tags.</li>
<li>Support for any contact information provided of the API in OpenAPI files has been added.</li>
</ul>
<h3>Improvements to Postman (v1.0, v2.0) import/export</h3>
<ul>
<li>Postman helps group requests in folders that can come with a description. Support for this has been added.</li>
<li>Order of requests and folders when importing from Postman will now be preserved. </li>
<li>When exporting to Postman, ungrouped requests were previously grouped into a folder named <code>Folder</code>. Now, ungrouped requests will not be nested into any folder.</li>
</ul>
]]></content:encoded>
      <category>Improvement</category>
    </item>
    <item>
      <title>Browser-based Implementation for Calling APIs from Console in DX Portal</title>
      <link>https://docs.apimatic.io/changelog/browser-based-implementation-to-call-apis-from-dx-portal</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/browser-based-implementation-to-call-apis-from-dx-portal</guid>
      <pubDate>Tue, 02 Oct 2018 09:32:49 GMT</pubDate>
      <description>We've added the ability to call API endpoints directly from the browser in our Developer Experience Portal for APIs. This is provided as an alternative to calling the API via our proxy.</description>
      <content:encoded><![CDATA[<p>We&#39;ve added the ability to call API endpoints directly from the browser in our <a href="https://www.apimatic.io/developer-experience-portal">Developer Experience Portal for APIs</a>. This is provided as an alternative to calling the API via our proxy.</p>
<h2>Details</h2>
<p>Our <a href="https://www.apimatic.io/developer-experience-portal">DX Portal</a> for APIs has the ability to call API endpoints via the API Console. However, the API Console makes these calls using a proxy hosted at APIMatic which enabled the console to work for most of the APIs regardless of browser limitations. </p>
<p>We&#39;ve now added an option to enable API providers to optionally use a <strong>browser-based implementation to call APIs</strong>.</p>
<p>You can switch to the browser-based implementation by turning off the <em>Use Proxy</em> flag in Docs editor:</p>
<p><img src="https://docs.apimatic.io/images/changelog/no-proxy-flag.png" alt="Use Proxy flag in docs editor"></p>
<h2>Considerations</h2>
<p><strong>The API provider must ensure that the API supports <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS">Cross-Origin Resource Sharing (CORS)</a></strong>. For security reasons, browsers restrict cross-origin HTTP requests initiated from within scripts unless the CORS headers are included in the response.</p>
<p>Making API calls from browsers using CORS places additional restrictions on the headers that can be sent in request and received in response. Please review <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS">this article on CORS</a> to understand these limitations.</p>
<p>If these limitations are a problem, we suggest that not using this feature and instead relying on APIMatic&#39;s proxy.</p>
]]></content:encoded>
      <category>New Feature</category>
    </item>
    <item>
      <title>Allow Skipping Verification of SSL Certificates</title>
      <link>https://docs.apimatic.io/changelog/skip-ssl-cert-verification</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/skip-ssl-cert-verification</guid>
      <pubDate>Mon, 24 Sep 2018 13:32:59 GMT</pubDate>
      <description>Our Android, .Net, Go, Java, NodeJS, PHP, Python and Ruby SDKs now allow skipping verification of SSL certificates. To do this enable the CodeGen Setting Allow Skipping Certificate Verification and then set the corresponding configuration variable in the respective SDK.</description>
      <content:encoded><![CDATA[<p>Our Android, .Net, Go, Java, NodeJS, PHP, Python and Ruby SDKs now allow skipping verification of SSL certificates. To do this enable the CodeGen Setting <strong>Allow Skipping Certificate Verification</strong> and then set the corresponding configuration variable in the respective SDK. </p>
<h2>Details</h2>
<p>This setting has been added to allow developers to test SDKs in environments where default certificate verification fails, such as when verifying self signed or expired certificates.</p>
<blockquote>
<p><strong>Caution</strong></p>
<p>Security Risk
This setting should not be used in a production environment as it can create a major security risk.</p>
</blockquote>
<h2>Enable CodeGen setting</h2>
<p>The setting can be accessed in the editor from</p>
<p><img src="https://docs.apimatic.io/images/changelog/skip-ssl-cert-verification.png" alt="screenshot codegen settings"></p>
]]></content:encoded>
      <category>New Feature</category>
      <category>Android</category>
      <category>Csharp</category>
      <category>Go</category>
      <category>Java</category>
      <category>NodeJS</category>
      <category>PHP</category>
      <category>Python</category>
      <category>Ruby</category>
    </item>
    <item>
      <title>Major Release of Developer Experience Portal</title>
      <link>https://docs.apimatic.io/changelog/developer-experience-portal-major-release</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/developer-experience-portal-major-release</guid>
      <pubDate>Mon, 23 Jul 2018 10:22:45 GMT</pubDate>
      <description>We've rewritten our Developer Experience portal and are releasing it as a major version. The new version introduces several new features in addition to bug fixes to some long-standing issues.</description>
      <content:encoded><![CDATA[<p>We&#39;ve rewritten our Developer Experience portal and are releasing it as a major version. The new version introduces several <strong>new features</strong> in addition to <strong>bug fixes</strong> to some long-standing issues. </p>
<p>Check out the changes and how to migrate to the new portal.</p>
<h2>Changes</h2>
<p>Please checkout the <a href="https://blog.apimatic.io/weve-rewritten-our-developer-experience-portal-and-youre-gonna-love-it-e14cefe02e75">new features in the portal here in our release blog</a>.</p>
<p>In summary:</p>
<ul>
<li>We&#39;ve rewritten the portal from scratch to be lighter and faster.</li>
<li>We&#39;ve overhauled the typography.</li>
<li>Endpoint reference design is improved. Models and enumerations now link properly to their descriptions.</li>
<li>Switching languages/templates maintains the current section.</li>
<li>A new Search feature has been added which allows quick jump to sections.</li>
<li>We&#39;ve improved error message in case of an API call failure in console.</li>
<li>Descriptions must now be written in proper markdown. We do not support HTML in Markdown right now.</li>
</ul>
<blockquote>
<p><strong>Content Markup</strong></p>
<p>Content must be provided in GitHub-flavored markdown; HTML is not supported and will be rendered as text.</p>
</blockquote>
<blockquote>
<p><strong>Heading Levels</strong></p>
<p>Take care of heading levels; the portal generator will <em>try</em> to correct heading levels of content provided in API description but we do not correct custom guides right now. Incorrect heading levels can affect your navigation menu and links.</p>
</blockquote>
<p>Since this release is a major version, please checkout the migration guide to see if the release affects you.</p>
<h2>Migration Guide for Portal Embedded in websites</h2>
<p>Customers who have embedded portals in their website <a href="https://docs.apimatic.io/publish-apis/embedding-your-portal">should generate a new snippet for embedding</a>.</p>
<p>Note that the new snippet no longer has support for setting an offset for top navigation. Instead the portal must
be embedded in a container with a well-defined height and width; the portal will then occupy the parent container.</p>
<h2>Migration Guide for Portals Hosted on APIMatic</h2>
<p>All portals have been migrated automatically. <strong>No further action</strong> is required.</p>
<h2>Migration Guide for White-labelled Portals</h2>
<p>We&#39;ll upgrade these portals shortly after testing them. <strong>No further action</strong> is required.</p>
]]></content:encoded>
      <category>New Feature</category>
    </item>
    <item>
      <title>Disable Linting in SDKs</title>
      <link>https://docs.apimatic.io/changelog/disable-linting</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/disable-linting</guid>
      <pubDate>Mon, 16 Jul 2018 09:33:44 GMT</pubDate>
      <description>We have added a new CodeGen setting to allow disabling linting in our SDKs. If you would like to benefit from this feature then please enable the setting and generate your SDKs again.</description>
      <content:encoded><![CDATA[<p>We have added a new CodeGen setting to allow disabling linting in our SDKs. If you would like to benefit from this feature then please enable the setting and generate your SDKs again.</p>
]]></content:encoded>
      <category>New Feature</category>
      <category>NodeJS</category>
      <category>PHP</category>
      <category>Ruby</category>
    </item>
    <item>
      <title>Support for Collection Variables Added In Postman Exporters</title>
      <link>https://docs.apimatic.io/changelog/collection-variables-support-in-postman</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/collection-variables-support-in-postman</guid>
      <pubDate>Wed, 11 Jul 2018 05:51:48 GMT</pubDate>
      <description>Our Postman exporters (both versions 1.0 and 2.0) now support collection variables to better represent requests in cases where multiple servers are involved.</description>
      <content:encoded><![CDATA[<p>Our Postman exporters (both versions 1.0 and 2.0) now support collection variables to better represent requests in cases where multiple servers are involved.</p>
<h2>Details</h2>
<p>Postman supports various types of <a href="https://www.getpostman.com/docs/v6/postman/environments_and_globals/variables">variables</a> one of which are the collection variables whose scope is limited to a particular collection only. </p>
<p>Various API description formats these days support multiple servers (for production or sandbox) e.g. <a href="https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md#openapi-object">OpenAPI 3.0</a>. In order to represent multiple servers in Postman, variables can be made use of in the request URLs as follows:</p>
<pre><code class="language-shell">{{server}}/example/email
</code></pre>
<p>The variable <code>server</code> can then be assigned any value like <code>http://example.com/production</code> or <code>http://example.com/sandbox</code>. </p>
<p>Ideally, environment variables should be used to represent this information but that requires export of environment files along with a Postman collection file. Sicne our tool currently only supports a single-file output so we have decided to make use of collection variables instead. We might move towards supporting environment files as well in the future. </p>
<p>To edit collection variables, please make use of the collection editor as defined <a href="https://www.getpostman.com/docs/v6/postman/environments_and_globals/variables#defining-collection-variables">here</a>.</p>
]]></content:encoded>
      <category>New Feature</category>
    </item>
    <item>
      <title>Switching Http Client in Android and Java to OkHttp</title>
      <link>https://docs.apimatic.io/changelog/android-java-http-client-changed</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/android-java-http-client-changed</guid>
      <pubDate>Thu, 17 May 2018 05:48:52 GMT</pubDate>
      <description>We are happy to announce that our Android and Java SDKs now use the better and faster OkHttp client.</description>
      <content:encoded><![CDATA[<p>We are happy to announce that our Android and Java SDKs now use the better and faster OkHttp client.</p>
<p>OkHttp has a minimum version requirement of Android 2.3 or Java 7.</p>
<p>For further information on the new Http client, read the documentation <a href="http://square.github.io/okhttp/">here</a>.</p>
]]></content:encoded>
      <category>Improvement</category>
      <category>Android</category>
      <category>Java</category>
    </item>
    <item>
      <title>Android SDK and Gradle Version Upgraded</title>
      <link>https://docs.apimatic.io/changelog/android-version-upgrade</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/android-version-upgrade</guid>
      <pubDate>Wed, 25 Apr 2018 08:21:28 GMT</pubDate>
      <description>We have updated our Android SDKs to use version 3.0.1 of the Android Plugin for Gradle, and have upgraded the Gradle version to 4.1.</description>
      <content:encoded><![CDATA[<p>We have updated our Android SDKs to use version 3.0.1 of the Android Plugin for Gradle, and have upgraded the Gradle version to 4.1.</p>
<p>The minimum SDK version has been raised to 16 and the target SDK version has been raised to 26.</p>
<p>Please regenerate your Android SDKs if you wish to get these changes.</p>
]]></content:encoded>
      <category>Improvement</category>
      <category>Android</category>
    </item>
    <item>
      <title>Go Improvements</title>
      <link>https://docs.apimatic.io/changelog/go-improvements</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/go-improvements</guid>
      <pubDate>Thu, 22 Mar 2018 13:04:28 GMT</pubDate>
      <description>Our GO SDK has been revamped pertaining to multiple bug fixes and new features.</description>
      <content:encoded><![CDATA[<p>Our GO SDK has been revamped pertaining to multiple bug fixes and new features.</p>
<ul>
<li>It now supports OAuth 2.0 Bearer Token for authentication in the generated SDKs.</li>
<li>It now has a base client that can be used as a single point of entry for the SDK. </li>
<li>The singleton architecture for clients has been removed to ease up the use in multiple user environments.</li>
<li>Numerous bug fixes and improvements.</li>
</ul>
]]></content:encoded>
      <category>New Feature</category>
      <category>Go</category>
    </item>
    <item>
      <title>Multiple Base URLs Now Supported in GO SDK</title>
      <link>https://docs.apimatic.io/changelog/go-multiple-base-urls-now-supported</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/go-multiple-base-urls-now-supported</guid>
      <pubDate>Thu, 22 Mar 2018 13:04:28 GMT</pubDate>
      <description>You can now use multiple base URLs in your API description using the new Server Configuration. This feature allows you to</description>
      <content:encoded><![CDATA[<p>You can now use multiple base URLs in your API description using the new <a href="https://docs.apimatic.io/define-apis/server-configuration"><strong>Server Configuration</strong></a>. This feature allows you to </p>
<ul>
<li>Vary the Base URL between endpoints.</li>
<li>Create multiple <em>Environments</em> and define different Base URLs for them.</li>
<li>Templatize Base URL to allow for configuration using parameters in the client.</li>
</ul>
<p>The Server Configuration can be accessed in the editor from</p>
<p><img src="https://docs.apimatic.io/images/changelog/chrome_2017-01-03_18-09-38.png" alt="screenshot server configuration"></p>
<p>Click here to read the <a href="https://docs.apimatic.io/define-apis/server-configuration">documentation for Server Configuration</a>.</p>
]]></content:encoded>
      <category>New Feature</category>
      <category>Go</category>
    </item>
    <item>
      <title>HAR Parser Improved - Added Missing Features, Bug Fixes</title>
      <link>https://docs.apimatic.io/changelog/har-parsers-improvement</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/har-parsers-improvement</guid>
      <pubDate>Tue, 27 Feb 2018 11:23:49 GMT</pubDate>
      <description>Our Transformer tool has been supporting HTTP Archive (HAR) format for a long time now. With the addition of new features to our APIMatic tool (e.g. support of multiple servers), there were a few updates required in our HAR parsers. In this regard, several missing features wer...</description>
      <content:encoded><![CDATA[<p>Our Transformer tool has been supporting HTTP Archive (HAR) format for a long time now. With the addition of new features to our APIMatic tool (e.g. support of multiple servers), there were a few updates required in our HAR parsers. In this regard, several missing features were added and some bugs were also fixed.</p>
<h2>Details</h2>
<h3>New Features</h3>
<ul>
<li>Added missing support for request headers</li>
<li>Added missing support for binary responses</li>
<li>Added missing support for raw body requests</li>
<li>Added support for generating model definitions from error responses that returned JSON content</li>
<li>Added support for auto-generating test cases from the example values provided for paramteres, responses, etc.</li>
<li>Added support for multiple servers which would help give a better output for requests involving different base URIs.</li>
</ul>
<h3>Bug Fixes</h3>
<ul>
<li>The request URL information was in most cases not parsed correctly.</li>
<li>Responses that returned no content were still assumed to have a default type definition.</li>
</ul>
]]></content:encoded>
      <category>Improvement</category>
    </item>
    <item>
      <title>Support for Nullable Properties Added to Transformer</title>
      <link>https://docs.apimatic.io/changelog/support-for-nullable-added-to-transformer</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/support-for-nullable-added-to-transformer</guid>
      <pubDate>Wed, 10 Jan 2018 10:38:27 GMT</pubDate>
      <description>A property is nullable if it allows sending null (in case of JSON/YAML, etc.) or nil (in case of XML) as value. Several API description formats like Open API, RAML, etc. has support for nullable properties. Transformer now also supports this property and you can convert betwee...</description>
      <content:encoded><![CDATA[<p>A property is nullable if it allows sending <code>null</code> (in case of JSON/YAML, etc.) or <code>nil</code> (in case of XML) as value. Several API description formats like Open API, RAML, etc. has support for nullable properties. Transformer now also supports this property and you can convert between different formats without losing this information.</p>
<h2>Details</h2>
<p>Support for nullable properties is available in several API description formats. The details for this is given below:</p>
<ul>
<li>RAML v1.0 supports nullable properties via the <a href="https://github.com/raml-org/raml-spec/blob/master/versions/raml-10/raml-10.md/#nil-type">nil</a> type. </li>
<li>API Blueprint supports <a href="https://apiblueprint.org/documentation/mson/specification.html#353-type-attribute">nullable</a> type attribute in MSON Type specification of Data structures.</li>
<li>Open API supports <a href="https://swagger.io/specification/#fixed-fields-100">nullable</a> schema properties.</li>
<li>JSON schema used widely in many API description files uses type <code>null</code> to indicate nullable properties (<a href="http://json-schema.org/latest/json-schema-core.html#rfc.section.4.2.1">http://json-schema.org/latest/json-schema-core.html#rfc.section.4.2.1</a>)</li>
<li>XML schema used widely in API description formats like WADL and WSDL specifies nullable properties through the <a href="https://www.w3.org/TR/xmlschema11-1/#Element_Declaration_details">nillable</a> attribute.</li>
</ul>
]]></content:encoded>
      <category>New Feature</category>
    </item>
    <item>
      <title>Support for Validation Keywords Added In Transformer</title>
      <link>https://docs.apimatic.io/changelog/support-for-validation-keywords-added</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/support-for-validation-keywords-added</guid>
      <pubDate>Mon, 01 Jan 2018 10:45:27 GMT</pubDate>
      <description>Several API description formats like Swagger, RAML, WSDL, WADL, etc. support various kinds of validation keywords to restrict and validate instance values based on their type. Support for these validation keywords has now been added to Transformer. You can now convert between...</description>
      <content:encoded><![CDATA[<p>Several API description formats like Swagger, RAML, WSDL, WADL, etc. support various kinds of validation keywords to restrict and validate instance values based on their type. Support for these validation keywords has now been added to Transformer. You can now convert between any of these formats without losing information for these keywords.</p>
<h2>Details</h2>
<p>JSON Schema specifies several validation keywords that helps in structural validation of JSON. Similarly, XML Schema (XSD) also offers restriction/data type facets to validate XML data. In general, these keywords helps restrict instance data based on their types e.g. you can restrict a <code>string</code> type parameter to have a value with minimum length of 10.</p>
<p>Several of the API description formats like Swagger/Open API (v1.2, v2.0, v3.0), RAML (0.8, 1.0), WSDL, WADL, etc. have been supporting these keywords for a long time. We have added support for these in our parsers now and any conversions made using Transformer should contain all this information without any loss. </p>
<h3>Supported Keywords</h3>
<p>Support for the following keywords has been added:</p>
<h4>String Validation Keywords</h4>
<ol>
<li>maxLength</li>
<li>minLength</li>
<li>pattern</li>
</ol>
<h4>Arrays Validation Keywords</h4>
<ol>
<li>maxItems</li>
<li>minItems</li>
<li>uniqueItems</li>
</ol>
<h4>Objects Validation Keywords</h4>
<ol>
<li>maxProperties</li>
<li>minProperties</li>
</ol>
<h4>Number Validation Keywords</h4>
<ol>
<li>multipleOf</li>
<li>maximum</li>
<li>exclusiveMaximum</li>
<li>minimum</li>
<li>exclusiveMinimum</li>
<li>totalDigits</li>
<li>fractionDigits</li>
<li>pattern</li>
</ol>
]]></content:encoded>
      <category>New Feature</category>
    </item>
    <item>
      <title>Model Serialization Fixes for Ruby</title>
      <link>https://docs.apimatic.io/changelog/array-serialization-and-model-fields-fixes-in-ruby</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/array-serialization-and-model-fields-fixes-in-ruby</guid>
      <pubDate>Fri, 15 Dec 2017 08:09:14 GMT</pubDate>
      <description>There was a bug in the implementation of the Unindexed and Plain array serialization formats in Ruby SDKs. Arrays of models were not being properly encoded as form fields for the two mentioned formats.</description>
      <content:encoded><![CDATA[<p>There was a bug in the implementation of the <code>Unindexed</code> and <code>Plain</code> array serialization formats in Ruby SDKs. Arrays of models were not being properly encoded as form fields for the two mentioned formats.</p>
<p>Additionally, a bug in the initialization of inherited models caused duplication in fields with names longer than one word.</p>
<p>Both these bugs have now been fixed. Please regenerate your Ruby SDKs to get this fix.</p>
]]></content:encoded>
      <category>Bug Fix</category>
      <category>Ruby</category>
    </item>
    <item>
      <title>Array Serialization Bug Fix in Python</title>
      <link>https://docs.apimatic.io/changelog/array-serialization-fix-in-python</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/array-serialization-fix-in-python</guid>
      <pubDate>Wed, 13 Dec 2017 10:26:42 GMT</pubDate>
      <description>There was a bug in the implementation of the Unindexed and Plain array serialization formats in Python SDKs. Arrays of models were not being properly encoded as form fields for the two mentioned array serialization formats. The bug has now been fixed.</description>
      <content:encoded><![CDATA[<p>There was a bug in the implementation of the <code>Unindexed</code> and <code>Plain</code> array serialization formats in Python SDKs. Arrays of models were not being properly encoded as form fields for the two mentioned array serialization formats. The bug has now been fixed.</p>
<p>Please regenerate your Python SDKs to get this fix.</p>
]]></content:encoded>
      <category>Bug Fix</category>
      <category>Python</category>
    </item>
    <item>
      <title>Datetime Bug Fix in PHP</title>
      <link>https://docs.apimatic.io/changelog/datetime-fix-in-php</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/datetime-fix-in-php</guid>
      <pubDate>Wed, 13 Dec 2017 06:40:28 GMT</pubDate>
      <description>There was a problem in the handling of 'optional' DateTime fields in models. The issue has now been resolved.</description>
      <content:encoded><![CDATA[<p>There was a problem in the handling of &#39;optional&#39; DateTime fields in models. The issue has now been resolved. </p>
<p>Please regenerate your PHP SDKs to get this fix.</p>
]]></content:encoded>
      <category>Bug Fix</category>
      <category>PHP</category>
    </item>
    <item>
      <title>Default Environment Selection Bug Fix in Angular</title>
      <link>https://docs.apimatic.io/changelog/default-environment-bug-fix-angular</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/default-environment-bug-fix-angular</guid>
      <pubDate>Wed, 06 Dec 2017 05:47:22 GMT</pubDate>
      <description>There was a bug with generating default environment in AngularJS configuration file. The default environment was overridden to be the PRODUCTION environment even if some other environment was chosen in the Server Configuration.</description>
      <content:encoded><![CDATA[<p>There was a bug with generating default environment in AngularJS configuration file. The default environment was overridden to be the <code>PRODUCTION</code> environment even if some other environment was chosen in the Server Configuration.  </p>
<p>This bug has been fixed now. If you are using an API with multiple environments and encountered a problem with default environment selection before, please generate the SDK again to get the fix.</p>
<p><em>Details of changes. This appears alongwith the the summary on the particular Change page.</em></p>
]]></content:encoded>
      <category>Bug Fix</category>
      <category>AngularJS</category>
    </item>
    <item>
      <title>Default Environment Selection Bug Fix in Node</title>
      <link>https://docs.apimatic.io/changelog/default-environment-bug-fix-node</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/default-environment-bug-fix-node</guid>
      <pubDate>Wed, 06 Dec 2017 05:47:22 GMT</pubDate>
      <description>There was a bug with generating default environment in NodeJS configuration file. The default environment was overridden to be the PRODUCTION environment even if some other environment was chosen in the Server Configuration.</description>
      <content:encoded><![CDATA[<p>There was a bug with generating default environment in NodeJS configuration file. The default environment was overridden to be the <code>PRODUCTION</code> environment even if some other environment was chosen in the Server Configuration.  </p>
<p>This bug has been fixed now. If you are using an API with multiple environments and encountered a problem with default environment selection before, please generate the SDK again to get the fix.</p>
<p><em>Details of changes. This appears alongwith the the summary on the particular Change page.</em></p>
]]></content:encoded>
      <category>Bug Fix</category>
      <category>NodeJS</category>
    </item>
    <item>
      <title>Multiple Datetime Formats in PHP</title>
      <link>https://docs.apimatic.io/changelog/datetime-implemented-in-php</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/datetime-implemented-in-php</guid>
      <pubDate>Wed, 29 Nov 2017 08:55:20 GMT</pubDate>
      <description>We have now added support for multiple datetime formats in our PHP SDKs. The following formats are supported:</description>
      <content:encoded><![CDATA[<p>We have now added support for multiple datetime formats in our PHP SDKs. The following formats are supported:</p>
<ul>
<li>RFC1123 Datetime: <code>Mon, 15 Jun 2009 20:45:30 GMT</code></li>
<li>RFC3339 Datetime: <code>2016-03-13T12:52:32.123Z</code></li>
<li>Unix Timestamp: <code>1480809600</code></li>
</ul>
<h2>Implementation details</h2>
<p>Our PHP SDKs use the PHP <a href="http://php.net/manual/en/class.datetime.php">DateTime class</a> to provide this support.</p>
<h2>Additional details</h2>
<p>Multiple DateTime formats are also supported in <a href="https://docs.apimatic.io/v4/changelog#datetime-implemented-in-java"><code>Java</code>, <code>Android</code></a> , <a href="https://docs.apimatic.io/v4/changelog#datetime-implemented-in-node"><code>Objective-C</code>, <code>C#</code>, <code>Python</code>, <code>Ruby</code>, <code>AngularJS</code> and <code>NodeJS</code></a> .</p>
<p>You can find more information about supported datetime formats as well as other types <a href="https://docs.apimatic.io/define-apis/field-types">here.</a></p>
<h2>Benefits</h2>
<p>DateTime implementation in our SDKs can help you:</p>
<ul>
<li>Focus on building the application logic instead of worrying about date/time serialization/deserialization</li>
<li>Handle different formats of datetime, according to what your API requires, without writing any code for it</li>
<li>Save time zone specific information (if required)</li>
<li>Avoid the hassle of configuring and consuming a 3rd party library for datetime manipulation</li>
</ul>
]]></content:encoded>
      <category>New Feature</category>
      <category>PHP</category>
    </item>
    <item>
      <title>OAuth2 bug fix for Python</title>
      <link>https://docs.apimatic.io/changelog/oauth2-fix-for-python</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/oauth2-fix-for-python</guid>
      <pubDate>Tue, 31 Oct 2017 04:46:05 GMT</pubDate>
      <description>There was a bug in Python SDKs which were using OAuth2.</description>
      <content:encoded><![CDATA[<p>There was a bug in Python SDKs which were using OAuth2.</p>
<ul>
<li>When updating the OAuth token, the compiler was trying to set the expiry time by adding an <code>int</code> and a <code>string</code>.</li>
</ul>
<p>This bug has now been fixed. Please regenerate your Python SDKs if you&#39;re using OAuth 2 to get this fix.</p>
]]></content:encoded>
      <category>Bug Fix</category>
      <category>Python</category>
    </item>
    <item>
      <title>Multiple bug fixes for Ruby</title>
      <link>https://docs.apimatic.io/changelog/multiple-fixes-for-ruby</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/multiple-fixes-for-ruby</guid>
      <pubDate>Tue, 31 Oct 2017 04:45:55 GMT</pubDate>
      <description>There was a bug in Ruby SDKs which were using OAuth2.</description>
      <content:encoded><![CDATA[<p>There was a bug in Ruby SDKs which were using OAuth2.</p>
<ul>
<li>When updating the OAuth token, the compiler was trying to set the expiry time by adding an <code>int</code> and a <code>string</code>.</li>
</ul>
<p>Besides this, there were a couple of edge cases that allowed Ruby SDKs to be generated, and even the gem to be built and installed, but the code would not execute because of the following reasons:</p>
<ul>
<li><code>require</code> statements in the base file were not being split into multiple lines correctly. This splitting is done to ensure compliance with <a href="https://docs.apimatic.io/changelog/ruby-style-guide-compliance/">The Ruby Style Guide</a></li>
<li>New line characters in the descriptions for <code>models/enums/exceptions</code> were not being dealt with, causing a comment to spill over into the next line.</li>
</ul>
<p>These bugs have now been fixed. Please regenerate your Ruby SDKs to get the fixes.</p>
]]></content:encoded>
      <category>Bug Fix</category>
      <category>Ruby</category>
    </item>
    <item>
      <title>Discriminator Usage Fixed in Java and Android</title>
      <link>https://docs.apimatic.io/changelog/discriminator-fix-for-java</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/discriminator-fix-for-java</guid>
      <pubDate>Fri, 27 Oct 2017 06:57:42 GMT</pubDate>
      <description>There was a bug where the Discriminator field was not being set by default.</description>
      <content:encoded><![CDATA[<p>There was a bug where the Discriminator field was not being set by default.</p>
<p>When creating an instance of a model that inherited from another model, the discriminator field was not assigned a default value.</p>
<p>This behavior has now been fixed. Please regenerate your SDK to get the fix.</p>
]]></content:encoded>
      <category>Bug Fix</category>
      <category>Java</category>
      <category>Android</category>
    </item>
    <item>
      <title>Array Serialization Formats in Java and Android</title>
      <link>https://docs.apimatic.io/changelog/array-serialization-formats-in-java</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/array-serialization-formats-in-java</guid>
      <pubDate>Fri, 27 Oct 2017 06:13:30 GMT</pubDate>
      <description>Multiple formats are now supported for Array serialisation in form and query parameters. Formats supported include UnIndexed, Indexed, Plain, CSV, PSV, TSV.</description>
      <content:encoded><![CDATA[<p>Multiple formats are now supported for Array serialisation in form and query parameters. Formats supported include <code>UnIndexed</code>, <code>Indexed</code>, <code>Plain</code>, <code>CSV</code>, <code>PSV</code>, <code>TSV</code>.</p>
<p>This settings can be set using <a href="https://docs.apimatic.io/advanced/blueprint-extensions">our API Blueprint CodeGen setting extension named <code>ARRAYSERIALIZATION</code></a>.</p>
<h2>Details: Format and examples</h2>
<ul>
<li><code>UnIndexed</code>: <code>bussinessAsset[]=1&amp;bussinessAsset[]=2</code></li>
<li><code>Indexed</code>: <code>bussinessAsset[1]=1&amp;bussinessAsset[2]=2</code></li>
<li><code>Plain</code>: <code>bussinessAsset=1&amp;bussinessAsset=2</code></li>
<li><code>CSV</code>: <code>bussinessAsset=1,2</code> <strong>(Only for query parameters)</strong></li>
<li><code>PSV</code>: <code>bussinessAsset=1|2</code> <strong>(Only for query parameters)</strong>  </li>
<li><code>TSV</code>: <code>bussinessAsset=1\t2</code> <strong>(Only for query parameters)</strong></li>
</ul>
<p>These array serialization formats are also supported in <a href="https://docs.apimatic.io/changelog/array-serialization-formats/"><code>C#</code> and <code>AngularJS</code></a>.</p>
<h2>Benefits</h2>
<p>Different APIs can expect array values to be serialized in different formats (such as CSV, TSV etc). No matter which format the API expects, our SDKs will automatically serialize and deserialize array payload in the correct format.</p>
<p>Array Serialization implementation helps you:</p>
<ul>
<li>Use array values the way you normally would in your language, independent of the format that the API expects</li>
<li>Focus on the business logic of the application without worrying about serialization/deserialization of array payload</li>
<li>Support for 6 widely used array serialization formats</li>
</ul>
]]></content:encoded>
      <category>New Feature</category>
      <category>Java</category>
      <category>Android</category>
    </item>
    <item>
      <title>Multiple Datetime Formats in Java and Android</title>
      <link>https://docs.apimatic.io/changelog/datetime-implemented-in-java</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/datetime-implemented-in-java</guid>
      <pubDate>Fri, 27 Oct 2017 06:09:51 GMT</pubDate>
      <description>We have now added support for multiple datetime formats in our Java and Android SDKs. The following formats are supported:</description>
      <content:encoded><![CDATA[<p>We have now added support for multiple datetime formats in our Java and Android SDKs. The following formats are supported:</p>
<ul>
<li>RFC1123 Datetime: <code>Mon, 15 Jun 2009 20:45:30 GMT</code></li>
<li>RFC3339 Datetime: <code>2016-03-13T12:52:32.123Z</code></li>
<li>Unix Timestamp: <code>1480809600</code></li>
</ul>
<h2>Implementation details</h2>
<p>Our Java and Android SDKs use the <a href="http://www.joda.org/joda-time/">joda-time library</a> to provide this support as it is compatible with older versions of Java (6 and 7) as well as newer ones.
The classes used from the joda-time library are as follows:</p>
<ul>
<li><code>org.joda.time.DateTime</code> for DateTime types</li>
<li><code>org.joda.time.LocalDate</code> for Date types</li>
</ul>
<h2>Additional details</h2>
<p>Multiple DateTime formats are also supported in <a href="https://docs.apimatic.io/v4/changelog#datetime-implemented-in-node">these</a> languages.</p>
<p>You can find more information about supported datetime formats as well as other types <a href="https://docs.apimatic.io/define-apis/field-types">here.</a></p>
<h2>Benefits</h2>
<p>DateTime implementation in our SDKs can help you:</p>
<ul>
<li>Focus on building the application logic instead of worrying about date/time serialization/deserialization</li>
<li>Handle different formats of datetime, according to what your API requires, without writing any code for it</li>
<li>Save time zone specific information (if required)</li>
<li>Avoid the hassle of configuring and consuming a 3rd party library for datetime manipulation</li>
</ul>
]]></content:encoded>
      <category>New Feature</category>
      <category>Java</category>
      <category>Android</category>
    </item>
    <item>
      <title>Xml Schema Support Improved, Missing Features Added</title>
      <link>https://docs.apimatic.io/changelog/xml-schema-support-improved</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/xml-schema-support-improved</guid>
      <pubDate>Mon, 23 Oct 2017 11:37:13 GMT</pubDate>
      <description>We have recently revamped our support for XML schema. This includes bug fixes (array types and optional properties were not catered in some cases, issues with circular references, etc.) and addition of missing features (Union of simple types, redefinition of schema types, etc.).</description>
      <content:encoded><![CDATA[<p>We have recently revamped our support for XML schema. This includes bug fixes (array types and optional properties were not catered in some cases, issues with circular references, etc.) and addition of missing features (Union of simple types, redefinition of schema types, etc.).</p>
<p>XML schema is widely used in API description formats like WSDL and WADL and we are always working on improving our parsers for these formats. Revamping of XML schema will ensure that the transformation of these formats will result in a better output than before.</p>
]]></content:encoded>
      <category>Improvement</category>
      <category>PHP</category>
    </item>
    <item>
      <title>Support for Postman v.2.1 and Other Postman Updates Added to Transformer</title>
      <link>https://docs.apimatic.io/changelog/support-for-postman-v21-added</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/support-for-postman-v21-added</guid>
      <pubDate>Fri, 13 Oct 2017 11:13:42 GMT</pubDate>
      <description>Postman recently added a new export format i.e. Postman Collection Format v2.1. Along with this, they also improved and added new authentication mechanisms in the older versions (1.0, 2.0). Our parsers have been updated to accommodate all these changes.</description>
      <content:encoded><![CDATA[<p>Postman recently added a new export format i.e. Postman Collection Format v2.1. Along with this, they also improved and added new authentication mechanisms in the older versions (1.0, 2.0). Our parsers have been updated to accommodate all these changes.</p>
<p>You can now export your Postman Collections in Postman Collection Format v2.1. Previously, you could export in only two other formats: 1.0 and 2.0. This new format has changes related to how authentication is described as compared to how it was described in Postman v.2.0. Support for this new format has now been added to our parsers as well! In addition to this, Postman added a new Authentication scheme <code>Bearer Token</code> as well as improved their support for OAuth2 in their older formats. Support for  all these new changes has been added to Transformer.</p>
<p><img src="https://docs.apimatic.io/images/changelog/postman-export.png" alt="Postman New Format"></p>
]]></content:encoded>
      <category>New Feature</category>
    </item>
    <item>
      <title>Ruby SDKs Are Now Ruby Style Guide Compliant</title>
      <link>https://docs.apimatic.io/changelog/ruby-style-guide-compliance</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/ruby-style-guide-compliance</guid>
      <pubDate>Mon, 09 Oct 2017 10:12:35 GMT</pubDate>
      <description>APIMATIC's Ruby SDKs are now compliant with The Ruby Style Guide</description>
      <content:encoded><![CDATA[<p>APIMATIC&#39;s Ruby SDKs are now compliant with <a href="https://github.com/bbatsov/ruby-style-guide">The Ruby Style Guide</a></p>
<ul>
<li>Ruby style guide compliance means that the Ruby code generated is guaranteed to be of high-quality.</li>
<li>Ruby SDKs are written in an industry-standard code style to allow for maximum interoperability.</li>
<li>Ruby SDKs can be tested for code style violation using <a href="https://github.com/bbatsov/rubocop">Rubocop.</a></li>
</ul>
<p>Re-generate your Ruby SDKs now for the new changes.</p>
<h2>Details</h2>
<p>This change does not introduce any breaking changes in the Ruby SDKs.</p>
<h2>Testing for Code Style using Rubocop</h2>
<p>First you need to get the rubocop gem. You can install it using:</p>
<pre><code class="language-bash">gem install rubocop
</code></pre>
<p>You can now test the SDK code for compliance with the Ruby Style Guide using:</p>
<pre><code class="language-bash">rubocop
</code></pre>
<h2>Exceptions</h2>
<p>These rules are not enforced as they are dependent upon the endpoints in the API description:</p>
<ul>
<li>ClassLength</li>
<li>MethodLength</li>
<li>BlockLength</li>
<li>ParameterLists</li>
<li>AbcSize</li>
<li>CyclomaticComplexity</li>
<li>PerceivedComplexity</li>
<li>AccessorMethodName</li>
</ul>
<p>Variable names are prefixed with an underscore to avoid conflicts with Ruby keywords</p>
<ul>
<li>UnderscorePrefixedVariableName</li>
</ul>
]]></content:encoded>
      <category>Improvement</category>
      <category>Ruby</category>
    </item>
    <item>
      <title>Python SDKs Are Now PEP8 Compliant</title>
      <link>https://docs.apimatic.io/changelog/python-sdks-PEP8-compliant</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/python-sdks-PEP8-compliant</guid>
      <pubDate>Thu, 28 Sep 2017 12:08:11 GMT</pubDate>
      <description>APIMATIC's Python SDKs are now compliant with the PEP8 Coding Style Guide</description>
      <content:encoded><![CDATA[<p>APIMATIC&#39;s Python SDKs are now compliant with the <a href="https://www.python.org/dev/peps/pep-0008/">PEP8 Coding Style Guide</a></p>
<ul>
<li>PEP8 compliance means that the Python code generated is guaranteed to be of high-quality.</li>
<li>Python SDKs are written in a industry-standard code style to allow for maximum interoperability.</li>
</ul>
<p>Re-generate your Python SDKs now for the new changes.</p>
<h2>Details</h2>
<p>This change does not introduce any breaking changes in the Python SDKs.</p>
<h2>Testing for Code Style using PEP8</h2>
<p>First you need to get the PEP8 package. You can install it using:</p>
<pre><code class="language-bash">pip install pep8
</code></pre>
<p>You can now test the SDK code for PEP8 standard compliance using:</p>
<pre><code class="language-bash">pep8 .
</code></pre>
]]></content:encoded>
      <category>Improvement</category>
      <category>PYTHON</category>
    </item>
    <item>
      <title>CSharp SDKs Are Now StyleCop Compliant</title>
      <link>https://docs.apimatic.io/changelog/csharp-sdks-stylecop-compliant</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/csharp-sdks-stylecop-compliant</guid>
      <pubDate>Thu, 28 Sep 2017 11:44:12 GMT</pubDate>
      <description>APIMATIC's CSharp SDKs are now compliant with the StyleCop Coding Style Guide</description>
      <content:encoded><![CDATA[<p>APIMATIC&#39;s CSharp SDKs are now compliant with the <a href="http://stylecop.soyuz5.com/StyleCop%20Rules.html">StyleCop Coding Style Guide</a></p>
<ul>
<li>StyleCop compliance means that the CSharp code generated is guaranteed to be of high-quality.</li>
<li>CSharp SDKs are written in a industry-standard code style to allow for maximum interoperability.</li>
</ul>
<p>Re-generate your CSharp SDKs now for the new changes.</p>
<h2>Details</h2>
<p>This change does not introduce any breaking changes in the CSharp SDKs.</p>
<h2>Testing for Code Style using StyleCop</h2>
<p>First you need to get the Stylecop Visual Studio Extension. You can download it from <a href="https://marketplace.visualstudio.com/items?itemName=ChrisDahlberg.StyleCop">here</a>.</p>
<p>Alternatively you can install <code>StyleCop.MSBuild</code> as a nuget package from the nuget package manager.</p>
<p>You can now test the SDK code for StyleCop standard compliance using:</p>
<p><strong>Try this if Stylecop is downloaded as a Visual Studio Extension</strong></p>
<ul>
<li>Right click on the Visual Studio Solution and click on the <code>Run StyleCop</code> option.</li>
</ul>
<p><strong>Or this if it is installed as a nuget package</strong></p>
<ul>
<li>Build the project and View the output in the Output Console.</li>
</ul>
]]></content:encoded>
      <category>Improvement</category>
      <category>CSHARP</category>
    </item>
    <item>
      <title>WADL Cross References Support Added</title>
      <link>https://docs.apimatic.io/changelog/wadl-cross-references-support-added</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/wadl-cross-references-support-added</guid>
      <pubDate>Wed, 23 Aug 2017 05:08:03 GMT</pubDate>
      <description>WADL components support references to other components using Cross Referencing as per the specification at https://www.w3.org/Submission/wadl/#x3-60002.1 . The support was this was missing from our parsers previously and has now been added! Please transform your files again to...</description>
      <content:encoded><![CDATA[<p>WADL components support references to other components using Cross Referencing as per the specification at <a href="https://www.w3.org/Submission/wadl/#x3-60002.1">https://www.w3.org/Submission/wadl/#x3-60002.1</a> . The support was this was missing from our parsers previously and has now been added! Please transform your files again to get the latest changes.</p>
]]></content:encoded>
      <category>New Feature</category>
    </item>
    <item>
      <title>Improved Swagger 2.0 and and Open API 3.0 Parsers</title>
      <link>https://docs.apimatic.io/changelog/improved-open-api-parsers</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/improved-open-api-parsers</guid>
      <pubDate>Wed, 09 Aug 2017 11:00:33 GMT</pubDate>
      <description>Swagger allows schema inheritance through the use of property &quot;discriminator&quot; in the base schema. During conversions on Transformer/ Dashboard the base type information for child schemas was not being extracted properly and this bug has now been fixed. Additionally, Open API 3...</description>
      <content:encoded><![CDATA[<p>Swagger allows schema inheritance through the use of property &quot;discriminator&quot; in the base schema. During conversions on Transformer/ Dashboard the base type information for child schemas was not being extracted properly and this bug has now been fixed. Additionally, Open API 3.0 export has been improved by eliminating several bugs e.g. some extra disallowed properties were being exported and some required properties and discriminator details were missing.</p>
]]></content:encoded>
      <category>Improvement</category>
    </item>
    <item>
      <title>Postman Import/Export Bug Fixes Released</title>
      <link>https://docs.apimatic.io/changelog/postman-import-export-bug-fixes-released</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/postman-import-export-bug-fixes-released</guid>
      <pubDate>Mon, 07 Aug 2017 07:11:58 GMT</pubDate>
      <description>Several minor and major bug fixes were made to the Postman (1.0, 2.0) import and export. These fixes were relevant to issues in parsing request URLs containing environment variables and in parsing port information in Postman 2.0.</description>
      <content:encoded><![CDATA[<p>Several minor and major bug fixes were made to the Postman (1.0, 2.0) import and export. These fixes were relevant to issues in parsing request URLs containing environment variables and in parsing port information in Postman 2.0.</p>
<h2>Details</h2>
<p>The request URLs in Postman files can contain environment variables. When transforming/importing these files, our system was having trouble extracting route information from the URLs and you may have encountered failures. Also, you may have noticed loss of port information in the request URLs when transforming Postman 2.0 files. The bugs related to these are now fixed and live. In addition to these, some minor fixes were made to the Postman export. Please try converting your files again to get the latest changes.</p>
]]></content:encoded>
      <category>Bug Fix</category>
    </item>
    <item>
      <title>New Target - .NET Standard SDK</title>
      <link>https://docs.apimatic.io/changelog/dot-net-standard-release</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/dot-net-standard-release</guid>
      <pubDate>Fri, 28 Jul 2017 11:00:42 GMT</pubDate>
      <description>We are excited to announce the latest addition to our long list of supported platforms. Our C# section now has a new template for a .NET Standard library in addition to the already supported PCL and UWP templates. This library targets .Net Standard 1.3.</description>
      <content:encoded><![CDATA[<p>We are excited to announce the latest addition to our long list of supported platforms. Our C# section now has a new template for a .NET Standard library in addition to the already supported PCL and UWP templates. This library targets .Net Standard 1.3. </p>
<p>The .NET Standard improves on the experience of creating portable libraries by establishing greater uniformity across .NET runtimes thus providing wider platform support as a result.</p>
<table>
<thead>
<tr>
<th>Supported Platforms</th>
<th>Minimum version</th>
</tr>
</thead>
<tbody><tr>
<td>.NET Framework</td>
<td>4.6</td>
</tr>
<tr>
<td>.NET Core</td>
<td>1.0</td>
</tr>
<tr>
<td>Mono</td>
<td>4.6</td>
</tr>
<tr>
<td>Xamarin.IOS</td>
<td>10.0</td>
</tr>
<tr>
<td>Xamarin.Mac</td>
<td>3.0</td>
</tr>
<tr>
<td>Xamarin.IOS</td>
<td>7.0</td>
</tr>
<tr>
<td>Universal Windows Platform</td>
<td>10.0</td>
</tr>
</tbody></table>
<p><strong>This library requires Visual Studio 2017</strong>.</p>
<p>For further information regarding .NET standard libraries read the documentation <a href="https://docs.microsoft.com/en-us/dotnet/standard/net-standard">here</a>.</p>
]]></content:encoded>
      <category>New Feature</category>
      <category>CSHARP</category>
    </item>
    <item>
      <title>Switching to native .NET HttpClient.</title>
      <link>https://docs.apimatic.io/changelog/csharp-http-client-update</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/csharp-http-client-update</guid>
      <pubDate>Fri, 28 Jul 2017 10:47:23 GMT</pubDate>
      <description>We are happy to announce that our .NET SDKs have now switched to the more stable, frequently updated and regularly maintained native HttpClient found in the System.Net.Http Assembly.</description>
      <content:encoded><![CDATA[<p>We are happy to announce that our .NET SDKs have now switched to the more stable, frequently updated and regularly maintained native HttpClient found in the <code>System.Net.Http</code> Assembly.</p>
<p>In addition to adding stability to our generated SDKs, it also removes a third-party dependency allowing increased flexibility for us to move towards supporting other .NET platforms. Keep in touch for updates on exciting new releases.</p>
<p>For further information on the new Http client, read the documentation <a href="https://msdn.microsoft.com/en-us/library/system.net.http.httpclient(v=vs.118).aspx">here</a>.</p>
]]></content:encoded>
      <category>Improvement</category>
      <category>CSHARP</category>
    </item>
    <item>
      <title>Newtonsoft Json.NET Version Update to 10.0.3</title>
      <link>https://docs.apimatic.io/changelog/json-net-newtonsoft-version-update</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/json-net-newtonsoft-version-update</guid>
      <pubDate>Fri, 28 Jul 2017 10:39:26 GMT</pubDate>
      <description>Our CSharp .NET SDKs have been updated to use the 10.0.3 version of the Newtonsoft Json.Net utility. This comes with numerous new features, bug fixes, wider support and increased stability.</description>
      <content:encoded><![CDATA[<p>Our CSharp .NET SDKs have been updated to use the 10.0.3 version of the Newtonsoft Json.Net utility. This comes with numerous new features, bug fixes, wider support and increased stability.</p>
<p>For further information please visit this <a href="http://www.newtonsoft.com/json/help/html/Introduction.htm">page</a>.</p>
]]></content:encoded>
      <category>Improvement</category>
      <category>CSHARP</category>
    </item>
    <item>
      <title>Discriminator Support Added in Angular</title>
      <link>https://docs.apimatic.io/changelog/discriminator-support-in-angular</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/discriminator-support-in-angular</guid>
      <pubDate>Fri, 28 Jul 2017 06:10:00 GMT</pubDate>
      <description>Usage of discriminators is already supported by our code generation engine. We are happy to announce that now support for using discriminators has also been added to AngularJS SDK.</description>
      <content:encoded><![CDATA[<p>Usage of <a href="https://docs.apimatic.io/define-apis/discriminators">discriminators</a> is already supported by our code generation engine. We are happy to announce that now support for using discriminators has also been added to AngularJS SDK.</p>
<ul>
<li>Discriminator is a field that is used to differentiate between a parent model and models that
inherit from it.</li>
<li>The response is deserialized into the parent model or one of its child classes by inspecting the 
discriminator field&#39;s value in the response.</li>
<li>Using a discriminator field, you can build leaner models by not having to build unions of fields
needed by a polymorphic response.</li>
</ul>
<p>Please generate your SDK again if you want to use this feature.</p>
<h2>Details Of Changes</h2>
<p>The following changes have been made to the SDK:</p>
<ul>
<li>In Model files, the discriminator field will now be identified with a flag (in the mapping information of fields)</li>
<li>A new function has been added to model files. It keeps track of discriminator values and their corresponding model class names.</li>
<li>The mapping functions present in <code>ObjectMapper</code> have been updated to take into account the discriminator values (if present) and return the correctly deserialized instances.</li>
<li>Some helper functions have been added to <code>ObjectMapper</code>.</li>
</ul>
]]></content:encoded>
      <category>New Feature</category>
      <category>AngularJS</category>
    </item>
    <item>
      <title>Datetime Fixes in AngularJS</title>
      <link>https://docs.apimatic.io/changelog/datetime-fixes-in-angular</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/datetime-fixes-in-angular</guid>
      <pubDate>Fri, 28 Jul 2017 05:58:52 GMT</pubDate>
      <description>There was a problem with the datetime implementation in AngularJS. Date/datetime strings were not correctly converted into objects. Instead, strings were being sent and received within the SDK. This problem has now been fixed.</description>
      <content:encoded><![CDATA[<p>There was a problem with the datetime implementation in AngularJS. Date/datetime strings were not correctly converted into objects. Instead, strings were being sent and received within the SDK.
This problem has now been fixed.</p>
<p>Please generate your SDK again to get this fix.</p>
<h2>Details Of Changes</h2>
<ul>
<li>The <code>parseDateTime</code> function in <code>ObjectMapper</code> file has been updated to return date/datetime objects instead of strings.</li>
<li><code>stringifyDateTime</code> function has been added to <code>APIHelper</code> file to convert date/datetime objects back into strings.</li>
<li>Logic for endpoints which have date/datetime return types has been updated to return the correct date/datetime objects instead of strings.</li>
<li>Logic for endpoints which have date/datetime parameters has been updated to convert date/datetime objects into strings before making the API call.</li>
<li>A function <code>getDateTimeValueForField</code> has been added to Model files. This will be called when a model instance is being stringified.</li>
</ul>
]]></content:encoded>
      <category>Bug Fix</category>
      <category>AngularJS</category>
    </item>
    <item>
      <title>Model Serialization Fixed</title>
      <link>https://docs.apimatic.io/changelog/model-serialization-fixed</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/model-serialization-fixed</guid>
      <pubDate>Fri, 28 Jul 2017 05:51:52 GMT</pubDate>
      <description>There was a bug in the AngularJS SDK in sending complex types (models) as Form and Body Parameters.</description>
      <content:encoded><![CDATA[<p>There was a bug in the AngularJS SDK in sending complex types (models) as Form and Body Parameters.</p>
<p>In cases of endpoints which accept model instances as form/body parameters, models were not being serialized properly before making the endpoint call. This resulted in camel-cased field values being passed, disregarding the correct API names.</p>
<p>This behavior has now been fixed. Please generate your SDK again to get the fix.</p>
<h2>Details Of Changes</h2>
<ul>
<li>Now in case of endpoints which accept models as form/body parameters, the model&#39;s toJSON function is explicitly called before attaching it into the form/body. This enables the real field names (as defined in the API) to be sent in the request</li>
<li>The <code>toJSON</code> function in <code>BaseModel</code> file has been updated to return the correct serialized model object</li>
</ul>
]]></content:encoded>
      <category>Bug Fix</category>
      <category>AngularJS</category>
    </item>
    <item>
      <title>&gt;-</title>
      <link>https://docs.apimatic.io/changelog/oauth2-support-in-parsers</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/oauth2-support-in-parsers</guid>
      <pubDate>Thu, 27 Jul 2017 08:38:18 GMT</pubDate>
      <description>OAuth 2.0 support was recently added to the API Editor and Code Generation engine. Now the support is added to Transformer as well as import/export in the Dashboard.</description>
      <content:encoded><![CDATA[<p>OAuth 2.0 support was recently added to the <a href="https://docs.apimatic.io/v4/changelog#oauth2-release">API Editor and Code Generation engine</a>. Now the support is added to Transformer as well as import/export in the Dashboard.</p>
<h2>Details</h2>
<p>OAuth 2.0 is supported by various API description formats like RAML, Swagger, Google API, Mashery/IO Docs, etc. Our support for OAuth 2.0 was initially limited. However, we now fully support all grant types. Bring in your API description formats using OAuth 2.0 and import them on the Dashboard to make full use of our OAuth 2.0 feature or convert between different formats using the Transformer without losing OAuth 2.0 information. You can read up more details on our OAuth 2.0 feature at <a href="https://docs.apimatic.io/define-apis/oauth2-authorization">OAuth 2.0 Authorization</a>.</p>
]]></content:encoded>
      <category>New Feature</category>
    </item>
    <item>
      <title>Model Serialization (for Form Parameters) Fixed</title>
      <link>https://docs.apimatic.io/changelog/model-serialization-for-form-params-fixed</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/model-serialization-for-form-params-fixed</guid>
      <pubDate>Mon, 24 Jul 2017 07:18:50 GMT</pubDate>
      <description>There was a bug in the Node.js SDK in sending complex types (models) as Form Parameters.</description>
      <content:encoded><![CDATA[<p>There was a bug in the Node.js SDK in sending complex types (models) as Form Parameters.</p>
<p>In cases of endpoints which accept model instances as form parameters, models were not being serialized properly before making the endpoint call. This resulted in camel-cased field values being passed, disregarding the correct API names.</p>
<p>This behavior has now been fixed. Please generate your SDK again to get the fix.</p>
<h2>Details Of Changes</h2>
<ul>
<li>Now in case of endpoints which accept models as form parameters, the model&#39;s toJSON function is explicitly called before attaching it into the form. This enables the real field names (as defined in the API) to be sent in the request</li>
<li>The <code>toJSON</code> function in <code>BaseModel</code> file has been updated to return the correct serialized model object</li>
<li>Automatic test case generation has been updated to use the <code>ObjectMapper</code> as well when creating model instances.</li>
</ul>
]]></content:encoded>
      <category>Bug Fix</category>
      <category>NodeJS</category>
    </item>
    <item>
      <title>Datetime Fixes in Node.js</title>
      <link>https://docs.apimatic.io/changelog/datetime-fixes-in-node</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/datetime-fixes-in-node</guid>
      <pubDate>Mon, 24 Jul 2017 07:00:49 GMT</pubDate>
      <description>There was a problem with the datetime implementation in Node.js. Date/datetime strings were not correctly converted into objects. Instead, strings were being sent and received within the SDK. This problem has now been fixed.</description>
      <content:encoded><![CDATA[<p>There was a problem with the datetime implementation in Node.js. Date/datetime strings were not correctly converted into objects. Instead, strings were being sent and received within the SDK.
This problem has now been fixed.</p>
<p>Please generate your SDK again to get this fix.</p>
<h2>Details Of Changes</h2>
<ul>
<li>The <code>parseDateTime</code> function in <code>ObjectMapper</code> file has been updated to return date/datetime objects instead of strings.</li>
<li><code>stringifyDateTime</code> function has been added to <code>APIHelper</code> file to convert date/datetime objects back into strings.</li>
<li>Logic for endpoints which have date/datetime return types has been updated to return the correct date/datetime objects instead of strings.</li>
<li>Logic for endpoints which have date/datetime parameters has been updated to convert date/datetime objects into strings before making the API call.</li>
<li>A function <code>getDateTimeValueForField</code> has been added to Model files. This will be called when a model instance is being stringified.</li>
<li>Automatically generated test cases have been updated accordingly (for date/datetime endpoints).</li>
</ul>
]]></content:encoded>
      <category>Bug Fix</category>
      <category>NodeJS</category>
    </item>
    <item>
      <title>Discriminator Support Added in Node</title>
      <link>https://docs.apimatic.io/changelog/discriminator-support-in-node</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/discriminator-support-in-node</guid>
      <pubDate>Mon, 24 Jul 2017 05:00:20 GMT</pubDate>
      <description>Usage of discriminators is already supported by our code generation engine. We are happy to announce that now support for using discriminators has also been added to Node.</description>
      <content:encoded><![CDATA[<p>Usage of discriminators is already supported by our code generation engine. We are happy to announce that now support for using discriminators has also been added to Node.</p>
<ul>
<li>Discriminator is a field that is used to differentiate between a parent model and models that
inherit from it.</li>
<li>The response is deserialized into the parent model or one of its child classes by inspecting the 
discriminator field&#39;s value in the response.</li>
<li>Using a discriminator field, you can build leaner models by not having to build unions of fields
needed by a polymorphic response.</li>
</ul>
<p>Please generate your SDK again if you want to use this feature.</p>
<h2>Details Of Changes</h2>
<p>The following changes have been made to the SDK:</p>
<ul>
<li>In Model files, the discriminator field will now be identified with a flag (in the mapping information of fields)</li>
<li>A new function has been added to model files. It keeps track of discriminator values and their corresponding model class names.</li>
<li>The mapping functions present in <code>ObjectMapper</code> have been updated to take into account the discriminator values (if present) and return the correctly deserialized instances.</li>
<li>Some helper functions have been added to <code>ObjectMapper</code> class.</li>
</ul>
]]></content:encoded>
      <category>New Feature</category>
      <category>NodeJS</category>
    </item>
    <item>
      <title>Swagger 2.0 Examples Support Added</title>
      <link>https://docs.apimatic.io/changelog/swagger2.0-examples-support-added</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/swagger2.0-examples-support-added</guid>
      <pubDate>Fri, 14 Jul 2017 11:33:42 GMT</pubDate>
      <description>Swagger supports response and schema examples as can be seen from their documentation on adding examples. If your API description contains response or schema examples, then the exported Swagger file will be populated with these examples.</description>
      <content:encoded><![CDATA[<p>Swagger supports response and schema examples as can be seen from their documentation on <a href="https://swagger.io/docs/specification/adding-examples/">adding examples</a>. If your API description contains response or schema examples, then the exported Swagger file will be populated with these examples. </p>
<h2>Details</h2>
<p>Many API description formats support response or schema examples e.g. a RAML 1.0 file can contain a schema example as follows:</p>
<pre><code class="language-yml">  Email:
    type: object
    properties:
      subject: string
      body: string
    example:
      subject: My Email 1
      body: This is the text for email 1.
</code></pre>
<p>When exporting to Swagger 2.0, this example will look like:</p>
<pre><code class="language-json">    &quot;Email&quot;: {
      &quot;title&quot;: &quot;Email&quot;,
      &quot;example&quot;: {
        &quot;subject&quot;: &quot;My Email 1&quot;,
        &quot;body&quot;: &quot;This is the text for email 1.&quot;
      },
      &quot;type&quot;: &quot;object&quot;,
      &quot;properties&quot;: {
        &quot;subject&quot;: {
          &quot;description&quot;: &quot;&quot;,
          &quot;type&quot;: &quot;string&quot;
        },
        &quot;body&quot;: {
          &quot;description&quot;: &quot;&quot;,
          &quot;type&quot;: &quot;string&quot;
        }
      },
      &quot;required&quot;: [
        &quot;subject&quot;,
        &quot;body&quot;
      ]
    }
</code></pre>
]]></content:encoded>
      <category>New Feature</category>
    </item>
    <item>
      <title>OAuth 2.0 Authorization Support Added</title>
      <link>https://docs.apimatic.io/changelog/oauth2-release</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/oauth2-release</guid>
      <pubDate>Wed, 12 Jul 2017 13:04:28 GMT</pubDate>
      <description>Our API editor and Code Generation engine now supports OAuth 2.0 for authentication in the generated SDKs.</description>
      <content:encoded><![CDATA[<p>Our API editor and Code Generation engine now supports OAuth 2.0 for authentication in the generated SDKs.</p>
<p>OAuth 2 enabled SDKs will help developers in:</p>
<ul>
<li>Obtaining consent from user</li>
<li>Acquiring access token</li>
<li>Refreshing tokens when they expire</li>
<li>Making authorized API calls</li>
</ul>
<p>You can read more about <a href="https://docs.apimatic.io/define-apis/oauth2-authorization">OAuth 2.0 in APIMatic editor and Code Generation engine</a> here. </p>
<h2>Supported Grant Types</h2>
<p>All OAuth 2.0 grant types are supported:</p>
<ul>
<li>Authorization Code Grant </li>
<li>Resource Owner Password Grant</li>
<li>Client Credentials Grant</li>
<li>Implicit Grant</li>
</ul>
<blockquote>
<p><strong>Note</strong></p>
<p>Implicit Grant flow is only implemented for AngularJS because it is meant to be used in user agent based applications.</p>
</blockquote>
]]></content:encoded>
      <category>New Feature</category>
      <category>CSharp</category>
      <category>Java</category>
      <category>PHP</category>
      <category>Python</category>
      <category>NodeJS</category>
      <category>Ruby</category>
      <category>Android</category>
      <category>AngularJS</category>
    </item>
    <item>
      <title>Setting Composer Package Name</title>
      <link>https://docs.apimatic.io/changelog/setting-composer-package-name</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/setting-composer-package-name</guid>
      <pubDate>Wed, 12 Jul 2017 06:31:57 GMT</pubDate>
      <description>You can now set Composer Package Name for PHP SDKs being generated.</description>
      <content:encoded><![CDATA[<p>You can now set Composer Package Name for PHP SDKs being generated.</p>
<p>This will affect the <code>name</code> generated in the <code>composer.json</code> file. Leaving it empty will generate the a fallback package name based on your API name. </p>
<h2>Detailed Changes</h2>
<p>In order to set a Composer Package Name, you must provide a string with the format <code>your-vendor-name/package-name</code>.</p>
<p>Vendor and package names are case-insensitive alpha-numeric strings that cannot contain spaces but are allowed to have dots, underscores and dashes.</p>
<p>The Composer Package Name is set from the <em>CodeGen Settings</em> in the API editor.</p>
<p><img src="https://docs.apimatic.io/images/changelog/php-composer-name.png" alt="Composer package name"></p>
<p>The Composer Package name will appear in the SDK&#39;s <code>composer.json</code> file like this:</p>
<pre><code class="language-json">{
    &quot;name&quot;: &quot;your-vendor-name/package-name&quot;,
    &quot;description&quot;: &quot;...&quot;,
    &quot;require&quot;: {
        &quot;php&quot;: &quot;^5.3.3 || ^7.0&quot;,
        &quot;another-vendor/package&quot;: &quot;1.*&quot;
    }
}
</code></pre>
]]></content:encoded>
      <category>New Feature</category>
      <category>PHP</category>
    </item>
    <item>
      <title>WSDL Import is Now Improved!</title>
      <link>https://docs.apimatic.io/changelog/wsdl-import-is-now-improved</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/wsdl-import-is-now-improved</guid>
      <pubDate>Thu, 06 Jul 2017 10:01:43 GMT</pubDate>
      <description>Improvements have been made to WSDL import by fixing minor bugs, adding new features, and improving on the existing ones in an effort to make it more compliant with the official W3C specification</description>
      <content:encoded><![CDATA[<p>Improvements have been made to WSDL import by fixing minor bugs, adding new features, and improving on the existing ones in an effort to make it more compliant with the official <a href="https://www.w3.org/TR/wsdl">W3C specification</a></p>
<h2>Details</h2>
<p>Several new features have been added along with some improvements to the WSDL import which includes the following:</p>
<ol>
<li><p>Is your WSDL file split into multiple files (e.g. services defined in one WSDL file, bindings in another WSDL file, schema files, etc.)? No worries as you can now upload a ZIP file containing all relevant files to get the desired output.</p>
</li>
<li><p>Added support for multiple <a href="https://www.w3.org/TR/wsdl#_ports">service ports</a></p>
</li>
<li><p>Improved support of <a href="https://www.w3.org/TR/wsdl#_how-s">SOAP bindings</a> including better support for soap headers and soap body elements.</p>
</li>
</ol>
]]></content:encoded>
      <category>Improvement</category>
    </item>
    <item>
      <title>AngularJS Circular Dependency Fix</title>
      <link>https://docs.apimatic.io/changelog/angular-sdk-circular-dependency-fix</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/angular-sdk-circular-dependency-fix</guid>
      <pubDate>Wed, 07 Jun 2017 07:00:00 GMT</pubDate>
      <description>We have changed the structure of the Angular SDK to break cyclic dependencies. Due to this, the following changes have been made:</description>
      <content:encoded><![CDATA[<p>We have changed the structure of the Angular SDK to break cyclic dependencies. Due to this, the following changes have been made:</p>
<ul>
<li>Model deserialization logic has moved out from model files.</li>
<li>We have added new files <code>ObjectMapper.js</code> and <code>ModelFactory.js</code> to the SDK.</li>
<li><code>BaseModel</code> is now being used to assign values to model properties (when model class is directly instantiated)</li>
<li><code>BaseController</code> has been added to the SDK.</li>
</ul>
<p>Please generate your SDK again to get the improved code.</p>
<h2>Detailed Changes</h2>
<ul>
<li>Previously, models were being imported in other model files because model deserialization was done inside the model files. This caused cyclic dependencies in some cases. To break this cyclic dependency, we have changed the structure of model classes and added <code>ObjectMapper</code> and <code>ModelFactory</code> files alongwith changes to <code>Controllers</code> and <code>BaseModel</code> files as well as addition of <code>BaseController</code> file.</li>
<li><code>ObjectMapper</code> service is now being used for mapping the model fields with their appropriate values.</li>
<li>Model instantiation has now moved to <code>ModelFactory.js</code> service. Previously, controllers directly instantiated models.</li>
<li>Previously, properties of a model object were deserialized (or mapped with their corresponding values) inside the model file itself. This behavior has changed now. Model files do not deserialize the object themselves. There are 2 cases: We still allow  users to create instances of models and pass in an object. In this case, the correct value for a model field is gotten from the object (if it is defined). So the correct object needs to be passed in the constructor (with the right property names and values). However, if a model is instantiated using the model factory (as is done in the controllers now), then model deserialization will be handled by the <code>ObjectMapper</code> service.</li>
<li>We are now maintaining a mapping object in model files which contains information about the properties of the models/exceptions.</li>
<li>The <code>toJSON</code> function in <code>BaseModel.js</code> has been updated according to the mappingInfo addition in model files.</li>
<li><code>BaseController</code> has been added to the SDK now. BaseController returns an instance of the <code>ObjectMapper</code> service.</li>
</ul>
]]></content:encoded>
      <category>Improvement</category>
      <category>AngularJS</category>
    </item>
    <item>
      <title>Support for Export to WSDL Added</title>
      <link>https://docs.apimatic.io/changelog/support-for-export-to-wsdl-added</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/support-for-export-to-wsdl-added</guid>
      <pubDate>Wed, 31 May 2017 03:16:13 GMT</pubDate>
      <description>Good news! You can now export your existing API description files to WSDL. The generated WSDL can be utilized in generating server interfaces using VS developer tools in addition to other benefits. The WSDL generated follows the WSDL 1.1 format specified at https://www.w3.org/...</description>
      <content:encoded><![CDATA[<p>Good news! You can now export your existing API description files to WSDL. The generated WSDL can be utilized in generating server interfaces using VS developer tools in addition to other benefits. The WSDL generated follows the WSDL 1.1 format specified at <a href="https://www.w3.org/TR/wsdl">https://www.w3.org/TR/wsdl</a>.</p>
]]></content:encoded>
      <category>New Feature</category>
    </item>
    <item>
      <title>Code Compliance Implemented In Angular</title>
      <link>https://docs.apimatic.io/changelog/code-compliance-in-angular</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/code-compliance-in-angular</guid>
      <pubDate>Mon, 08 May 2017 07:31:30 GMT</pubDate>
      <description>Since we're always working on improving our generated SDK's, today we're announcing some major work done on the Angular.js SDK.</description>
      <content:encoded><![CDATA[<p>Since we&#39;re always working on improving our generated SDK&#39;s, today we&#39;re announcing some major work done on the Angular.js SDK.</p>
<ul>
<li>Angular.js generated code is now standard compliant.</li>
<li>The standard we&#39;re using is <a href="https://github.com/johnpapa/angular-styleguide/blob/master/a1/README.md">John Papa&#39;s Angular1 Style Guide</a>.</li>
<li>The linter can be run from the command-line by using the command <code>jshint &lt;folder-name-to-lint&gt;</code>.</li>
<li>The configuration file for the linter will be included with the SDK from now.</li>
</ul>
<p>Please generated your SDK again to get the standard compliant code.</p>
<h2>Details Of Changes Made</h2>
<p>Here&#39;s a summary of all the changes we&#39;ve made to the code-base:</p>
<ul>
<li>Double quotes have been replaced by single quotes in the SDK.</li>
<li>Some missing semi-colons have been added at places.</li>
<li>All code and comments now follow a max line length of <code>120</code> characters.</li>
<li>Unnecessary imports in files have been removed (from controllers and model files).</li>
<li>Moment import has been improved (in files where Date/Datetime is being used).</li>
<li>Object properties are strictly being accessed using dot notation whenever possible.</li>
<li>Ensured <code>===</code> is used instead of <code>==</code> for equality checks.</li>
<li>API Helper code has been refactored.</li>
<li>All for-in loops are now safe to use since they are wrapped in <code>if</code> statements.</li>
<li>Strings exceeding line length allowed will be created into multi-line strings.</li>
<li>Anonymous functions have been replaced by named functions.</li>
</ul>
<h2>Running Linter Tests</h2>
<p>To check for Style Guide compliance, you can run the <a href="http://jshint.com/install/">JSHint</a> tool.</p>
<p>To run the linter, you can use a command line version of JSHint or use a plugin for the IDE you&#39;re using (if available)</p>
<h3>Running JSHint CLI</h3>
<p>Use this command to run the linter:</p>
<pre><code class="language-shell">jshint &lt;folder-name-to-lint&gt;
</code></pre>
<h3>Running JSHint Plugin</h3>
<p>Follow the instructions <a href="http://jshint.com/install/">here</a>.</p>
<p>The JSHint configuration file that we&#39;re using will be generated with the SDK.</p>
]]></content:encoded>
      <category>Improvement</category>
      <category>AngularJS</category>
    </item>
    <item>
      <title>Added Support for Postman Environment and Dump files</title>
      <link>https://docs.apimatic.io/changelog/added-support-for-postman-environment-and-dump-files</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/added-support-for-postman-environment-and-dump-files</guid>
      <pubDate>Thu, 04 May 2017 11:25:16 GMT</pubDate>
      <description>Now you can upload a ZIP file containing your Postman Collection file along with any Postman Environment Files. That way we will extract values for your environment variables from the Environment files and give a better output during conversions on the Transformer or when impo...</description>
      <content:encoded><![CDATA[<p>Now you can upload a ZIP file containing your Postman Collection file along with any Postman Environment Files. That way we will extract values for your environment variables from the Environment files and give a better output during conversions on the Transformer or when importing APIs to your Manage APIs page. Support for Postman data dump files has now been added as well.</p>
<h2>Details</h2>
<p>Postman supports setting up multiple environments.  Each environment contains certain variables and the value of the variables will vary in each environment. You can view more details on these at <a href="https://www.getpostman.com/docs/environments">Setting up an environment with variables</a>. A postman collection file can contain references to these variables. If your postman collection file does, you can now upload a ZIP file containing the relevant Postman Environment files along with your Postman collection file. </p>
<p>Postman allows you to export all your collections in the form of a Postman Dump file. This dump file also contains environment variables and global variables. We now support conversion of this file by extracting the first collection in that file along with any environment information present.</p>
]]></content:encoded>
      <category>New Feature</category>
    </item>
    <item>
      <title>Model Classes Code Improved</title>
      <link>https://docs.apimatic.io/changelog/model-props-improvement-node</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/model-props-improvement-node</guid>
      <pubDate>Wed, 03 May 2017 09:05:29 GMT</pubDate>
      <description>We've made an improvement to how model properties are now generated in the code. The generated SDK now contains both camel case-d version of the property name and the actual property name (where applicable).Read on to find more details about the change.</description>
      <content:encoded><![CDATA[<p>We&#39;ve made an improvement to how model properties are now generated in the code. The generated SDK now contains both camel case-d version of the property name and the actual property name (where applicable).<br>Read on to find more details about the change.</p>
<p>Please generate your SDK again to get the improved code.</p>
<h2>Details Of Change</h2>
<p>Previously, the argument passed to <code>getValue</code> function in the constructor of Model files was always camel case-d. However, now both versions (the original name and the camel case-d name)  are passed with an <code>OR</code> condition if the actual name is not originally camel case-d.<br>We&#39;re supporting both styles now so in case a deserialized model is passed as the argument to the constructor when instantiating the model directly, the code will still stay valid.</p>
<p>This is not a breaking change.</p>
<h3>Example Code</h3>
<p>Previously, this code was generated (as an example) for a property named <code>Test Model</code></p>
<pre><code class="language-js">constructor(obj) {
    super(obj);
    if (obj === undefined || obj === null) return;
    this.testModel = this.constructor.getValue(obj.testModel);
}
</code></pre>
<p>But now, this will be generated:</p>
<pre><code class="language-js">constructor(obj) {
    super(obj);
    if (obj === undefined || obj === null) return;
    this.testModel = this.constructor.getValue(obj.testModel || obj[&#39;Test Model&#39;]);
}
</code></pre>
]]></content:encoded>
      <category>Improvement</category>
      <category>NodeJS</category>
    </item>
    <item>
      <title>ES6 Promises in NodeJS</title>
      <link>https://docs.apimatic.io/changelog/node-es6-promises</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/node-es6-promises</guid>
      <pubDate>Sun, 23 Apr 2017 12:51:45 GMT</pubDate>
      <description>NodeJS SDKs will now return promises in endpoint calls, as an alternative to accepting callbacks.</description>
      <content:encoded><![CDATA[<p>NodeJS SDKs will now return promises in endpoint calls, as an alternative to accepting callbacks.</p>
<ul>
<li>We use ES6 Promises which is based on <a href="https://promisesaplus.com/">Promises/A+</a> and is interoperable with most Promise-based implementations.</li>
<li>Callbacks are still supported (for backward-compatibility) but are now optional.</li>
</ul>
<p>Re-generate your NodeJS SDK to get the new Promise-enabled SDK implementation now.</p>
<h2>Why Promises?</h2>
<p>Here is an except from a <a href="https://strongloop.com/strongblog/promises-in-node-js-an-alternative-to-callbacks/">blog</a> by StrongLoop:</p>
<blockquote>
<p>Callbacks are the <strong>simplest possible mechanism</strong> for asynchronous code in JavaScript. Unfortunately, raw callbacks sacrifice the <strong>control flow</strong>, <strong>exception handling</strong>, and <strong>function semantics</strong> familiar from synchronous code. Promises provide a way to get those things back.</p>
</blockquote>
<h2>Usage</h2>
<p>All endpoint methods now return Promises.</p>
<pre><code class="language-js">let promise = apiController.endpointMethod();
promise.then(onFulfilled, onRejected);
</code></pre>
<ul>
<li><code>onFulfilled</code> method is called if the endpoint call succeeds and <code>onRejected</code> is called upon error.</li>
<li><code>onFulfilled</code> method will be passed a response from the <code>endpointMethod</code> if any, after validation.</li>
<li><code>onRejected</code> method will be passed an error object containing an <code>errorMessage</code> and <code>errorCode</code> or a custom error object if defined by your API description.</li>
</ul>
<p>The sample code above can also be rewritten as:</p>
<pre><code class="language-js">apiController.endpointMethod()
	.then(onFulfilled)
	.catch(onRejected);
</code></pre>
<blockquote>
<p><strong>Order of callback execution</strong></p>
<p>An endpoint call&#39;s callback is always executed before its Promise is resolved.</p>
</blockquote>
<h2>Advanced Usage</h2>
<ul>
<li><a href="https://strongloop.com/strongblog/promises-in-node-js-an-alternative-to-callbacks/#chaining-and-nesting-promises">Chaining and Nesting Promises</a></li>
<li><a href="https://strongloop.com/strongblog/promises-in-node-js-an-alternative-to-callbacks/#promises-and-synchronous-functions">Promises and synchronous functions</a></li>
<li><a href="https://strongloop.com/strongblog/promises-in-node-js-an-alternative-to-callbacks/#error-handling-in-promises">Error handling in promises</a></li>
<li><a href="https://strongloop.com/strongblog/promises-in-node-js-an-alternative-to-callbacks/#doing-parallel-operations-with-promises">Doing parallel operations with promises</a></li>
</ul>
]]></content:encoded>
      <category>New Feature</category>
      <category>NodeJS</category>
    </item>
    <item>
      <title>Additional Model Properties Support in Node SDK</title>
      <link>https://docs.apimatic.io/changelog/node-additional-model-properties-support</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/node-additional-model-properties-support</guid>
      <pubDate>Wed, 19 Apr 2017 07:12:27 GMT</pubDate>
      <description>NodeJS SDKs can now optionally preserve additional properties returned in the response. This setting can be enabled via Settings &gt; CodeGen Settings page in the API editor and turning on the Enable Additional Model Properties flag.</description>
      <content:encoded><![CDATA[<p>NodeJS SDKs can now optionally preserve additional properties returned in the response. This setting can be enabled via <code>Settings &gt; CodeGen Settings</code> page in the API editor and turning on the <code>Enable Additional Model Properties</code> flag.</p>
<h2>Details</h2>
<ul>
<li>A property <code>additionalProperties</code> and a function <code>addAdditionalProperty</code> have been added to model classes to store additional model properties.</li>
<li><code>additionalProperties</code> which has been added to model classes is an associative array. It stores key-value pairs in an array.</li>
<li>The <code>toJSON</code> function in model classes now includes additional model properties in the serialized model that it returns. When called, it will return all addtional properties added to the model as individual properties. Array of additional properties will not be returned.</li>
<li><code>ObjectMapper</code> class has functionality added to cater for additional properties when mapping model properties.</li>
<li>A flag (function parameter) has been added to <code>mapObject</code> function of <code>ObjectMapper</code> class due to which controllers&#39; call to <code>mapObject</code> has been updated as well.</li>
</ul>
<p>This feature is now supported in all language SDKs except AngularJS and Go.</p>
]]></content:encoded>
      <category>New Feature</category>
      <category>NodeJS</category>
    </item>
    <item>
      <title>Node.js Circular Dependency Fix</title>
      <link>https://docs.apimatic.io/changelog/node-sdk-circular-dependency-fix</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/node-sdk-circular-dependency-fix</guid>
      <pubDate>Wed, 12 Apr 2017 06:25:16 GMT</pubDate>
      <description>We have changed the structure of the SDK to break cyclic dependencies. Due to this, the following changes have been made:</description>
      <content:encoded><![CDATA[<p>We have changed the structure of the SDK to break cyclic dependencies. Due to this, the following changes have been made:</p>
<ul>
<li>Model deserialization logic has moved out from model classes.</li>
<li>We have added new files <code>ObjectMapper.js</code> and <code>ModelFactory.js</code> to the sdk.</li>
<li>Exception handling in <code>BaseController</code> has changed to use <code>ObjectMapper</code>.</li>
<li><code>BaseModel</code> is now being used to assign values to model properties (when model class is directly instantiated)</li>
<li><code>BaseController</code> is not being exposed by the API Client now.</li>
</ul>
<p>Please generate your SDK again to get the improved code.</p>
<h2>Detailed Changes</h2>
<ul>
<li>Previously, models were being imported in other model classes because model deserialization was done inside the model class. This caused cyclic dependencies in some cases. To break this cyclic dependency, we have changed the structure of model classes, exception classes and added <code>ObjectMapper</code> and <code>ModelFactory</code> classes alongwith changes to <code>Controllers</code>, <code>BaseController</code> and <code>BaseModel</code>.</li>
<li><code>ObjectMapper</code> class is now being used for mapping the model fields with their appropriate values. Object Mapper expects a json object (containing the input values to be assigned) and the name of the model to be instantiated. It then maps the input json object with the fields of the model and assigns them the correct value.</li>
<li>Model instantiation has now moved to <code>ModelFactory.js</code> class. Previously, controllers directly instantiated models. However, now controllers get a mapped object for the model from the <code>ObjectMapper.js</code> instead. The <code>ObjectMapper</code> class uses <code>Model Factory</code> to get an instance of the model/exception and then returns the mapped object (with correct values assigned to properties).</li>
<li>Previously, properties of a model object were deserialized (or mapped with their corresponding values) inside the model class itself. This behavior has changed now. Model classes do not deserialize the object themselves. There are 2 cases: We still allow  users to create instances of models and pass in an object. In this case, the correct value for a model field is gotten from the object (if it is defined). However, if a model is instantiated using the model factory (as is done in the controllers now), then model deserialization will be handled by the <code>ObjectMapper</code> class.</li>
<li><code>Datetime</code> deserialization is also being handled by the <code>ObjectMapper</code> class now.</li>
<li>We are now maintaining a mapping object in model and exception files which contains information about the properties of the models/exceptions.</li>
<li>The <code>toJSON</code> function in <code>BaseModel.js</code> file has now changed. It uses <code>mappingInfo</code> of a model class to check if it has additional properties. Previously, a variable called <code>_variableDict</code> was being used for storing details of additional model properties.</li>
<li>Global error handling logic in BaseController has changed. BaseController does not directly create instances of Exception classes. Instead, <code>ModelFactory</code> and <code>ObjectMapper</code> are being used for instantiating and deserializing Exception classes.</li>
</ul>
]]></content:encoded>
      <category>Improvement</category>
      <category>NodeJS</category>
    </item>
    <item>
      <title>Polymorphic Responses with Discriminator Field</title>
      <link>https://docs.apimatic.io/changelog/polymorphic-responses-discriminators</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/polymorphic-responses-discriminators</guid>
      <pubDate>Fri, 07 Apr 2017 10:45:01 GMT</pubDate>
      <description>APIMatic Code Generation engine now supports polymorphic responses with the help of a discriminator field.</description>
      <content:encoded><![CDATA[<p>APIMatic Code Generation engine now supports polymorphic responses with the help of a discriminator field.</p>
<ul>
<li>Discriminator is a field that is used to differentiate between a parent model and models that
inherit from it.</li>
<li>The response is deserialized into the parent model or one of its child classes by inspecting the 
discriminator field&#39;s value in the response.</li>
<li>Using a discriminator field, you can build leaner models by not having to build unions of fields
needed by a polymorphic response.</li>
</ul>
<p>Check out the <a href="https://docs.apimatic.io/define-apis/discriminators">Discriminator</a> documentation to get started.</p>
<h2>Details</h2>
<p>The <a href="https://docs.apimatic.io/define-apis/discriminators">Discriminator</a> documentation details how to handle polymorphic
response in your API.</p>
<p>Also, see the following docs for support in different API description formats:</p>
<ul>
<li><a href="https://docs.apimatic.io/specification-extensions/swagger-codegen-extensions#discriminator-value-extension">Discriminator in Swagger 1.2 and 2.0</a></li>
</ul>
]]></content:encoded>
      <category>New Feature</category>
      <category>PHP</category>
      <category>Python</category>
      <category>CSharp</category>
      <category>Java</category>
    </item>
    <item>
      <title>Adopting AirBnb JS Style Guide and ES6 Primitives</title>
      <link>https://docs.apimatic.io/changelog/adopting-airbnb-js-style-guide-es6-primitives</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/adopting-airbnb-js-style-guide-es6-primitives</guid>
      <pubDate>Mon, 03 Apr 2017 11:19:00 GMT</pubDate>
      <description>Keeping with our tradition of Continuous Improvement, we are proud to announce a major revamp of NodeJS SDKs!</description>
      <content:encoded><![CDATA[<p>Keeping with our tradition of Continuous Improvement, we are proud to announce a major revamp of NodeJS SDKs!</p>
<ul>
<li>Our code now conforms with <a href="https://github.com/airbnb/javascript#airbnb-javascript-style-guide-">Airbnb&#39;s JavaScript Style Guide</a>.</li>
<li>We are using ES6 classes, along with other ES6 primitives.</li>
<li>You can run <code>npm run lint</code> to lint your code immediately.</li>
<li>We generate CI/CD files for Travis, CircleCi, Appveyor and Jenkins to run NodeJS tests.</li>
</ul>
<p>Please generate your SDK again if you want the improved ES6 based code.</p>
<h2>Detailed Changes</h2>
<p>Here is a summary of code related changes you&#39;ll see:</p>
<ul>
<li>Classes are now written using ES6 class syntax.</li>
<li>All code and comments now follow a max line length of <code>100</code> characters.</li>
<li><code>var</code> declarations have been replaced by block scoped <code>const</code> and <code>let</code>.</li>
<li>All files now work in <code>strict</code> mode.</li>
<li>Unnecessary imports in files have been removed.</li>
<li><em>Double quotes</em> have been replaced by <em>single quotes</em> throughout the sdk.</li>
<li>JSDoc annotations in code have improved.</li>
<li>String concatenation has been replaced by <em>template literals</em>.</li>
<li>Object properties are strictly being accessed using dot notation whenever possible.</li>
<li>Tabs have been replaced by <em>spaces</em>.</li>
<li>Indent of <em>4 spaces</em> is used.</li>
<li>Line endings are now <em>Unix style (LF)</em> line-endings.</li>
<li><em>Arrow functions</em> are now being used.</li>
<li>Ensured <code>===</code> is used instead of <code>==</code> for equality checks.</li>
<li>All <em>requires</em> have been moved to the top of the file.</li>
<li>Object literal shorthand syntax is now being used.</li>
<li>Removed all trailing spaces.</li>
<li>Infix operators are now spaced according to AirBnb guide.</li>
<li>Removed all code that manipulated object prototype (due to ES6 class inheritance).</li>
</ul>
<h2>Breaking Changes</h2>
<p>We no longer generate getters and setters for properties in model and exception/error classes. Properties should directly be accessed using the property name.</p>
<pre><code class="language-js">// Access properties simply by dot notation
let user = new User();
user.name = &#39;Foo&#39;;
console.log(user.name);

// Getters and setters like these are no longer supported
// This code will no longer run
let user = new User();
user.setName(&#39;Foo&#39;);
console.log(user.getName());
</code></pre>
<p>These changes were made keeping in line with the current practices for JavaScript APIs.</p>
<h2>Running Linter Tests</h2>
<p>To check for Style Guide compliance, you can run the <a href="http://eslint.org/">ESLint</a> tool.</p>
<p>First ensure all the project dependencies are installed:</p>
<pre><code class="language-shell">npm install
</code></pre>
<p>Then run the ESLint tool using:</p>
<pre><code class="language-shell">npm run lint
</code></pre>
<p>Our current ESLint configuration looks like this:</p>
<pre><code class="language-js">{
	&quot;eslintConfig&quot;: {
		&quot;extends&quot;: &quot;airbnb&quot;,
		&quot;env&quot;: {
		  &quot;commonjs&quot;: true,
		  &quot;node&quot;: true,
		  &quot;mocha&quot;: true
		},
		&quot;rules&quot;: {
		  &quot;indent&quot;: [&quot;error&quot;, 4],
		  &quot;no-underscore-dangle&quot;: 0,
		  &quot;strict&quot;: 0,
		  &quot;prefer-rest-params&quot;: 0
		}
	}
}
</code></pre>
<h2>Supported NodeJS Runtimes</h2>
<p>The generated SDK should be compatible with NodeJS <em>version 4</em> and above.</p>
<p>We specifically avoided some ES6 features in order to keep compatibility with version 4: see <a href="http://node.green/">node.green</a>.</p>
]]></content:encoded>
      <category>Improvement</category>
      <category>NodeJS</category>
    </item>
    <item>
      <title>Optional Model Field Deserialization Issue</title>
      <link>https://docs.apimatic.io/changelog/optional-model-field-deserialization-issue</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/optional-model-field-deserialization-issue</guid>
      <pubDate>Tue, 28 Mar 2017 08:14:26 GMT</pubDate>
      <description>There was an issue in code generation for PHP SDKs where the model classes (custom types) had fields with incorrect PHP typehints. This lead to the JsonMapper mapping responses incorrectly to models during deserialization. However, this only occurred when a model had fields th...</description>
      <content:encoded><![CDATA[<p>There was an issue in code generation for PHP SDKs where the model classes (custom types) had fields with incorrect
PHP typehints. This lead to the <code>JsonMapper</code> mapping responses incorrectly to models during deserialization. However, this
only occurred when a model had fields that were described as optional in the API description and no default value was provided.</p>
<p>Re-generate your PHP SDK to get the fix.</p>
<h2>Details</h2>
<p>In cases where model fields were optional, the PHP typehints being added did not allow for a <code>null</code> value. For example, an optional
integer value should have a <code>integer|null</code> typehint but was incorrectly given just <code>integer</code>. This caused the <code>JsonMapper</code> to
incorrectly initialize the field to a non-zero value, like <code>0</code>, when the response did not contain the field or the field was <code>null</code>.
This fix will allow <code>null</code> to be correctly mapped on to the field.</p>
<p>This issue was specific to code generation for PHP SDKs.</p>
]]></content:encoded>
      <category>Bug Fix</category>
      <category>PHP</category>
    </item>
    <item>
      <title>Added Support for Swagger 1.2 ZIP Files</title>
      <link>https://docs.apimatic.io/changelog/added-support-for-swagger-1.2-zip-files</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/added-support-for-swagger-1.2-zip-files</guid>
      <pubDate>Fri, 17 Mar 2017 09:55:45 GMT</pubDate>
      <description>If you have a Swagger 1.2 API description file split into Resource Listing and API Declaration files, you can import/convert it using a ZIP file. Previously, such API description file could only be converted/imported by providing the Resource Listing file via a URL where all A...</description>
      <content:encoded><![CDATA[<p>If you have a Swagger 1.2 API description file split into Resource Listing and API Declaration files, you can import/convert it using a ZIP file. Previously, such API description file could only be converted/imported by providing the Resource Listing file via a URL where all API Declaration files were located relative to this URL. </p>
<h2>Details</h2>
<p>As per Swagger 1.2 specification, the Swagger API comprises of two file types:</p>
<ol>
<li><p>A Resource Listing file</p>
</li>
<li><p>API Declaration files</p>
</li>
</ol>
<p>Details on these can be found at <a href="https://github.com/OAI/OpenAPI-Specification/blob/master/versions/1.2.md#42-file-structure">Swagger API Representation</a>.
If you have the above files present locally, you can upload them using a ZIP file. The Resource Listing file must be present in the root folder and the API declaration files must be present relative to this file in a separate directory e.g. </p>
<pre><code class="language-txt">root\
-- Resource Listing file
-- folder-name\
	-- API Declaration File 1
	-- API Declaration File 2
	-- .......
</code></pre>
<blockquote>
<p><strong>Caution</strong></p>
<p>Resource Listing file and API declaration files must NOT be located in the same directory.</p>
</blockquote>
]]></content:encoded>
      <category>New Feature</category>
    </item>
    <item>
      <title>Array Serialization Formats</title>
      <link>https://docs.apimatic.io/changelog/array-serialization-formats</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/array-serialization-formats</guid>
      <pubDate>Mon, 06 Mar 2017 12:56:53 GMT</pubDate>
      <description>Multiple formats are now supported for Array serialisation in form and query parameters. Formats supported include UnIndexed, Indexed, Plain, CSV, PSV, TSV.</description>
      <content:encoded><![CDATA[<p>Multiple formats are now supported for Array serialisation in form and query parameters. Formats supported include <code>UnIndexed</code>, <code>Indexed</code>, <code>Plain</code>, <code>CSV</code>, <code>PSV</code>, <code>TSV</code>.</p>
<p>This settings can be set using <a href="https://docs.apimatic.io/advanced/blueprint-extensions">our API Blueprint CodeGen setting extension named <code>ARRAYSERIALIZATION</code></a>.</p>
<h2>Details: Format and examples</h2>
<ul>
<li><code>UnIndexed</code>: <code>bussinessAsset[]=1&amp;bussinessAsset[]=2</code></li>
<li><code>Indexed</code>: <code>bussinessAsset[1]=1&amp;bussinessAsset[2]=2</code></li>
<li><code>Plain</code>: <code>bussinessAsset=1&amp;bussinessAsset=2</code></li>
<li><code>CSV</code>: <code>bussinessAsset=1,2</code> <strong>(Only for query parameters)</strong></li>
<li><code>PSV</code>: <code>bussinessAsset=1|2</code> <strong>(Only for query parameters)</strong>  </li>
<li><code>TSV</code>: <code>bussinessAsset=1\t2</code> <strong>(Only for query parameters)</strong></li>
</ul>
]]></content:encoded>
      <category>New Feature</category>
      <category>Csharp</category>
      <category>AngularJS</category>
    </item>
    <item>
      <title>Added Swagger Type Discriminator Support</title>
      <link>https://docs.apimatic.io/changelog/added-swagger-type-discriminator-support</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/added-swagger-type-discriminator-support</guid>
      <pubDate>Fri, 03 Mar 2017 10:58:12 GMT</pubDate>
      <description>Swagger makes use of a property discriminator to support polymorphism in custom types. We have now added support for this property in our system. We also offer an extension that will allow you to specify a custom value for the discriminator to override its default value.</description>
      <content:encoded><![CDATA[<p>Swagger makes use of a property <code>discriminator</code> to support polymorphism in custom types. We have now added support for this property in our system. We also offer an extension that will allow you to specify a custom value for the discriminator to override its default value.</p>
<h2>Details</h2>
<p>In case of Swagger 1.2, a user can use the <code>discriminator</code> property in the <a href="https://github.com/OAI/OpenAPI-Specification/blob/master/versions/1.2.md#527-model-object">Model Object</a> as follows:</p>
<pre><code class="language-json">&quot;Animal&quot;: {
  &quot;id&quot;: &quot;Animal&quot;,
  &quot;required&quot;: [
    &quot;id&quot;,
    &quot;type&quot;
  ],
  &quot;properties&quot;: {
    &quot;id&quot;: {
      &quot;type&quot;: &quot;long&quot;
    },
    &quot;type&quot;: {
      &quot;type&quot;: &quot;string&quot;
    }
  },
  &quot;subTypes&quot;: [&quot;Cat&quot;],
  &quot;discriminator&quot;: &quot;type&quot;
}
</code></pre>
<p>In case of Swagger 2.0, the user can specify this property in a <a href="http://swagger.io/specification/#fixed-fields-81">Definitions Object</a> as follows:</p>
<pre><code class="language-json">&quot;Pet&quot;: {
  &quot;type&quot;: &quot;object&quot;,
  &quot;discriminator&quot;: &quot;petType&quot;,
  &quot;properties&quot;: {
    &quot;name&quot;: {
      &quot;type&quot;: &quot;string&quot;
    },
    &quot;petType&quot;: {
      &quot;type&quot;: &quot;string&quot;
    }
  },
  &quot;required&quot;: [
    &quot;name&quot;,
    &quot;petType&quot;
  ]
}
</code></pre>
<p>We now support this property both during import/export of Swagger. The discriminator value will be the model/definition name of the parent model or the children model. We also allow our users to specify a custom discriminator value using the APIMATIC&#39;s Discriminator Value extension. More details on this extension can be viewed at <a href="https://docs.apimatic.io/specification-extensions/swagger-codegen-extensions#discriminator-value-extension">Swagger CodeGen Extensions</a></p>
]]></content:encoded>
      <category>New Feature</category>
    </item>
    <item>
      <title>Multiple Bug Fixes for Node SDK</title>
      <link>https://docs.apimatic.io/changelog/node-bug-fixes</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/node-bug-fixes</guid>
      <pubDate>Mon, 27 Feb 2017 07:43:07 GMT</pubDate>
      <description>Multiple bugs were identified and fixed for Node SDK. A summary of all bugs is given below with some details about each:</description>
      <content:encoded><![CDATA[<p>Multiple bugs were identified and fixed for Node SDK. A summary of all bugs is given below with some details about each:</p>
<ul>
<li>There was a bug in printing multi-line string literals in controller files.</li>
<li>In Controller files, string encoding for headers had some issues.</li>
<li>Exception Class imports within Controllers were printed with invalid exception class names.</li>
<li>Moment.js (for Date/Datetime) import statement was not being handled properly.</li>
<li>Imports for <code>Server.js</code> and <code>Environment.js</code> file in <code>index.js</code> will now only be included if multiple base urls are specified in the API description.</li>
<li>Exception Class files&#39; constructor function code has improved.</li>
<li>API Exception&#39;s constructor function code has improved.</li>
<li>Models or model properties which are being used in endpoints (such as parameters) are now being imported properly in the Controllers. Transitive imports are handled as well (if one model requires another, both are included in the controller).</li>
<li>Custom Type imports in model files have also been fixed now. If a custom type inherits from another custom type or contains an object of another custom type, that custom type is included in the model file. This import logic has been fixed.</li>
<li>Code in the <code>Request Client</code> file was not generating properly for <code>Superagent</code> client. Code for retries was being added even through retries were not enabled. This bug has been fixed.</li>
</ul>
<p>All the above mentioned bugs have been fixed. We recommend generating Node SDK again to get all these bug fixes and minor code improvements. </p>
<blockquote>
<p><strong>Note</strong></p>
<p> If you were using <code>Exception Classes</code> or <code>Datetime</code> in your SDKs, then please generate your SDK again. If you were using <code>Superagent</code> as your HTTP Client, then please generate your SDK again.</p>
</blockquote>
]]></content:encoded>
      <category>Bug Fix</category>
      <category>NodeJS</category>
    </item>
    <item>
      <title>Additional properties now allowed in CSharp</title>
      <link>https://docs.apimatic.io/changelog/additional-properties-now-allowed-in-CSharp</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/additional-properties-now-allowed-in-CSharp</guid>
      <pubDate>Wed, 22 Feb 2017 10:15:25 GMT</pubDate>
      <description>We've now added support for additional properties in models in the CSharp SDK. The additional properties are deserialized and stored in a dictionary inside the model.</description>
      <content:encoded><![CDATA[<p>We&#39;ve now added support for additional properties in models in the CSharp SDK. The additional properties are deserialized and stored in a dictionary inside the model.</p>
<p>This can be enabled via navigating to the <code>Settings &gt; CodeGen Settings</code> page in the API editor and enabling the <code>Enable Additional Model Properties</code> flag.</p>
<p>Supported platforms are : <i class="devicon-csharp-plain" title="C#"></i> <i class="devicon-java-plain" title="Java"></i> <i class="devicon-android-plain" title="Android"></i> <i class="devicon-apple-plain" title="Objective C"></i> <i class="devicon-ruby-plain" title="Ruby"></i> <i class="devicon-php-plain" title="PHP"></i></p>
<p>Visit <a href="https://docs.apimatic.io/generate-sdks/customize-sdks/codegen-settings/codegen-settings-overview">CodeGen Settings</a> to explore the full set of Code Generation Settings available.</p>
]]></content:encoded>
      <category>New Feature</category>
      <category>CSharp</category>
    </item>
    <item>
      <title>Swagger Server Configuration Extension</title>
      <link>https://docs.apimatic.io/changelog/swagger-server-configuration-extension</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/swagger-server-configuration-extension</guid>
      <pubDate>Tue, 21 Feb 2017 10:53:28 GMT</pubDate>
      <description>APIMATIC now offers you a swagger extension to specify Server Configuration details within your Swagger file. When you import this file, we will extract the relevant server configuration information from this extension.</description>
      <content:encoded><![CDATA[<p>APIMATIC now offers you a swagger extension to specify Server Configuration details within your Swagger file. When you import this file, we will extract the relevant server configuration information from this extension. </p>
<h2>Details</h2>
<p>Server configurations can be used to create multiple environments, multiple servers that can be used with specific endpoints and server URLs with template parameters. You can view more details about these configurations at <a href="https://docs.apimatic.io/define-apis/server-configuration">Server Configuration</a>. We have added support for an extension to help you specify this information without having to manually add it through the editor everytime you import your Swagger file. For more details on this extension please see <a href="https://docs.apimatic.io/specification-extensions/swagger-server-configuration-extensions">Swagger Server Configuration Extension</a></p>
]]></content:encoded>
      <category>New Feature</category>
    </item>
    <item>
      <title>Module File in Angular SDKs</title>
      <link>https://docs.apimatic.io/changelog/module-file-angular</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/module-file-angular</guid>
      <pubDate>Tue, 21 Feb 2017 09:01:22 GMT</pubDate>
      <description>A new file, Module.js has been added to the Angular SDKs. It defines the module of the SDK along with its dependencies. This is not a breaking change. Everything should work as before, this is just to make it easier to specify the modules that the SDK depends upon.</description>
      <content:encoded><![CDATA[<p>A new file, <code>Module.js</code> has been added to the Angular SDKs. It defines the module of the SDK along with its dependencies.
This is <em>not</em> a breaking change. Everything should work as before, this is just to make it easier to specify the modules that the SDK depends upon.</p>
<p>The <code>Module.js</code> file exists in the root folder of the generated SDK.</p>
]]></content:encoded>
      <category>Improvement</category>
      <category>AngularJS</category>
    </item>
    <item>
      <title>Multiple Datetime Formats in Angular</title>
      <link>https://docs.apimatic.io/changelog/datetime-in-angular</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/datetime-in-angular</guid>
      <pubDate>Tue, 21 Feb 2017 08:55:23 GMT</pubDate>
      <description>We have now added support for multiple datetime formats in our Angular SDKs. The following formats are supported:</description>
      <content:encoded><![CDATA[<p>We have now added support for multiple datetime formats in our Angular SDKs. The following formats are supported:</p>
<ul>
<li>RFC1123 Datetime <code>(Mon, 15 Jun 2009 20:45:30 GMT)</code></li>
<li>RFC3339 Datetime <code>(2016-03-13T12:52:32.123Z)</code></li>
<li>Unix Timestamp <code>(1480809600)</code></li>
</ul>
<p>You can specify the Type as <code>Datetime</code> and further choose the specific Datetime format from the <code>Endpoint Settings</code> page or <code>Models</code> page in the API Editor like so:</p>
<p><img src="https://docs.apimatic.io/images/changelog/datetime.png" alt="Screenshot Datetime"></p>
<p><img src="https://docs.apimatic.io/images/changelog/datetime-model.png" alt="Screenshot Datetime Models"></p>
<p>If you&#39;re using <code>Date</code> or <code>Datetime</code> as a Type in your API, you will need to download and include <a href="https://cdnjs.cloudflare.com/ajax/libs/angular-moment/1.0.1/angular-moment.min.js">angular-moment</a> and <a href="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.17.1/moment.min.js">moment.js</a> with the SDK as well.</p>
]]></content:encoded>
      <category>New Feature</category>
      <category>AngularJS</category>
    </item>
    <item>
      <title>Wadl Parameter Style Parsing Bug Fix</title>
      <link>https://docs.apimatic.io/changelog/wadl-parameter-style-parsing-bug-fix</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/wadl-parameter-style-parsing-bug-fix</guid>
      <pubDate>Fri, 17 Feb 2017 10:38:32 GMT</pubDate>
      <description>The WADL imports did not parse the Parameter style information correctly which has now been fixed.</description>
      <content:encoded><![CDATA[<p>The WADL imports did not parse the Parameter style information correctly which has now been fixed.</p>
<h2>Details</h2>
<p>WADL <a href="https://www.w3.org/Submission/wadl/#x3-250002.12">Parameter</a> definition contains a property <code>style</code> that indicates the mechanism of its submission. Our parser was not extracting the information from it correctly e.g. a parameter with style as <code>header</code> was being treated as a query parameter. This bug has now been fixed.</p>
]]></content:encoded>
      <category>Bug Fix</category>
    </item>
    <item>
      <title>Added Missing Support for Occurrence Indicators in XSD</title>
      <link>https://docs.apimatic.io/changelog/added-missing-support-for-occurrence-indicators-in-xsd</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/added-missing-support-for-occurrence-indicators-in-xsd</guid>
      <pubDate>Thu, 16 Feb 2017 06:57:01 GMT</pubDate>
      <description>XML Schema contains two occurrence indicators minOccurs and maxOccurs. The support for these was missing when we parsed any XML Schemas but has been added now.</description>
      <content:encoded><![CDATA[<p>XML Schema contains two occurrence indicators <code>minOccurs</code> and <code>maxOccurs</code>. The support for these was missing when we parsed any XML Schemas but has been added now.</p>
<h2>Details</h2>
<p><code>minOccurs</code> and <code>maxOccurs</code> are occurrence indicators in XML Schema that indicate the number of times a child element can occur at minimum and maximum respectively within a parent element. A <code>minOccurs</code> property should contain a non-negative integer e.g. value <code>0</code> means the element is optional. <code>maxOccurs</code> must either be a positive integer or simply <code>unbounded</code>. If an element has value of <code>maxOccurs</code> greater than 1 or equal to <code>unbounded</code> then it should be treated as an array. The support for these were missing from our XML Schema parser which has now been added.  More details on the indicators can be found at <a href="https://www.w3.org/TR/2012/REC-xmlschema11-1-20120405/structures.html#p-max_occurs">Particle Properties</a></p>
]]></content:encoded>
      <category>Improvement</category>
    </item>
    <item>
      <title>Added Support for Loading Relative Schema Files in WADL and WSDL</title>
      <link>https://docs.apimatic.io/changelog/added-support-for-loading-relative-schema-files-in-wadl-and-wsdl</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/added-support-for-loading-relative-schema-files-in-wadl-and-wsdl</guid>
      <pubDate>Thu, 09 Feb 2017 08:46:42 GMT</pubDate>
      <description>If you have WADL/WSDL files with references to external schema files that exist relative to your root file, then you can import/convert them successfully. These files may be accessible by URL or a ZIP file.</description>
      <content:encoded><![CDATA[<p>If you have WADL/WSDL files with references to external schema files that exist relative to your root file, then you can import/convert them successfully. These files may be accessible by URL or a ZIP file.</p>
<h2>Details</h2>
<p>Both WADL and WSDL may contain elements that reference external schema files using the <code>Include</code> or <code>Import</code> tags. If you are converting your file by providing a URL ensure that the schema files exist at a path relative to this file. Alternatively, you can try converting by providing all your relevant files in the form of a ZIP file. This ZIP file must contain both your API description and the schema files. </p>
<blockquote>
<p><strong>Note</strong></p>
<p> We currently only support W3C XML Schema files in WADL and WSDL</p>
</blockquote>
]]></content:encoded>
      <category>New Feature</category>
    </item>
    <item>
      <title>Model Properties Will Be Optional By Default In Swagger 1.2 Import</title>
      <link>https://docs.apimatic.io/changelog/model-properties-will-be-optional-by-default-in-swagger-12-import</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/model-properties-will-be-optional-by-default-in-swagger-12-import</guid>
      <pubDate>Tue, 07 Feb 2017 05:41:45 GMT</pubDate>
      <description>If the required property is skipped while defining a Model Object in Swagger 1.2 we now assume all properties as optional by default</description>
      <content:encoded><![CDATA[<p>If the <code>required</code> property is skipped while defining a <a href="https://github.com/OAI/OpenAPI-Specification/blob/master/versions/1.2.md#527-model-object">Model Object</a> in Swagger 1.2 we now assume all properties as optional by default </p>
<h2>Details</h2>
<p>When defining a <a href="https://github.com/OAI/OpenAPI-Specification/blob/master/versions/1.2.md#527-model-object">Model Object</a>, the required property is an array of <code>string</code> and is defined by Swagger 1.2 specification as:</p>
<blockquote>
<p>A definition of which properties MUST exist when a model instance is produced.</p>
</blockquote>
<p>It is not specified what the default behaviour should be in case this property is completely skipped. Initially, we assumed all properties to be required unless specified otherwise using the <code>required</code> property. However, we have changed this behaviour and now assume all properties as <code>optional</code>. If you need to specify certain properties as <code>required</code> you must mention their names in the <code>required</code> array property.</p>
]]></content:encoded>
      <category>Improvement</category>
    </item>
    <item>
      <title>Multiple Datetime Formats in SDKs</title>
      <link>https://docs.apimatic.io/changelog/datetime-implemented-in-node</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/datetime-implemented-in-node</guid>
      <pubDate>Mon, 06 Feb 2017 10:41:39 GMT</pubDate>
      <description>We have now added support for multiple datetime formats in our SDKs. The following formats are supported:</description>
      <content:encoded><![CDATA[<p>We have now added support for multiple datetime formats in our SDKs. The following formats are supported:</p>
<ul>
<li>RFC1123 Datetime <code>(Mon, 15 Jun 2009 20:45:30 GMT)</code></li>
<li>RFC3339 Datetime <code>(2016-03-13T12:52:32.123Z)</code></li>
<li>Unix Timestamp <code>(1480809600)</code></li>
</ul>
<p>You can specify the Type as <code>Datetime</code> and further choose the specific Datetime format from the <code>Endpoint Settings</code> page or <code>Models</code> page in the API Editor like so:</p>
<p><img src="https://docs.apimatic.io/images/changelog/datetime.png" alt="Screenshot Datetime"></p>
<p><img src="https://docs.apimatic.io/images/changelog/datetime-model.png" alt="Screenshot Datetime Models"></p>
<p><code>Datetime</code> is implemented in a total of 8 languages: <code>Objective-C</code>, <code>C#</code>, <code>Python</code>, <code>Ruby</code>, <code>Java</code>, <code>Android</code>, <code>AngularJS</code> and <code>NodeJS</code></p>
]]></content:encoded>
      <category>New Feature</category>
      <category>CSharp</category>
      <category>Obj-C</category>
      <category>Ruby</category>
      <category>Python</category>
      <category>NodeJS</category>
    </item>
    <item>
      <title>Node Index File Import Bug Fix</title>
      <link>https://docs.apimatic.io/changelog/node-index-file-import-bug</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/node-index-file-import-bug</guid>
      <pubDate>Thu, 02 Feb 2017 11:51:47 GMT</pubDate>
      <description>There was a bug in the index file of the generated SDK. The import for configuration.js was not handled correctly. This bug was causing trouble in using the properties and functions exported from configuration.js.</description>
      <content:encoded><![CDATA[<p>There was a bug in the <code>index</code> file of the generated SDK. The import for <code>configuration.js</code> was not handled correctly. This bug was causing trouble in using the properties and functions exported from <code>configuration.js</code>. </p>
<p>You may generate your SDK again to get this bug fix.</p>
<p>In cases where <code>Server Configuration</code> could be configured in the SDK, a <code>configuration.js</code> file was generated with the SDK. However, this file was not correctly being imported in the <code>index.js</code> file of the SDK. The bug has been fixed. Server Configuration should work as expected now.</p>
]]></content:encoded>
      <category>Bug Fix</category>
      <category>NodeJS</category>
    </item>
    <item>
      <title>Model Imports Bug Fix In Node</title>
      <link>https://docs.apimatic.io/changelog/node-enums-with-testcases-bug-fix</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/node-enums-with-testcases-bug-fix</guid>
      <pubDate>Thu, 02 Feb 2017 11:32:03 GMT</pubDate>
      <description>We encountered an error with custom types import in our Node SDK (with test cases). Custom Types which had spaces in between 2 words like Custom Type, or any special characters in their name were not being generated correctly. Causing the SDK to break.</description>
      <content:encoded><![CDATA[<p>We encountered an error with custom types import in our Node SDK (<em>with test cases</em>). Custom Types which had spaces in between 2 words like <code>Custom Type</code>, or any special characters in their name were not being generated correctly. Causing the SDK to break.  </p>
<p>This bug has been fixed now. Please regenerate your SDK if you encountered this bug.</p>
<p><code>Note:</code> If your SDK does not have automatically generated test cases, your SDK will not be affected in any way by this bug fix.</p>
]]></content:encoded>
      <category>Bug Fix</category>
      <category>NodeJS</category>
    </item>
    <item>
      <title>Swagger Import Will Now Assume Parameter is Optional by Default</title>
      <link>https://docs.apimatic.io/changelog/swagger-import-will-now-assume-parameter-is-optional-by-default</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/swagger-import-will-now-assume-parameter-is-optional-by-default</guid>
      <pubDate>Thu, 02 Feb 2017 07:31:54 GMT</pubDate>
      <description>When defining the Parameter Object in Swagger v1.2 or v2.0, they asssume default value for required property as false. We were previously keeping the default value for it to be true but now we conform strictly to the Swagger specification.</description>
      <content:encoded><![CDATA[<p>When defining the <code>Parameter Object</code> in Swagger v1.2 or v2.0, they asssume default value for <code>required</code> property as <code>false</code>. We were previously keeping the default value for it to be <code>true</code> but now we conform strictly to the Swagger specification.</p>
<h2>Details</h2>
<p>The Parameter Object in Swagger (both v1.2 and v2.0) consists of a boolean flag called <code>required</code> which helps indicate whether the parameter is optional or not. If this property is not explicitly declared then by default, Swagger assumes it to have the value set to <code>false</code>.</p>
<p>Here is what Swagger 1.2 specification says about the <code>required</code> flag of a Parameter Object:</p>
<blockquote>
<p>A flag to note whether this parameter is required. If this field is not included, it is equivalent to adding this field with the value false. If paramType is &quot;path&quot; then this field MUST be included and have the value true.</p>
</blockquote>
<p>See more at <a href="https://github.com/OAI/OpenAPI-Specification/blob/master/versions/1.2.md#524-parameter-object">Swagger 1.2 Parameter Object</a></p>
<p>Here is what Swagger 2.0 specification says about the <code>required</code> flag of a Parameter Object:</p>
<blockquote>
<p>Determines whether this parameter is mandatory. If the parameter is in &quot;path&quot;, this property is required and its value MUST be true. Otherwise, the property MAY be included and its default value is false.</p>
</blockquote>
<p>See more at <a href="http://swagger.io/specification/#parameterObject">Swagger 2.0 Parameter Object</a></p>
<p>When converting to Swagger (v1.2 or v2.0), the Parameter will have the <code>required</code> property as <code>true</code> strictly in case the parameter exists in the path (i.e. it is a template parameter). This is also in accordance with the Swagger specification as mentioned above.</p>
]]></content:encoded>
      <category>Improvement</category>
    </item>
    <item>
      <title>NodeJS SDKs Now Have Retries</title>
      <link>https://docs.apimatic.io/changelog/retries-in-node</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/retries-in-node</guid>
      <pubDate>Tue, 31 Jan 2017 07:30:18 GMT</pubDate>
      <description>Node JS SDKs now come with retries for requests. We allow retries for the following cases:</description>
      <content:encoded><![CDATA[<p>Node JS SDKs now come with retries for requests. We allow retries for the following cases:</p>
<ul>
<li>GET requests only.</li>
<li>General connection errors.</li>
<li>Timeout errors.</li>
<li>DNS address resolution failure errors.</li>
</ul>
<p>Re-generate your Node JS SDKs now to get this new feature.</p>
<p>To use <code>retry</code> feature in your SDK, you will need to specify the amount of <code>Retries</code> in your API Description to be more than <code>0</code>. The <code>Retries</code> flag is available in <code>CodegenSettings</code> of the API Description (for <code>APIMatic</code> format)</p>
<blockquote>
<p><strong>Note</strong></p>
<p> Retries are not supported for errors like client response errors, server response errors etc.</p>
</blockquote>
]]></content:encoded>
      <category>New Feature</category>
      <category>NodeJS</category>
    </item>
    <item>
      <title>PHP SDKs Are Now PSR-2 Compliant</title>
      <link>https://docs.apimatic.io/changelog/php-sdks-psr2-compliant</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/php-sdks-psr2-compliant</guid>
      <pubDate>Tue, 24 Jan 2017 13:26:27 GMT</pubDate>
      <description>APIMATIC's PHP SDKs are now compliant with the PSR-2 Coding Style Guide</description>
      <content:encoded><![CDATA[<p>APIMATIC&#39;s PHP SDKs are now compliant with the <a href="http://www.php-fig.org/psr/psr-2/">PSR-2 Coding Style Guide</a></p>
<ul>
<li>PSR-2 compliance means that the PHP code generated is guaranteed to be of high-quality.</li>
<li>PHP SDKs are written in a industry-standard code style to allow for maximum interoperability.</li>
<li>PHP SDKs can be tested for code style violation using the <a href="https://github.com/squizlabs/PHP_CodeSniffer">PHP Code Sniffer</a>.</li>
</ul>
<p>Re-generate your PHP SDKs now for the new changes.</p>
<h2>Details</h2>
<p>This change does not introduce any breaking changes in the PHP SDKs.</p>
<h2>Testing for Code Style using PHP Code Sniffer</h2>
<p>First you need to get the <code>PHP_CodeSniffer</code>. You can either download the Phar file:</p>
<pre><code class="language-bash">curl -OL https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar
</code></pre>
<p>Or install it globally using Composer:</p>
<pre><code class="language-bash">composer global require &quot;squizlabs/php_codesniffer=*&quot;
</code></pre>
<p>You can now test the SDK code for PSR-2 standard compliance using:</p>
<pre><code class="language-bash"># try this if PHP_CodeSniffer is downloaded as a PHAR
php phpcs.phar --standard=PSR2 src/

# or this if it is installed globally
phpcs --standard=PSR2 src/
</code></pre>
<p>For more information on the PHP Code Sniffer, <a href="https://github.com/squizlabs/PHP_CodeSniffer">see detailed documentation</a>.</p>
]]></content:encoded>
      <category>Improvement</category>
      <category>PHP</category>
    </item>
    <item>
      <title>Exception Classes Added in Node SDKs</title>
      <link>https://docs.apimatic.io/changelog/node-exception-classes-added</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/node-exception-classes-added</guid>
      <pubDate>Fri, 20 Jan 2017 06:58:01 GMT</pubDate>
      <description>Exception Classes support has been added to Node SDKs. Generate your SDK again to get this new feature!</description>
      <content:encoded><![CDATA[<p>Exception Classes support has been added to Node SDKs. Generate your SDK again to get this new feature!</p>
<p>Exception classes allow you to define custom error models. This means that if you want specific error codes to be handled in a certain way (such as displaying a custom error message), you can add an exception class and define the behavior accordingly. If you are using custom error codes in your API, these can also be handled with exception classes.
You can generate your SDK again to get the exception classes in your SDK which are defined in your API Description.</p>
]]></content:encoded>
      <category>New Feature</category>
      <category>NodeJS</category>
    </item>
    <item>
      <title>Package File Fix</title>
      <link>https://docs.apimatic.io/changelog/node-package-file-fix</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/node-package-file-fix</guid>
      <pubDate>Fri, 20 Jan 2017 06:52:20 GMT</pubDate>
      <description>There was a bug being generated in the package.json file with Node SDKs that had no test cases. The bug was related to trailing commas being generated in the package file's dependencies. Causing the package file to not resolve dependencies. The bug has been fixed now.</description>
      <content:encoded><![CDATA[<p>There was a bug being generated in the <code>package.json</code> file with Node SDKs that had no test cases. The bug was related to trailing commas being generated in the <code>package</code> file&#39;s dependencies. Causing the <code>package</code> file to not resolve dependencies. The bug has been fixed now.  </p>
<p>Please regenerate your NodeJS SDK to get the bug fix</p>
]]></content:encoded>
      <category>Bug Fix</category>
      <category>NodeJS</category>
    </item>
    <item>
      <title>Global Errors Implemented In Node SDKs</title>
      <link>https://docs.apimatic.io/changelog/node-global-errors-implemented</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/node-global-errors-implemented</guid>
      <pubDate>Fri, 20 Jan 2017 06:38:24 GMT</pubDate>
      <description>NodeJS SDKs now have both Local(endpoint specific) and Global Level (API specific) errors implemented as specified in the API Descriptions.</description>
      <content:encoded><![CDATA[<p>NodeJS SDKs now have both Local(endpoint specific) and Global Level (API specific) errors implemented as specified in the API Descriptions.</p>
<p>Previously, NodeJS SDKs came with only Local (endpoint) level errors. However, we have now improved the SDK by providing the option to have both Global (API level) errors and Local (endpoint level) errors. Now your Node SDKs will come with a BaseController which will provide global error handling. You may regenerate your SDK if you want to use this new feature.</p>
]]></content:encoded>
      <category>New Feature</category>
      <category>NodeJS</category>
    </item>
    <item>
      <title>Logging in SDKs</title>
      <link>https://docs.apimatic.io/changelog/logging-in-sdks</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/logging-in-sdks</guid>
      <pubDate>Wed, 11 Jan 2017 12:29:39 GMT</pubDate>
      <description>SDKs generated by APIMATIC now support logging events!</description>
      <content:encoded><![CDATA[<p>SDKs generated by APIMATIC now support logging events! </p>
<ul>
<li>Logging-enabled SDKs will log important events in the API lifecycle to the console, log file or another logging backend.</li>
<li>Logging backends are configurable. You can even plug-in a logging service like <a href="https://www.loggly.com/">Loggly</a> or <a href="https://sentry.io/welcome/">Sentry</a> into your SDKs.</li>
<li>Easily monitor your SDK usage and find bugs when they occur.</li>
</ul>
<h2>Enable Logging in SDKs</h2>
<p>Just switch on the <em>Enable Logging</em> flag in Code Generation Settings.</p>
<p><img src="https://docs.apimatic.io/images/changelog/chrome_2017-01-11_18-06-17.png" alt="screenshot logging SDKs"></p>
<h2>Logging Frameworks Used</h2>
<table>
<thead>
<tr>
<th>SDK Platform</th>
<th>Framework</th>
</tr>
</thead>
<tbody><tr>
<td>C#</td>
<td><a href="https://github.com/net-commons/common-logging">Common.Logging .NET</a></td>
</tr>
<tr>
<td>Python</td>
<td><a href="https://docs.python.org/3/library/logging.html">Logging module</a></td>
</tr>
<tr>
<td>Ruby</td>
<td><a href="https://github.com/TwP/logging">Logging</a></td>
</tr>
<tr>
<td>Objective-C</td>
<td><a href="https://github.com/CocoaLumberjack/CocoaLumberjack">CocoaLumberjack</a></td>
</tr>
<tr>
<td>NodeJS</td>
<td><a href="https://github.com/winstonjs/winston">Winston</a></td>
</tr>
<tr>
<td>Java</td>
<td><a href="https://www.slf4j.org/">SLF4J</a></td>
</tr>
</tbody></table>
<h2>Update</h2>
<p>We&#39;ve also added logging to:</p>
<ul>
<li>Java (<a href="https://docs.apimatic.io/v4/changelog#logging-java">read changelog</a>)</li>
</ul>
]]></content:encoded>
      <category>New Feature</category>
      <category>CSharp</category>
      <category>Obj-C</category>
      <category>Ruby</category>
      <category>Python</category>
      <category>NodeJS</category>
    </item>
    <item>
      <title>Error Model Deserialization Issue Fixed</title>
      <link>https://docs.apimatic.io/changelog/error-model-deserialization-fix</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/error-model-deserialization-fix</guid>
      <pubDate>Thu, 05 Jan 2017 09:40:06 GMT</pubDate>
      <description>A bug in PHP SDKs being generated lead to custom Error Exception Models not being deserialized properly from the response when an API error occurred. This was caused by an error in the unbox() function in the custom Exception class. It has now been fixed.</description>
      <content:encoded><![CDATA[<p>A bug in PHP SDKs being generated lead to custom <em>Error Exception Models</em> not being deserialized properly from the response when an API error occurred. This was caused by an error in the <code>unbox()</code> function in the custom Exception class. It has now been fixed. </p>
<p>If you were using custom Error Exceptions, then please re-generate your PHP SDKs to get the fix.</p>
<h2>Details</h2>
<p>The new code for unboxing response in custom Exception models looks like this:</p>
<pre><code class="language-php">public function unbox()
{
    APIHelper::deserialize(self::getResponseBody(), $this, false, false);
}
</code></pre>
<p>Instead of the custom mapping logic, we use <code>APIHelper::deserialize</code> helper to deserialize the response correctly.</p>
]]></content:encoded>
      <category>Bug Fix</category>
      <category>PHP</category>
    </item>
    <item>
      <title>NodeJS SDK Improvement &amp; Superagent Client Bug Fix</title>
      <link>https://docs.apimatic.io/changelog/node-improvements-changelog</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/node-improvements-changelog</guid>
      <pubDate>Wed, 04 Jan 2017 11:28:58 GMT</pubDate>
      <description>Code styling within NodeJS SDKs is now improved. For everyone using our Node SDK with Superagent as the HTTP Client, there was a bug in the handling of response when response type is binary. It has been fixed so you can get the bug-fix by generating the SDK again.</description>
      <content:encoded><![CDATA[<p>Code styling within NodeJS SDKs is now improved. 
For everyone using our Node SDK with <code>Superagent</code> as the HTTP Client, there was a bug in the handling of response when response type is <code>binary</code>. It has been fixed so you can get the bug-fix by generating the SDK again.</p>
<ul>
<li>We have been working on improving the quality of code in our generated SDKs. Code in our NodeJS SDK has improved and is better than before!</li>
<li>For people who were using <code>Superagent</code> HTTP Client with our SDKs, <code>binary</code> response type endpoints now work totally fine (we encountered a bug previously). </li>
<li>For everyone who was using our generated test-cases, tests were failing for <code>binary</code> and <code>file</code> type endpoints (with superagent client). That bug has been fixed as well.</li>
</ul>
]]></content:encoded>
      <category>Improvement</category>
      <category>NodeJS</category>
    </item>
    <item>
      <title>Object Instantiation for Custom Types Improved</title>
      <link>https://docs.apimatic.io/changelog/model-object-instantiation-fix</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/model-object-instantiation-fix</guid>
      <pubDate>Wed, 04 Jan 2017 08:39:40 GMT</pubDate>
      <description>Object Instantiation in Custom Types files have now been improved. Only those properties (of the object) that are set in client code will be initialized and instantiated in the SDK. This will prevent any property from being undefined</description>
      <content:encoded><![CDATA[<p>Object Instantiation in Custom Types files have now been improved. Only those properties (of the object) that are set in client code will be initialized and instantiated in the SDK. This will prevent any property from being <code>undefined</code></p>
<p>Whenever a Custom Type (model) is initialized in client code, an object (which assigns values to different properties/fields of this Custom Type) is optionally passed in. Whichever properties of those object are set in the client code will be initialized in the SDK. The rest of the properties of that Custom Type will be set to <code>null</code></p>
]]></content:encoded>
      <category>Bug Fix</category>
      <category>NodeJS</category>
    </item>
    <item>
      <title>`_httpContext` Undefined Issue Resolved</title>
      <link>https://docs.apimatic.io/changelog/httpcontext-undefined-issue</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/httpcontext-undefined-issue</guid>
      <pubDate>Tue, 03 Jan 2017 13:25:31 GMT</pubDate>
      <description>A logical error in the PHP SDKs being generated lead to a variable, _httpContext, being undefined in some cases. This resulted in a Fatal error when an APIException was expected to be thrown.</description>
      <content:encoded><![CDATA[<p>A logical error in the PHP SDKs being generated lead to a variable, <code>_httpContext</code>, being undefined in some cases. This resulted in a Fatal error when an <code>APIException</code> was expected to be thrown. </p>
<p>Please regenerate your PHP SDK to get the bug fix.</p>
<h2>Details</h2>
<p>The PHP interpreter reported this problem as something like</p>
<pre><code class="language-shell">Notice: Undefined variable _httpContext in ...
Fatal error: Call to a member function getResponse() on null in ...
</code></pre>
<p>This was due to <code>_httpContext</code> being defined in an <code>if</code> block, which was a logical error. Regenerating your PHP SDK should fix this bug.</p>
]]></content:encoded>
      <category>Bug Fix</category>
      <category>PHP</category>
    </item>
    <item>
      <title>Python Circular Reference Fixed</title>
      <link>https://docs.apimatic.io/changelog/python-circular-reference-fixed</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/python-circular-reference-fixed</guid>
      <pubDate>Tue, 03 Jan 2017 13:25:31 GMT</pubDate>
      <description>A circular reference problem was fixed in the Python SDKs. This should have only existed if your API description had a DateTime property in a model.</description>
      <content:encoded><![CDATA[<p>A circular reference problem was fixed in the Python SDKs. This should have only existed if your API description had a DateTime property in a model.</p>
<p>Please regenerate your Python SDK to get the bug fix.</p>
<h2>Details</h2>
<p>The api_helper module in Python SDKs imported the base_model module and the api_helper module was, in some cases, imported in modules which imported the base_model module. This caused a circular reference which we have now fixed.</p>
<p>The Python interpreter reported this problem as something like:</p>
<pre><code>ImportError: cannot import name &lt;ModelName&gt;
</code></pre>
]]></content:encoded>
      <category>Bug Fix</category>
      <category>Python</category>
    </item>
    <item>
      <title>Ruby Syntax Error Fixed</title>
      <link>https://docs.apimatic.io/changelog/ruby-syntax-error-fixed</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/ruby-syntax-error-fixed</guid>
      <pubDate>Tue, 03 Jan 2017 13:25:31 GMT</pubDate>
      <description>An unexpected additional ')' existed in the generated Ruby code if the SDK had a Datetime property in a model. The syntax error was eliminated by removing this bracket.</description>
      <content:encoded><![CDATA[<p>An unexpected additional &#39;)&#39; existed in the generated Ruby code if the SDK had a Datetime property in a model. 
The syntax error was eliminated by removing this bracket.</p>
<p>Please regenerate your Ruby SDK to get the bug fix.</p>
<h2>Details</h2>
<p>The Ruby interpreter reported this problem as something like:</p>
<pre><code class="language-shell">syntax error, unexpected &#39;)&#39;, expecting keyword_end
</code></pre>
]]></content:encoded>
      <category>Bug Fix</category>
      <category>Ruby</category>
    </item>
    <item>
      <title>Multiple Base URLs Now Supported</title>
      <link>https://docs.apimatic.io/changelog/multiple-base-urls-now-supported</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/multiple-base-urls-now-supported</guid>
      <pubDate>Tue, 03 Jan 2017 12:49:20 GMT</pubDate>
      <description>You can now use multiple base URLs in your API description using the new Server Configuration. This feature allows you to</description>
      <content:encoded><![CDATA[<p>You can now use multiple base URLs in your API description using the new <a href="https://docs.apimatic.io/define-apis/server-configuration"><strong>Server Configuration</strong></a>. This feature allows you to </p>
<ul>
<li>Vary the Base URL between endpoints.</li>
<li>Create multiple <em>Environments</em> and define different Base URLs for them.</li>
<li>Templatize Base URL to allow for configuration using parameters in the client.</li>
</ul>
<p>The Server Configuration can be accessed in the editor from</p>
<p><img src="https://docs.apimatic.io/images/changelog/chrome_2017-01-03_18-09-38.png" alt="screenshot server configuration"></p>
<p>Click here to read the <a href="https://docs.apimatic.io/define-apis/server-configuration">documentation for Server Configuration</a>.</p>
]]></content:encoded>
      <category>New Feature</category>
      <category>PHP</category>
      <category>CSharp</category>
      <category>NodeJS</category>
      <category>AngularJS</category>
      <category>Obj-C</category>
      <category>Python</category>
      <category>Ruby</category>
      <category>Android</category>
      <category>Java</category>
      <category>Go</category>
    </item>
    <item>
      <title>AngularJS SDKs Revamped</title>
      <link>https://docs.apimatic.io/changelog/angularjs-sdks-revamped</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/angularjs-sdks-revamped</guid>
      <pubDate>Tue, 03 Jan 2017 12:23:36 GMT</pubDate>
      <description>Today, we are announcing a major revamp of our AngularJS SDK Code Generation, which includes</description>
      <content:encoded><![CDATA[<p>Today, we are announcing a major revamp of our AngularJS SDK Code Generation, which includes</p>
<ul>
<li>Improvement in JS code styling.</li>
<li>Enforce usage of AngularJS&#39;s own dependency injection system and avoid creating globals.</li>
<li>Wrapping all code in <a href="https://developer.mozilla.org/en-US/docs/Glossary/IIFE">IIFE</a> to avoid polluting global namespace.</li>
<li>All code is now minification safe.</li>
</ul>
<h2>Detailed Changes</h2>
<ul>
<li>Improved code styling and indentation in multiple files.</li>
<li>The <code>HttpContext</code>, <code>HttpResponse</code> and <code>HttpContext</code> classes will now be injected using AngularJS&#39;s DI. Previously, they were declared globally.</li>
<li>All code is now wrapped in IIFE and depends only on the <code>angular</code> global being present.</li>
<li>All AngularJS module dependencies are now being declared in a minification-safe way.</li>
</ul>
]]></content:encoded>
      <category>Improvement</category>
      <category>AngularJS</category>
    </item>
    <item>
      <title>We now have a changelog!</title>
      <link>https://docs.apimatic.io/changelog/we-now-have-a-changelog</link>
      <guid isPermaLink="false">https://docs.apimatic.io/changelog/we-now-have-a-changelog</guid>
      <pubDate>Fri, 09 Dec 2016 11:15:09 GMT</pubDate>
      <description>Starting today, we are going to maintain an awesome Changelog for APIMATIC. :)</description>
      <content:encoded><![CDATA[<p>Starting today, we are going to maintain an awesome Changelog for APIMATIC. :)</p>
<p>Follow this changelog to stay up-to-date with</p>
<ul>
<li>New Features</li>
<li>Bug Fixes</li>
<li>Improvements</li>
</ul>
<p>A separate changelog for each platform also available at url:</p>
<pre><code class="language-shell">https://docs.apimatic.io/changelog-by-platform/PLATFORM_NAME/
</code></pre>
<p>You can follow the XML feed for the changelog at:</p>
<ul>
<li><a href="https://docs.apimatic.io/changelog/index.xml">https://docs.apimatic.io/changelog/index.xml</a></li>
<li><a href="https://docs.apimatic.io/changelog-by-platform/PLATFORM_NAME/index.xml">https://docs.apimatic.io/changelog-by-platform/PLATFORM_NAME/index.xml</a></li>
</ul>
]]></content:encoded>
      <category>New Feature</category>
    </item>
  </channel>
</rss>
