Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve offerings #304

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions v5/enumerations/offeringType.yaml

This file was deleted.

7 changes: 6 additions & 1 deletion v5/schemas/ComponentOffering.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
allOf:
- $ref: './Offering.yaml'
- $ref: './OfferingId.yaml'
- type: object
required:
- startDateTime
- endDateTime
properties:
offeringType:
const: component
description: The type of this offering
example: component
startDateTime:
type: string
description: The moment on which this offering starts, RFC3339 (date-time)
Expand Down Expand Up @@ -68,3 +72,4 @@ allOf:
title: organizationId
- $ref: './Organization.yaml'
title: Organization object
- $ref: './OfferingProperties.yaml'
9 changes: 7 additions & 2 deletions v5/schemas/CourseOffering.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
allOf:
- $ref: './Offering.yaml'
- $ref: './OfferingId.yaml'
- type: object
required:
- startDate
- endDate
properties:
offeringType:
const: course
description: The type of this offering
example: course
startDate:
type: string
description: The moment on which this offering starts, RFC3339 (full-date)
Expand Down Expand Up @@ -69,7 +73,8 @@ allOf:
- $ref: './Identifier.yaml'
title: organizationId
- $ref: './Organization.yaml'
title: Organization object
title: Organization object
- $ref: './OfferingProperties.yaml'



Expand Down
3 changes: 0 additions & 3 deletions v5/schemas/Offering.yaml

This file was deleted.

11 changes: 0 additions & 11 deletions v5/schemas/OfferingIdAndType.yaml

This file was deleted.

8 changes: 0 additions & 8 deletions v5/schemas/OfferingProperties.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,6 @@ properties:
codeType: offeringCode
code: INFOMQNM-20FS
readOnly: true
offeringType:
type: string
description: The type of this offering
enum:
- program
- course
- component
example: component
academicSession:
description: |
The academicsession during which this courseoffering takes place. [`expandable`](#tag/academic_session_model)
Expand Down
7 changes: 6 additions & 1 deletion v5/schemas/ProgramOffering.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
allOf:
- $ref: './Offering.yaml'
- $ref: './OfferingId.yaml'
- type: object
required:
- startDate
- endDate
properties:
offeringType:
const: program
description: The type of this offering
example: program
startDate:
type: string
description: The moment on which this offering starts, RFC3339 (full-date)
Expand Down Expand Up @@ -62,3 +66,4 @@ allOf:
title: organizationId
- $ref: './Organization.yaml'
title: Organization object
- $ref: './OfferingProperties.yaml'
2 changes: 1 addition & 1 deletion v5/spec.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
openapi: "3.0.3"
openapi: "3.1.0"
info:
version: "5.0.0"
title: Open Education API
Expand Down