mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-02 00:39:16 +00: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
|
@ -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