UNPKG

openapi-path-templating

Version:

OpenAPI Path Templating parser, validator, resolver and matcher.

14 lines (13 loc) 567 B
"use strict"; exports.__esModule = true; exports.default = void 0; var _apgLite = require("../../apg-lite.cjs"); const templateExpressionParamName = (state, chars, phraseIndex, phraseLength, data) => { if (state === _apgLite.identifiers.SEM_PRE) { data.push(['template-expression-param-name', _apgLite.utilities.charsToString(chars, phraseIndex, phraseLength)]); } else if (state === _apgLite.identifiers.SEM_POST) { /* not used in this example */ } return _apgLite.identifiers.SEM_OK; }; var _default = exports.default = templateExpressionParamName;