mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-23 11:01:49 +01:00
Merge pull request '[API] [SEMVER] replace number with version' (#548) from dachary/forgejo:wip-semver into forgejo-development
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/548
This commit is contained in:
commit
9e74216359
4 changed files with 4 additions and 4 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)
|
||||
}
|
||||
|
|
|
@ -64,7 +64,7 @@ export default {
|
|||
],
|
||||
forgejoswagger: [ // Forgejo swagger is OpenAPI 3.0.0 and has specific parameters
|
||||
fileURLToPath(new URL('web_src/js/standalone/forgejo-swagger.js', import.meta.url)),
|
||||
fileURLToPath(new URL('web_src/less/standalone/swagger.less', import.meta.url)),
|
||||
fileURLToPath(new URL('web_src/css/standalone/swagger.css', import.meta.url)),
|
||||
],
|
||||
swagger: [
|
||||
fileURLToPath(new URL('web_src/js/standalone/swagger.js', import.meta.url)),
|
||||
|
|
Loading…
Reference in a new issue