Skip to content

Commit

Permalink
Fix wrong schema
Browse files Browse the repository at this point in the history
  • Loading branch information
d-yoshi committed May 6, 2024
1 parent e3b629d commit e707310
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ info:
license:
name: Apache 2.0
url: https://www.apache.org/licenses/LICENSE-2.0.html
version: 0.6.3
version: 0.7.0

servers:
- url: /
Expand Down
24 changes: 22 additions & 2 deletions src/paths/search.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,43 +28,63 @@ get:
- name: all_words
in: query
schema:
type: boolean
type: integer
enum:
- 1
- name: titles_only
in: query
schema:
type: boolean
type: integer
enum:
- 1
- name: issues
in: query
schema:
type: integer
enum:
- 1
- name: news
in: query
schema:
type: integer
enum:
- 1
- name: wiki_pages
in: query
schema:
type: integer
enum:
- 1
- name: projects
in: query
schema:
type: integer
enum:
- 1
- name: documents
in: query
schema:
type: integer
enum:
- 1
- name: changesets
in: query
schema:
type: integer
enum:
- 1
- name: messages
in: query
schema:
type: integer
enum:
- 1
- name: open_issues
in: query
schema:
type: integer
enum:
- 1
- name: attachments
in: query
schema:
Expand Down
7 changes: 6 additions & 1 deletion src/paths/time_entries.time_entry_id.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,12 @@ get:
content:
application/json:
schema:
$ref: ../components/schemas/time_entry.yml
type: object
required:
- time_entry
properties:
time_entry:
$ref: ../components/schemas/time_entry.yml

put:
tags:
Expand Down

0 comments on commit e707310

Please sign in to comment.