-
Notifications
You must be signed in to change notification settings - Fork 37
Open
Description
export class ActivityEventVisibilityRequest {
@IsNumber({
maxDecimalPlaces: 0,
})
@IsDefined()
version: number;
@ValidateNested({ each: true })
@Type(() => ActivityEvent, {
keepDiscriminatorProperty: true,
discriminator: {
property: 'name',
subTypes: [
{ value: ActivityEventVisibility, name: EActivityType.VISIBILITY },
{ value: ActivityEventCiccio, name: EActivityType.TEST },
],
},
})
@JSONSchema({
type: 'array',
items: {
anyOf: [
{
$ref: '#/components/schemas/ActivityEventCiccio',
},
{ $ref: '#/components/schemas/ActivityEventVisibility' },
],
},
})
events: ActivityEvent[];
}
ActivityEventVisibility e ActivityEventCiccio are subclass of ActivityEvent. In OpenApi doc i see this.
What i need to do for see ActivityEventVisibility e ActivityEventCiccio in events: ActivityEvent[]; type? Actually i see ActivityEvent in schema space and in example area.
Metadata
Metadata
Assignees
Labels
No labels

