Skip to content

Commit c6e864f

Browse files
committed
Merge branch 'redmine-5.0.x'
2 parents cc4a28c + 5fe4a4a commit c6e864f

18 files changed

+819
-695
lines changed

openapi.yml

Lines changed: 643 additions & 589 deletions
Large diffs are not rendered by default.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
name: X-Redmine-Nometa
2+
in: header
3+
schema:
4+
type: integer
5+
enum:
6+
- 1
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
name: X-Redmine-Switch-User
2+
in: header
3+
schema:
4+
type: integer
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
name: nometa
2+
in: query
3+
schema:
4+
type: integer
5+
enum:
6+
- 1
Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
1-
allOf:
2-
- type: object
3-
required:
4-
- is_default
5-
- active
6-
properties:
7-
is_default:
8-
type: boolean
9-
active:
10-
type: boolean
11-
- $ref: ./IdName.yml
1+
type: object
2+
required:
3+
- id
4+
- name
5+
- is_default
6+
- active
7+
properties:
8+
id:
9+
type: integer
10+
name:
11+
type: string
12+
is_default:
13+
type: boolean
14+
active:
15+
type: boolean
Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
1-
allOf:
2-
- type: object
3-
required:
4-
- is_default
5-
- active
6-
properties:
7-
is_default:
8-
type: boolean
9-
active:
10-
type: boolean
11-
- $ref: ./IdName.yml
1+
type: object
2+
required:
3+
- id
4+
- name
5+
- is_default
6+
- active
7+
properties:
8+
id:
9+
type: integer
10+
name:
11+
type: string
12+
is_default:
13+
type: boolean
14+
active:
15+
type: boolean
Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
1-
allOf:
2-
- $ref: ./IdName.yml
3-
- type: object
4-
required:
5-
- is_closed
6-
properties:
7-
is_closed:
8-
type: boolean
1+
type: object
2+
required:
3+
- id
4+
- name
5+
- is_closed
6+
properties:
7+
id:
8+
type: integer
9+
name:
10+
type: string
11+
is_closed:
12+
type: boolean

src/components/schemas/Query.yml

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
1-
allOf:
2-
- type: object
3-
required:
4-
- is_public
5-
- project_id
6-
properties:
7-
is_public:
8-
type: boolean
9-
project_id:
10-
type: integer
11-
nullable: true
12-
- $ref: ./IdName.yml
1+
type: object
2+
required:
3+
- id
4+
- name
5+
- is_public
6+
- project_id
7+
properties:
8+
id:
9+
type: integer
10+
name:
11+
type: string
12+
is_public:
13+
type: boolean
14+
project_id:
15+
type: integer
16+
nullable: true

src/components/schemas/Role.yml

Lines changed: 26 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,26 @@
1-
allOf:
2-
- type: object
3-
required:
4-
- assignable
5-
- issue_visibility
6-
- time_entries_visibility
7-
- users_visibility
8-
- permissions
9-
properties:
10-
assignable:
11-
type: boolean
12-
issues_visibility:
13-
type: string
14-
time_entries_visibility:
15-
type: string
16-
users_visibility:
17-
type: string
18-
permissions:
19-
type: array
20-
items:
21-
type: string
22-
- $ref: ./IdName.yml
1+
type: object
2+
required:
3+
- id
4+
- name
5+
- assignable
6+
- issue_visibility
7+
- time_entries_visibility
8+
- users_visibility
9+
- permissions
10+
properties:
11+
id:
12+
type: integer
13+
name:
14+
type: string
15+
assignable:
16+
type: boolean
17+
issues_visibility:
18+
type: string
19+
time_entries_visibility:
20+
type: string
21+
users_visibility:
22+
type: string
23+
permissions:
24+
type: array
25+
items:
26+
type: string
Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
1-
allOf:
2-
- type: object
3-
required:
4-
- is_default
5-
- active
6-
properties:
7-
is_default:
8-
type: boolean
9-
active:
10-
type: boolean
11-
- $ref: ./IdName.yml
1+
type: object
2+
required:
3+
- id
4+
- name
5+
- is_default
6+
- active
7+
properties:
8+
id:
9+
type: integer
10+
name:
11+
type: string
12+
is_default:
13+
type: boolean
14+
active:
15+
type: boolean

src/openapi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ info:
99
license:
1010
name: Apache 2.0
1111
url: https://www.apache.org/licenses/LICENSE-2.0.html
12-
version: 0.5.0
12+
version: 0.5.1
1313

1414
servers:
1515
- url: /

src/paths/groups.group_id.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,13 @@ get:
1111
- name: include
1212
in: query
1313
schema:
14-
type: string
15-
enum:
16-
- users
17-
- memberships
14+
type: array
15+
items:
16+
type: string
17+
enum:
18+
- users
19+
- memberships
20+
explode: false
1821
responses:
1922
200:
2023
description: ""

src/paths/issues.issue_id.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,18 @@ get:
1111
- name: include
1212
in: query
1313
schema:
14-
type: string
15-
enum:
16-
- children
17-
- attachments
18-
- relations
19-
- changesets
20-
- journals
21-
- watchers
22-
- allowed_statuses
14+
type: array
15+
items:
16+
type: string
17+
enum:
18+
- children
19+
- attachments
20+
- relations
21+
- changesets
22+
- journals
23+
- watchers
24+
- allowed_statuses
25+
explode: false
2326
responses:
2427
200:
2528
description: ""

src/paths/issues.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,13 @@ get:
1616
- name: include
1717
in: query
1818
schema:
19-
type: string
20-
enum:
21-
- attachments
22-
- relations
19+
type: array
20+
items:
21+
type: string
22+
enum:
23+
- attachments
24+
- relations
25+
explode: false
2326
- name: issue_id
2427
in: query
2528
schema:

src/paths/projects.project_id.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,16 @@ get:
1111
- name: include
1212
in: query
1313
schema:
14-
type: string
15-
enum:
16-
- trackers
17-
- issue_categories
18-
- enabled_modules
19-
- time_entry_activities
14+
type: array
15+
items:
16+
type: string
17+
enum:
18+
- trackers
19+
- issue_categories
20+
- enabled_modules
21+
- time_entry_activities
22+
- issue_custom_fields
23+
explode: false
2024
responses:
2125
200:
2226
description: ""

src/paths/projects.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,16 @@ get:
1010
- name: include
1111
in: query
1212
schema:
13-
type: string
14-
enum:
15-
- trackers
16-
- issue_categories
17-
- enabled_modules
13+
type: array
14+
items:
15+
type: string
16+
enum:
17+
- trackers
18+
- issue_categories
19+
- enabled_modules
20+
- time_entry_activities
21+
- issue_custom_fields
22+
explode: false
1823
responses:
1924
200:
2025
description: ""

src/paths/users.current.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,13 @@ get:
1010
- name: include
1111
in: query
1212
schema:
13-
type: string
13+
type: array
14+
items:
15+
type: string
16+
enum:
17+
- memberships
18+
- groups
19+
explode: false
1420
responses:
1521
200:
1622
description: ""

src/paths/users.user_id.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,13 @@ get:
1111
- name: include
1212
in: query
1313
schema:
14-
type: string
14+
type: array
15+
items:
16+
type: string
17+
enum:
18+
- memberships
19+
- groups
20+
explode: false
1521
responses:
1622
200:
1723
description: ""

0 commit comments

Comments
 (0)