mirror of
https://github.com/h44z/wg-portal.git
synced 2025-09-14 06:51:15 +00:00
api: fix ExpiredAt format (#368)
This commit is contained in:
@@ -1471,14 +1471,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"models.ExpiryDate": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"time.Time": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"models.Interface": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
@@ -1798,11 +1790,7 @@
|
||||
},
|
||||
"ExpiresAt": {
|
||||
"description": "ExpiresAt is the expiry date of the peer in YYYY-MM-DD format. An expired peer is not able to connect.",
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/definitions/models.ExpiryDate"
|
||||
}
|
||||
]
|
||||
"type": "string"
|
||||
},
|
||||
"ExtraAllowedIPs": {
|
||||
"description": "ExtraAllowedIPs is a list of additional allowed IP subnets for the peer. These allowed IP subnets are added on the server side.",
|
||||
|
@@ -42,11 +42,6 @@ definitions:
|
||||
description: Error message.
|
||||
type: string
|
||||
type: object
|
||||
models.ExpiryDate:
|
||||
properties:
|
||||
time.Time:
|
||||
type: string
|
||||
type: object
|
||||
models.Interface:
|
||||
properties:
|
||||
Addresses:
|
||||
@@ -306,10 +301,9 @@ definitions:
|
||||
- $ref: '#/definitions/models.ConfigOption-string'
|
||||
description: EndpointPublicKey is the endpoint public key.
|
||||
ExpiresAt:
|
||||
allOf:
|
||||
- $ref: '#/definitions/models.ExpiryDate'
|
||||
description: ExpiresAt is the expiry date of the peer in YYYY-MM-DD format.
|
||||
An expired peer is not able to connect.
|
||||
type: string
|
||||
ExtraAllowedIPs:
|
||||
description: ExtraAllowedIPs is a list of additional allowed IP subnets for
|
||||
the peer. These allowed IP subnets are added on the server side.
|
||||
|
Reference in New Issue
Block a user