Skip to content

Commit

Permalink
Add comments endpoint schema
Browse files Browse the repository at this point in the history
  • Loading branch information
hellcp-work committed Apr 27, 2023
1 parent 479c9fe commit c5e21cb
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/api/public/apidocs-new/components/schemas/comment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
type: object
properties:
id:
type: integer
xml:
attribute: true
who:
type: string
xml:
attribute: true
when:
type: string
xml:
attribute: true
# This schema is incomplete due to https://github.com/OAI/OpenAPI-Specification/issues/630,
# comment element should have content
20 changes: 20 additions & 0 deletions src/api/public/apidocs-new/components/schemas/comments.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
type: object
properties:
comment:
type: array
items:
$ref: 'comment.yaml'
request:
type: integer
xml:
attribute: true
package:
type: string
xml:
attribute: true
project:
type: string
xml:
attribute: true
xml:
name: comments

0 comments on commit c5e21cb

Please sign in to comment.