nwestfall / openapi-action Goto Github PK
View Code? Open in Web Editor NEWUses 'openapi-core' to generate lint errors/warnings and show as checks in GitHub Actions
Uses 'openapi-core' to generate lint errors/warnings and show as checks in GitHub Actions
Hello,
Got error when trying to validate open api spec file:
Warning: Unexpected input(s) 'file', valid inputs are ['github_token']
Run nwestfall/[email protected]
(node:8963) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'value' of undefined
at getAstNodeByPointer (/home/runner/work/_actions/nwestfall/openapi-action/v1.0.1/dist/index.js:2454:34)
at getLineColLocation (/home/runner/work/_actions/nwestfall/openapi-action/v1.0.1/dist/index.js:2393:21)
at exec (/home/runner/work/_actions/nwestfall/openapi-action/v1.0.1/dist/index.js:2490:22)
(node:8963) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:8963) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Error can be seen here https://github.com/kubeshop/testkube/runs/4005995628?check_suite_focus=true
Action is configured as follows:
- name: OpenAPI Lint Checks
uses: nwestfall/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
file: api/v1/testkube.yaml
(or here is path to file: https://github.com/kubeshop/testkube/blob/dcdb3d55ef9eeb30d36716a9c950efa7c0720dfe/.github/workflows/test.yml )
What should I configure to make it work ?
Hi
i want to use the latest feature on main but with version to relay on (and not nwestfall/openapi-action@main)
can you please release new action version with the new changes (e.g use config file )
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.