Skip to content

Commit

Permalink
Add hidden version base id (TykTechnologies#4383)
Browse files Browse the repository at this point in the history
  • Loading branch information
furkansenharputlu authored Nov 3, 2022
1 parent be0b657 commit f86b66b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apidef/api_definitions.go
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,7 @@ type VersionDefinition struct {
StripPath bool `bson:"strip_path" json:"strip_path"` // Deprecated. Use StripVersioningData instead.
StripVersioningData bool `bson:"strip_versioning_data" json:"strip_versioning_data"`
Versions map[string]string `bson:"versions" json:"versions"`
BaseID string `bson:"base_id" json:"-"` // json tag is `-` because we want this to be hidden to user
}

type VersionData struct {
Expand Down Expand Up @@ -658,6 +659,9 @@ type APIDefinition struct {

// IsOAS is set to true when API has an OAS definition (created in OAS or migrated to OAS)
IsOAS bool `bson:"is_oas" json:"is_oas,omitempty"`

VersionChangeActions map[string]string `bson:"-" json:"-"`
ExistingAPI *APIDefinition `bson:"-" json:"-"`
}

type AnalyticsPluginConfig struct {
Expand Down

0 comments on commit f86b66b

Please sign in to comment.