-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Sweep GHA Fix] The GitHub Actions run failed with... #5947
base: master
Are you sure you want to change the base?
[Sweep GHA Fix] The GitHub Actions run failed with... #5947
Conversation
PR Analysis
PR Feedback💡 General suggestions: The PR seems to be well-structured and the changes are logically grouped. However, it would be beneficial to ensure that all error messages are clear and informative. Also, it would be good to check if all possible error scenarios are covered by the error handling functions. 🤖 Code feedback:
✨ Usage guide:Overview:
With a configuration file, use the following template:
See the review usage page for a comprehensive guide on using this tool. |
API tests result - postgres15-sha256 env: success ✅ |
API tests result - mongo44-sha256 env: success ✅ |
API tests result - mongo44-murmur64 env: success ✅ |
API tests result - postgres15-murmur64 env: success ✅ |
2cc9724
to
8ca293a
Compare
Description
This pull request includes several changes to the codebase. The changes are as follows:
apidef/api_definitions.go
file, theInternalMeta
struct has been modified to include a new fieldDisabled
and the existing fieldsPath
andMethod
have been reordered.apidef/oas/internal.go
has been added, which contains theInternal
struct and two methodsFill
andExtractTo
to fill and extract data fromapidef.InternalMeta
.apidef/oas/oas_test.go
file, a new test case has been added to test theDisabled
field inapidef.InternalMeta
.apidef/oas/operation.go
file, theOperation
struct has been modified to include a new fieldInternal
of typeInternal
.apidef/oas/operation_test.go
file, a new test case has been added to test theInternal
field inOperation
.apidef/oas/schema/x-tyk-api-gateway.json
file, a new definitionX-Tyk-Internal
has been added to represent theInternal
field in theOperation
struct.bin/ci-swagger.sh
file, the script has been updated to handle errors and display appropriate error messages.bin/error_handling.sh
has been added, which contains functions to display error messages and exit the script with an error code.gateway/api_definition.go
file, thecompileInternalPathspathSpec
function has been updated to skip disabled internal paths.Summary
apidef/api_definitions.go
to reorder fields inInternalMeta
struct and addDisabled
field.apidef/oas/internal.go
to defineInternal
struct and methods to fill and extract data.apidef/oas/oas_test.go
to testDisabled
field inInternalMeta
.apidef/oas/operation.go
to addInternal
field inOperation
struct.apidef/oas/operation_test.go
to testInternal
field inOperation
.apidef/oas/schema/x-tyk-api-gateway.json
to includeX-Tyk-Internal
definition.bin/ci-swagger.sh
to handle errors and display error messages.bin/error_handling.sh
to provide error handling functions.gateway/api_definition.go
to skip disabled internal paths incompileInternalPathspathSpec
function.