Skip to content

Commit

Permalink
add comment field in relation
Browse files Browse the repository at this point in the history
  • Loading branch information
jerem1508 committed Oct 16, 2023
1 parent a312693 commit 72ea763
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/api/commons/queries/relations.query.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ export default [
otherAssociatedObjectIds: { $ifNull: ['$otherAssociatedObjectIds', []] },
otherAssociatedObjects: 1,
active: { $ifNull: ['$active', null] },
comment: { $ifNull: ['$comment', null] },
},
},
];
3 changes: 3 additions & 0 deletions src/openapi/schemas/relations/relation-payload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,3 +89,6 @@ properties:
active:
type: boolean
nullable: true
comment:
type: string
nullable: true
3 changes: 3 additions & 0 deletions src/openapi/schemas/relations/relation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,7 @@ allOf:
active:
type: boolean
nullable: true
comment:
type: string
nullable: true
- $ref: '../../api.yml#/components/schemas/Metas'

0 comments on commit 72ea763

Please sign in to comment.