Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

TT-12269 Remove api_definition field from dump command's output for OAS APIs #158

Merged
merged 38 commits into from
Jul 2, 2024

Conversation

buraksekili
Copy link
Member

Description

This PR removes api_definition if the dump command dumps OAS APIs. For OAS APIs, the dump command's output will only contain oas field to make it align with Tyk Dashboard.

Related Issue

https://tyktech.atlassian.net/browse/TT-12269

Motivation and Context

Test Coverage For This Change

Screenshots (if appropriate)

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • Make sure you are requesting to pull a topic/feature/bugfix branch (right side). If PRing from your fork, don't come from your master!
  • Make sure you are making a pull request against our master branch (left side). Also, it would be best if you started your change off our latest master.
  • My change requires a change to the documentation.
    • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • Check your code additions will not fail linting checks:
    • gofmt -s -w .
    • go vet ./...
    • golangci-lint run

IF API Definition represents OAS APIs. The reason of this change is that
`api_definition` field in the output of OAS is redundant for OAS APIs
which only needs `oas` field.

Signed-off-by: Burak Sekili <buraksekili@gmail.com>
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
TykSpec

Signed-off-by: Burak Sekili <buraksekili@gmail.com>
@buraksekili buraksekili requested a review from a team as a code owner June 6, 2024 09:53
@buraksekili buraksekili requested review from olamilekan000 and removed request for a team June 6, 2024 09:53
cmd/dump.go Outdated Show resolved Hide resolved
cmd/dump.go Outdated Show resolved Hide resolved
cmd/dump.go Outdated Show resolved Hide resolved
tyk-vcs/getter.go Outdated Show resolved Hide resolved
buraksekili and others added 10 commits June 6, 2024 14:55
Co-authored-by: Komal Sukhani <komaldsukhani@gmail.com>
Co-authored-by: Komal Sukhani <komaldsukhani@gmail.com>
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
…kTechnologies/tyk-sync into feat/TT-12269/remove-redundant-fields
or OAS)

Signed-off-by: Burak Sekili <buraksekili@gmail.com>
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
…ition

Signed-off-by: Burak Sekili <buraksekili@gmail.com>
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
clients/dashboard/apis.go Outdated Show resolved Hide resolved
clients/dashboard/apis.go Outdated Show resolved Hide resolved
clients/dashboard/apis.go Show resolved Hide resolved
clients/objects/apidef.go Outdated Show resolved Hide resolved
tyk-vcs/getter.go Outdated Show resolved Hide resolved
clients/dashboard/apis.go Outdated Show resolved Hide resolved
clients/dashboard/apis.go Outdated Show resolved Hide resolved
clients/dashboard/apis.go Outdated Show resolved Hide resolved
clients/dashboard/apis.go Outdated Show resolved Hide resolved
clients/dashboard/apis.go Outdated Show resolved Hide resolved
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
Copy link

sonarqubecloud bot commented Jul 2, 2024

@ilijabojanovic ilijabojanovic merged commit 03b4aed into master Jul 2, 2024
19 checks passed
@ilijabojanovic ilijabojanovic deleted the feat/TT-12269/remove-redundant-fields branch July 2, 2024 12:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants