[API] Conserta nome de resources para equivaler no modelo

parent 676c6c9d
SoloSubscriptionRule:
$ref: '#/SubscriptionRule'
TeamSubscriptionRule:
SoloSubscription:
$ref: '#/Subscription'
TeamSubscription:
allOf:
- $ref: '#/SubscriptionRule'
- $ref: '#/Subscription'
- type: object
properties:
teamTemplate:
......@@ -11,7 +11,7 @@ TeamSubscriptionRule:
type: integer
maxMembers:
type: integer
SubscriptionRule:
Subscription:
required:
- type
- status
......@@ -34,8 +34,8 @@ SubscriptionRule:
discriminator:
propertyName: type
mapping:
- SOLO: '#/SoloSubscriptionRule'
- TEAM: '#/TeamSubscriptionRule'
- SOLO: '#/SoloSubscription'
- TEAM: '#/TeamSubscription'
SubscriptionSubmission:
required:
- status
......@@ -69,20 +69,20 @@ SoloSubscriptionSubmission:
- type: object
properties:
participant:
$ref: '#/FormSection'
$ref: '#/ParticipantSubscriptionSection'
TeamSubscriptionSubmission:
allOf:
- $ref: '#/SubscriptionSubmission'
- type: object
properties:
team:
$ref: '#/FormSection'
$ref: '#/TeamSubscriptionSection'
participants:
type: array
items:
$ref: '#/FormSection'
$ref: '#/ParticipantSubscriptionSection'
leader:
$ref: '#/FormSection'
$ref: '#/ParticipantSubscriptionSection'
FormTemplate:
required:
- fields
......@@ -146,9 +146,9 @@ FormAnswer:
type: string
oid:
type: integer
FormSection:
title: Root Type for FormSection
description: The root of the FormSection type's schema.
SubscriptionSection:
title: Root Type for SubscriptionSection
description: The root of the SubscriptionSection type's schema.
required:
- answers
- template
......@@ -168,3 +168,12 @@ FormSection:
enum:
- TEAM
- PARTICIPANT
TeamSubscriptionSection:
type: object
allOf:
- $ref: '#/SubscriptionSection'
ParticipantSubscriptionSection:
type: object
allOf:
- $ref: '#/SubscriptionSection'
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment