Skip to content

Commit

Permalink
feat(BE): Export route from OpenAPI Specification3.0 (#1245)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaycean authored Jan 27, 2021
1 parent fa080a8 commit 9cb9aa7
Show file tree
Hide file tree
Showing 5 changed files with 4,896 additions and 0 deletions.
6 changes: 6 additions & 0 deletions api/internal/core/entity/entity.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,12 @@ type UpstreamDef struct {
Labels map[string]string `json:"labels,omitempty"`
}

type RequestValidation struct {
Type string `json:"type,omitempty"`
Required []string `json:"required,omitempty"`
Properties interface{} `json:"properties,omitempty"`
}

// swagger:model Upstream
type Upstream struct {
BaseInfo
Expand Down
Loading

0 comments on commit 9cb9aa7

Please sign in to comment.