mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-25 08:59:31 -05:00
[API] [SEMVER] replace number with version
This commit is contained in:
parent
411bc5ac69
commit
fba48e6497
3 changed files with 3 additions and 3 deletions
|
@ -35,6 +35,6 @@ components:
|
|||
Version:
|
||||
type: object
|
||||
properties:
|
||||
number:
|
||||
version:
|
||||
type: string
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ import (
|
|||
|
||||
// Version defines model for Version.
|
||||
type Version struct {
|
||||
Number *string `json:"number,omitempty"`
|
||||
Version *string `json:"version,omitempty"`
|
||||
}
|
||||
|
||||
// ServerInterface represents all server handlers.
|
||||
|
|
|
@ -21,5 +21,5 @@ func TestAPIForgejoVersion(t *testing.T) {
|
|||
|
||||
var version v1.Version
|
||||
DecodeJSON(t, resp, &version)
|
||||
assert.Equal(t, "development", *version.Number)
|
||||
assert.Equal(t, "development", *version.Version)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue