[API] Conserta nome de resources para equivaler no modelo

parent 676c6c9d
SoloSubscriptionRule: SoloSubscription:
$ref: '#/SubscriptionRule' $ref: '#/Subscription'
TeamSubscriptionRule: TeamSubscription:
allOf: allOf:
- $ref: '#/SubscriptionRule' - $ref: '#/Subscription'
- type: object - type: object
properties: properties:
teamTemplate: teamTemplate:
...@@ -11,7 +11,7 @@ TeamSubscriptionRule: ...@@ -11,7 +11,7 @@ TeamSubscriptionRule:
type: integer type: integer
maxMembers: maxMembers:
type: integer type: integer
SubscriptionRule: Subscription:
required: required:
- type - type
- status - status
...@@ -34,8 +34,8 @@ SubscriptionRule: ...@@ -34,8 +34,8 @@ SubscriptionRule:
discriminator: discriminator:
propertyName: type propertyName: type
mapping: mapping:
- SOLO: '#/SoloSubscriptionRule' - SOLO: '#/SoloSubscription'
- TEAM: '#/TeamSubscriptionRule' - TEAM: '#/TeamSubscription'
SubscriptionSubmission: SubscriptionSubmission:
required: required:
- status - status
...@@ -69,20 +69,20 @@ SoloSubscriptionSubmission: ...@@ -69,20 +69,20 @@ SoloSubscriptionSubmission:
- type: object - type: object
properties: properties:
participant: participant:
$ref: '#/FormSection' $ref: '#/ParticipantSubscriptionSection'
TeamSubscriptionSubmission: TeamSubscriptionSubmission:
allOf: allOf:
- $ref: '#/SubscriptionSubmission' - $ref: '#/SubscriptionSubmission'
- type: object - type: object
properties: properties:
team: team:
$ref: '#/FormSection' $ref: '#/TeamSubscriptionSection'
participants: participants:
type: array type: array
items: items:
$ref: '#/FormSection' $ref: '#/ParticipantSubscriptionSection'
leader: leader:
$ref: '#/FormSection' $ref: '#/ParticipantSubscriptionSection'
FormTemplate: FormTemplate:
required: required:
- fields - fields
...@@ -146,9 +146,9 @@ FormAnswer: ...@@ -146,9 +146,9 @@ FormAnswer:
type: string type: string
oid: oid:
type: integer type: integer
FormSection: SubscriptionSection:
title: Root Type for FormSection title: Root Type for SubscriptionSection
description: The root of the FormSection type's schema. description: The root of the SubscriptionSection type's schema.
required: required:
- answers - answers
- template - template
...@@ -168,3 +168,12 @@ FormSection: ...@@ -168,3 +168,12 @@ FormSection:
enum: enum:
- TEAM - TEAM
- PARTICIPANT - 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