Commit 2c1796b1 authored by Gabriel Macena's avatar Gabriel Macena

[API] Adiciona o modelo de TeamSubscriptionRule e SoloSubscriptionRule

parent 7674ffbe
SoloSubscriptionRule:
$ref: '#/SubscriptionRule'
TeamSubscriptionRule:
allOf:
- $ref: '#/SubscriptionRule'
- type: object
properties:
minMembers:
type: integer
maxMembers:
type: integer
SubscriptionRule:
required:
- type
- status
properties:
type:
description: '{SOLO, TEAM}'
type: integer
type: string
enum:
- SOLO
- TEAM
status:
description: '{PREP, OPEN, CLOSED}'
type: integer
type: string
enum:
- PREP
- OPEN
- CLOSED
oid:
type: integer
minMembers:
type: integer
maxMembers:
type: integer
discriminator:
propertyName: type
mapping:
- SOLO: '#/SoloSubscriptionRule'
- TEAM: '#/TeamSubscriptionRule'
Subscription:
required:
- status
......
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