Skip to content

Commit

Permalink
Merge branch 'main' into parameter-defined-within-path-template
Browse files Browse the repository at this point in the history
  • Loading branch information
kowalczyk-krzysztof committed Jan 1, 2024
2 parents 971fa86 + ef51942 commit edfb653
Show file tree
Hide file tree
Showing 3 changed files with 80 additions and 79 deletions.
144 changes: 72 additions & 72 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@
],
"devDependencies": {
"@babel/cli": "=7.23.4",
"@babel/core": "=7.23.6",
"@babel/plugin-transform-runtime": "=7.23.6",
"@babel/preset-env": "=7.23.6",
"@babel/core": "=7.23.7",
"@babel/plugin-transform-runtime": "=7.23.7",
"@babel/preset-env": "=7.23.7",
"@babel/preset-typescript": "=7.23.3",
"@babel/register": "=7.22.15",
"@commitlint/cli": "=18.4.3",
Expand All @@ -65,7 +65,7 @@
"benchmark": "=2.1.4",
"chai": "=4.3.10",
"copyfiles": "=2.4.1",
"core-js": "=3.34.0",
"core-js": "=3.35.0",
"cross-env": "=7.0.3",
"dedent": "=1.5.1",
"eslint": "=8.56.0",
Expand All @@ -92,7 +92,7 @@
"rollup": "=4.9.1",
"rollup-plugin-dts": "=6.1.0",
"sinon": "=17.0.1",
"terser-webpack-plugin": "=5.3.9",
"terser-webpack-plugin": "=5.3.10",
"ts-node": "=10.9.2",
"typescript": "=5.3.3",
"webpack": "=5.89.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1074,8 +1074,9 @@ export const standardLinterfunctions: FunctionItem[] = [
function: (element: Element) => {
if (element.element === 'parameter') {
const allowedLocations = ['path', 'query'];
const parameterName = toValue((element as ObjectElement).get('name'));
const parameterLocation = toValue((element as ObjectElement).get('in'));
const parameterToValue: ObjectElement = toValue(element);
const parameterName = parameterToValue.get('name');
const parameterLocation = parameterToValue.get('in');

const isChildOfOperationElement = (el: Element): boolean =>
el.parent.parent.parent.element === 'operation';
Expand Down

0 comments on commit edfb653

Please sign in to comment.