You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Path Templating](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#pathTemplating) allow defining values based on information that will only be available within the HTTP message in an actual API call.
11
-
This mechanism is used by [Paths Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#paths-object)
12
-
of [OpenAPI specification](https://github.com/OAI/OpenAPI-Specification).
10
+
[OpenAPI Path Templating](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#path-templating) refers to the usage of template expressions, delimited by curly braces (`{}`), to mark a section of a URL path as replaceable using path parameters.
11
+
Each template expression in the path MUST correspond to a path parameter that is included in the [Path Item](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#path-item-object) itself and/or in each of the Path Item's [Operations](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#operation-object).
12
+
An exception is if the path item is empty, for example due to ACL constraints, matching path parameters are not required.
13
13
14
-
`openapi-path-templating` is a **parser**, **validator** and **resolver** for OpenAPI Path Templating. It supports
15
-
Path Templating defined in following OpenAPI specification versions:
14
+
`openapi-path-templating` is a **parser**, **validator**, and **resolver** for OpenAPI Path Templating,
15
+
which played a [foundational role](https://github.com/OAI/OpenAPI-Specification/pull/4244) in defining the official ANBF grammar for OpenAPI Path Templating.
16
+
17
+
It supports Path Templating defined in following OpenAPI specification versions:
@@ -63,7 +65,7 @@ You can install `openapi-path-templating` using `npm`:
63
65
### Usage
64
66
65
67
`openapi-path-templating` currently supports **parsing**, **validation** and **resolution**.
66
-
Both parser and validator are based on a superset of [ABNF](https://www.rfc-editor.org/rfc/rfc5234) ([SABNF](https://cs.github.com/ldthomas/apg-js2/blob/master/SABNF.md))
68
+
Both parser and validator are based on a superset of [ABNF](https://www.rfc-editor.org/rfc/rfc5234) ([SABNF](https://github.com/ldthomas/apg-js2/blob/master/SABNF.md))
67
69
and use [apg-lite](https://github.com/ldthomas/apg-lite) parser generator.
0 commit comments