diff --git a/models/subscription.tsp b/models/subscription.tsp index 42c0b7f..806263b 100644 --- a/models/subscription.tsp +++ b/models/subscription.tsp @@ -49,7 +49,7 @@ model SubscriptionModel { Period: int32; /** Максимальное количество платежей */ - MaxPeriods?: int32; + MaxPeriods?: int32 | null; /** Язык */ CultureName: string; diff --git a/tsp-output/schema/openapi.1.0.0.yaml b/tsp-output/schema/openapi.1.0.0.yaml index 0dd4bd0..9c7eb6b 100644 --- a/tsp-output/schema/openapi.1.0.0.yaml +++ b/tsp-output/schema/openapi.1.0.0.yaml @@ -1071,8 +1071,10 @@ components: format: int32 description: Период MaxPeriods: - type: integer - format: int32 + anyOf: + - type: integer + format: int32 + - type: 'null' description: Максимальное количество платежей CultureName: type: string