Skip to content

Commit

Permalink
chore: update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
JingYiJun committed Aug 30, 2023
1 parent 0fa1172 commit fb2b95a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 50 deletions.
4 changes: 2 additions & 2 deletions apis/schemas.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ type TokenResponse struct {

type RegisterRequest struct {
LoginRequest
Verification VerificationType `json:"verification" swaggerType:"string"`
Verification VerificationType `json:"verification" swaggertype:"string"`
}

type RegisterInBatchRequest struct {
Expand Down Expand Up @@ -206,7 +206,7 @@ type PGPMessageResponse struct {

type UserShare struct {
UserID int `json:"user_id"`
Share shamir.Share `json:"share" swaggerType:"string"`
Share shamir.Share `json:"share" swaggertype:"string"`
}

type UploadSharesRequest struct {
Expand Down
20 changes: 2 additions & 18 deletions docs/docs.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 2 additions & 18 deletions docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -1400,9 +1400,7 @@
"minLength": 8
},
"verification": {
"type": "string",
"maxLength": 6,
"minLength": 6
"type": "string"
}
}
},
Expand Down Expand Up @@ -1559,16 +1557,13 @@
"type": "object",
"properties": {
"share": {
"$ref": "#/definitions/shamir.Share"
"type": "string"
},
"user_id": {
"type": "integer"
}
}
},
"big.Int": {
"type": "object"
},
"common.ErrorDetailElement": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -1648,17 +1643,6 @@
"type": "integer"
}
}
},
"shamir.Share": {
"type": "object",
"properties": {
"x": {
"$ref": "#/definitions/big.Int"
},
"y": {
"$ref": "#/definitions/big.Int"
}
}
}
}
}
13 changes: 1 addition & 12 deletions docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,6 @@ definitions:
minLength: 8
type: string
verification:
maxLength: 6
minLength: 6
type: string
type: object
apis.ShamirStatusResponse:
Expand Down Expand Up @@ -279,12 +277,10 @@ definitions:
apis.UserShare:
properties:
share:
$ref: '#/definitions/shamir.Share'
type: string
user_id:
type: integer
type: object
big.Int:
type: object
common.ErrorDetailElement:
properties:
field:
Expand Down Expand Up @@ -337,13 +333,6 @@ definitions:
user_id:
type: integer
type: object
shamir.Share:
properties:
x:
$ref: '#/definitions/big.Int'
"y":
$ref: '#/definitions/big.Int'
type: object
host: localhost:8000
info:
contact:
Expand Down

0 comments on commit fb2b95a

Please sign in to comment.