Skip to content

Commit 1a68790

Browse files
Update ReSpec versions
Signed-off-by: GitHub <[email protected]>
1 parent ea03525 commit 1a68790

File tree

2 files changed

+46
-28
lines changed

2 files changed

+46
-28
lines changed

arazzo/latest.html

Lines changed: 23 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@
228228
</code></pre>
229229
</section></section><section><h3>Source Description Object</h3>
230230
<p>Describes a source description (such as an OpenAPI description) that will be referenced by one or more workflows described within an Arazzo Description.</p>
231-
<p>An object storing a map between named description keys and location URLs to the source descriptions (such as an OpenAPI description) this Arazzo Description SHALL apply to. Each source location <code>string</code> MUST be in the form of a URI-reference as defined by <a href="https://datatracker.ietf.org/doc/html/rfc3986#section-4.1">RFC3986 section 4.1</a>.</p>
231+
<p>An object storing a map between named description keys and location URLs to the source descriptions (such as an OpenAPI description) this Arazzo Description SHALL apply to. Each source location <code>string</code> MUST be in the form of a URI-reference as defined by [[!RFC3986]].</p>
232232
<section><h4>Fixed Fields</h4>
233233
<table>
234234
<thead>
@@ -247,7 +247,7 @@
247247
<tr>
248248
<td><a id="sourceURL"> </a>url</td>
249249
<td style="text-align:center"><code>string</code></td>
250-
<td><strong>REQUIRED</strong>. A URL to a source description to be used by a workflow. If a relative reference is used, it MUST be in the form of a URI-reference as defined by <a href="https://datatracker.ietf.org/doc/html/rfc3986#section-4.2">RFC3986 section 4.2</a>.</td>
250+
<td><strong>REQUIRED</strong>. A URL to a source description to be used by a workflow. If a relative reference is used, it MUST be in the form of a URI-reference as defined by [[!RFC3986]].</td>
251251
</tr>
252252
<tr>
253253
<td><a id="sourceType"> </a>type</td>
@@ -363,7 +363,7 @@
363363
<span class="hljs-attr">tokenExpires:</span> <span class="hljs-string">$steps.loginStep.outputs.tokenExpires</span>
364364
</code></pre>
365365
</section></section><section><h3>Step Object</h3>
366-
<p>Describes a single workflow step which MAY be a call to an API operation (<a href="https://spec.openapis.org/oas/latest.html#operation-object">OpenAPI Operation Object</a> or another <a href="#workflow-object">Workflow Object</a>.</p>
366+
<p>Describes a single workflow step which MAY be a call to an API operation (<a href="https://spec.openapis.org/oas/latest.html#operation-object">OpenAPI Operation Object</a> or another <a href="#workflow-object">Workflow Object</a>).</p>
367367
<section><h4>Fixed Fields</h4>
368368
<table>
369369
<thead>
@@ -594,7 +594,7 @@
594594
<span class="hljs-comment"># assertions to determine if this success action should be executed</span>
595595
<span class="hljs-bullet">-</span> <span class="hljs-attr">context:</span> <span class="hljs-string">$response.body</span>
596596
<span class="hljs-attr">condition:</span> <span class="hljs-string">$[?count(@.pets)</span> <span class="hljs-string">&gt;</span> <span class="hljs-number">0</span><span class="hljs-string">]</span>
597-
<span class="hljs-attr">type:</span> <span class="hljs-string">JSONPath</span>
597+
<span class="hljs-attr">type:</span> <span class="hljs-string">jsonpath</span>
598598
</code></pre>
599599
</section></section><section><h3>Failure Action Object</h3>
600600
<p>A single failure action which describes an action to take upon failure of a workflow step. There are three possible values for the <code>type</code> field.</p>
@@ -636,7 +636,7 @@
636636
<tr>
637637
<td><a id="failureRetryAfter"> </a> retryAfter</td>
638638
<td style="text-align:center"><code>number</code></td>
639-
<td>A non-negative decimal indicating the seconds to delay after the step failure before another attempt SHALL be made. <strong>Note:</strong> if an HTTP <a href="https://www.rfc-editor.org/rfc/rfc9110.html#name-retry-after">Retry-After</a> response header was returned to a step from a targeted operation, then it SHOULD overrule this particular field value. This field only applies when the <code>type</code> field value is <code>&quot;retry&quot;</code> or <code>&quot;function&quot;</code>.</td>
639+
<td>A non-negative decimal indicating the seconds to delay after the step failure before another attempt SHALL be made. <strong>Note:</strong> if an HTTP <a href="https://tools.ietf.org/html/rfc9110.html#name-retry-after">Retry-After</a> response header was returned to a step from a targeted operation, then it SHOULD overrule this particular field value. This field only applies when the <code>type</code> field value is <code>&quot;retry&quot;</code> or <code>&quot;function&quot;</code>.</td>
640640
</tr>
641641
<tr>
642642
<td><a id="failureRetryLimit"> </a> retryLimit</td>
@@ -788,6 +788,11 @@
788788
</thead>
789789
<tbody>
790790
<tr>
791+
<td><a id="reusableObjectReference"> </a>reference</td>
792+
<td style="text-align:center"><code>{expression}</code></td>
793+
<td><strong>REQUIRED</strong>. A <a href="#runtime-expressions">runtime expression</a> used to reference the desired object.</td>
794+
</tr>
795+
<tr>
791796
<td><a id="reusableObjectValue"> </a>value</td>
792797
<td style="text-align:center"><code>string</code></td>
793798
<td>Sets a value of the referenced parameter. This is only applicable for parameter object references.</td>
@@ -820,7 +825,7 @@
820825
<ul>
821826
<li>simple - where basic literals, operators, and loose comparisons are used in combination with <a href="#runtime-expressions">Runtime Expressions</a>.</li>
822827
<li>regex - where a regex pattern is applied on the supplied context. The context is defined by a <a href="#runtime-expressions">Runtime Expression</a>.</li>
823-
<li>jsonpath - where a JSON Path expression is applied. The root node context is defined by a <a href="#runtime-expressions">Runtime Expression</a>.</li>
828+
<li>jsonpath - where a JSONPath expression is applied. The root node context is defined by a <a href="#runtime-expressions">Runtime Expression</a>.</li>
824829
<li>xpath - where an XPath expression is applied. The root node context is defined by a <a href="#runtime-expressions">Runtime Expression</a>.</li>
825830
</ul>
826831
<section><h4>Literals</h4>
@@ -929,12 +934,12 @@
929934
<tr>
930935
<td><a id="criterionCondition"> </a>condition</td>
931936
<td style="text-align:center"><code>string</code></td>
932-
<td><strong>REQUIRED</strong>. The condition to apply. Conditions can be simple (e.g. <code>$statusCode == 200</code> which applies a operator on a value obtained from a runtime expression), or a regex, or a JSONPath expression. For regex and <a href="https://datatracker.ietf.org/doc/draft-ietf-jsonpath-base/21/">JSONPath</a>, the <code>type</code> and <code>context</code> MUST be specified.</td>
937+
<td><strong>REQUIRED</strong>. The condition to apply. Conditions can be simple (e.g. <code>$statusCode == 200</code> which applies an operator on a value obtained from a runtime expression), or a regex, or a JSONPath expression. For regex or JSONPath, the <code>type</code> and <code>context</code> MUST be specified.</td>
933938
</tr>
934939
<tr>
935940
<td><a id="criterionType"> </a>type</td>
936941
<td style="text-align:center"><code>string</code> | <a href="#criterion-expression-type-object">Criterion Expression Type Object</a></td>
937-
<td>The type of condition to be applied. If specified, the options allowed are <code>simple</code>, <code>regex</code>, <code>jsonpath</code> or <code>xpath</code>. If omitted, then the condition is assumed to be <code>simple</code>, which at most combines literals, operators and <a href="#runtime-expressions">Runtime Expressions</a>. If <code>jsonpath</code>, then the expression MUST conform to <a href="https://www.rfc-editor.org/rfc/rfc9535.html">JSON Path</a>. If <code>xpath</code> the expression MUST conform to <a href="https://www.w3.org/TR/xpath-31/#d2e24229">XML Path Language 3.1</a>. Should other variants of JSON Path or XPath be required, then a <a href="#criterion-expression-type-object">Criterion Expression Type Object</a> MUST be specified.</td>
942+
<td>The type of condition to be applied. If specified, the options allowed are <code>simple</code>, <code>regex</code>, <code>jsonpath</code> or <code>xpath</code>. If omitted, then the condition is assumed to be <code>simple</code>, which at most combines literals, operators and <a href="#runtime-expressions">Runtime Expressions</a>. If <code>jsonpath</code>, then the expression MUST conform to <a href="https://tools.ietf.org/html/rfc9535">JSONPath</a>. If <code>xpath</code> the expression MUST conform to <a href="https://www.w3.org/TR/xpath-31/#d2e24229">XML Path Language 3.1</a>. Should other variants of JSONPath or XPath be required, then a <a href="#criterion-expression-type-object">Criterion Expression Type Object</a> MUST be specified.</td>
938943
</tr>
939944
</tbody>
940945
</table>
@@ -959,10 +964,10 @@
959964
</section></section><section><h3>Criterion Expression Type Object</h3>
960965
<p>An object used to describe the type and version of an expression used within a <a href="#criterion-object">Criterion Object</a>. If this object is not defined, then the following defaults apply:</p>
961966
<ul>
962-
<li>JSON Path as described by <a href="https://www.rfc-editor.org/rfc/rfc9535.html">[!RFC9535]</a></li>
967+
<li>JSONPath as described by [[!RFC9535]]</li>
963968
<li>XPath as described by <a href="https://www.w3.org/TR/xpath-31">XML Path Language 3.1</a></li>
964969
</ul>
965-
<p>Defining this object gives the ability to utilize tooling compatible with older versions of either JSON Path or XPath.</p>
970+
<p>Defining this object gives the ability to utilize tooling compatible with older versions of either JSONPath or XPath.</p>
966971
<h5>Fixed Fields</h5>
967972
<table>
968973
<thead>
@@ -981,13 +986,13 @@ <h5>Fixed Fields</h5>
981986
<tr>
982987
<td><a id="criterionExpressionVersion"> </a>version</td>
983988
<td style="text-align:center"><code>string</code></td>
984-
<td><strong>REQUIRED</strong>. A short hand string representing the version of the expression type being used. The allowed values for JSON Path are <code>draft-goessner-dispatch-jsonpath-00</code>. The allowed values for XPath are <code>xpath-30</code>, <code>xpath-20</code>, or <code>xpath-10</code>.</td>
989+
<td><strong>REQUIRED</strong>. A short hand string representing the version of the expression type being used. The allowed values for JSONPath are <code>draft-goessner-dispatch-jsonpath-00</code>. The allowed values for XPath are <code>xpath-30</code>, <code>xpath-20</code>, or <code>xpath-10</code>.</td>
985990
</tr>
986991
</tbody>
987992
</table>
988993
<p>This object MAY be extended with <a href="#specification-extensions">Specification Extensions</a>.</p>
989994
<section><h4>Criterion Expression Type Example</h4>
990-
<p><strong>JSON Path Example</strong></p>
995+
<p><strong>JSONPath Example</strong></p>
991996
<pre class="nohighlight"><code>
992997
<span class="hljs-attr">type:</span> <span class="hljs-string">jsonpath</span>
993998
<span class="hljs-attr">version:</span> <span class="hljs-string">draft-goessner-dispatch-jsonpath-00</span>
@@ -1019,9 +1024,13 @@ <h5>Fixed Fields</h5>
10191024
<td style="text-align:center">Any</td>
10201025
<td>A value representing the request body payload. The value can be a literal value or can contain <a href="#runtime-expressions">Runtime Expressions</a> which MUST be evaluated prior to calling the referenced operation. To represent examples of media types that cannot be naturally represented in JSON or YAML, use a string value to contain the example, escaping where necessary.</td>
10211026
</tr>
1027+
<tr>
1028+
<td><a id="requestBodyReplacements"> </a>replacements</td>
1029+
<td style="text-align:center">[<a href="#payload-replacement-object">Payload Replacement Object</a>]</td>
1030+
<td>A list of locations and values to set within a payload.</td>
1031+
</tr>
10221032
</tbody>
10231033
</table>
1024-
<p><a id="requestBodyReplacements"> </a>replacements | [<a href="#payload-replacement-object">Payload Replacement Object</a>] | A list of locations and values to set within a payload.</p>
10251034
<p>This object MAY be extended with <a href="#specification-extensions">Specification Extensions</a>.</p>
10261035
</section><section><h4>RequestBody Object Example</h4>
10271036
<p><strong>JSON Templated Example</strong></p>
@@ -1225,7 +1234,7 @@ <h3>Specification Extensions</h3>
12251234
<p>The extensions may or may not be supported by the available tooling, but those may be extended as well to add requested support (if tools are internal or open-sourced).</p>
12261235
<h2>Security Considerations</h2>
12271236
<p>The Arazzo Specification does not enforce a security mechanism. Security is left to the implementer, though TLS, specifically HTTPS may be recommended for exchanging sensitive workflows.</p>
1228-
<p>Arazzo Descriptions can be JSON or YAML values. As such, all security considerations defined in <a href="https://www.rfc-editor.org/info/rfc8259">RFC 8259</a> and within YAML version <a href="https://yaml.org/spec/1.2/spec.html">1.2</a> apply.</p>
1237+
<p>Arazzo Descriptions can be JSON or YAML values. As such, all security considerations defined in <a href="https://tools.ietf.org/html/rfc8259">RFC8259</a> and within YAML version <a href="https://yaml.org/spec/1.2/spec.html">1.2</a> apply.</p>
12291238
<p>Arazzo Descriptions are frequently written by untrusted third parties, to be deployed on public Internet servers. Processing an Arazzo Description can cause both safe and unsafe operations to be performed on arbitrary network resources. It is the responsibility of the description consumer to ensure that the operations performed are not harmful.</p>
12301239
<h2>IANA Considerations</h2>
12311240
<p>The proposed MIME media types for the Arazzo Specification are described below.</p>

0 commit comments

Comments
 (0)