mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-08 18:04:14 +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:
|
Version:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
number:
|
version:
|
||||||
type: string
|
type: string
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@ import (
|
||||||
|
|
||||||
// Version defines model for Version.
|
// Version defines model for Version.
|
||||||
type Version struct {
|
type Version struct {
|
||||||
Number *string `json:"number,omitempty"`
|
Version *string `json:"version,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ServerInterface represents all server handlers.
|
// ServerInterface represents all server handlers.
|
||||||
|
|
|
@ -21,5 +21,5 @@ func TestAPIForgejoVersion(t *testing.T) {
|
||||||
|
|
||||||
var version v1.Version
|
var version v1.Version
|
||||||
DecodeJSON(t, resp, &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
|
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/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: [
|
swagger: [
|
||||||
fileURLToPath(new URL('web_src/js/standalone/swagger.js', import.meta.url)),
|
fileURLToPath(new URL('web_src/js/standalone/swagger.js', import.meta.url)),
|
||||||
|
|
Loading…
Reference in a new issue