Skip to content

Commit

Permalink
fix swagger resource object references and update resourceType enum v…
Browse files Browse the repository at this point in the history
…alues
  • Loading branch information
ShadowOfTheSpace committed Dec 19, 2024
1 parent 4aaa3d2 commit ada86bd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docs/cooperation/cooperation-schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -184,13 +184,18 @@ definitions:
properties:
resource:
type: object
additionalProperties: true
oneOf:
- $ref: '#/definitions/lesson'
- $ref: '#/definitions/quiz'
- $ref: '#/definitions/attachment'
- $ref: '#/definitions/question'
resourceType:
type: string
enum:
- lesson
- quiz
- attachment
- question
availability:
type: object
properties:
Expand Down

0 comments on commit ada86bd

Please sign in to comment.