From f033a465329688f72e2e2be2c5d9c47b51ae2b27 Mon Sep 17 00:00:00 2001 From: ruiyue Date: Fri, 11 Aug 2023 14:56:46 +0000 Subject: [PATCH] Update file TS28312_IntentNrm.yaml --- OpenAPI/TS28312_IntentNrm.yaml | 47 ++++++++++++++++++++++++++-------- 1 file changed, 36 insertions(+), 11 deletions(-) diff --git a/OpenAPI/TS28312_IntentNrm.yaml b/OpenAPI/TS28312_IntentNrm.yaml index e66f20dd0..c918933b5 100644 --- a/OpenAPI/TS28312_IntentNrm.yaml +++ b/OpenAPI/TS28312_IntentNrm.yaml @@ -186,6 +186,17 @@ components: enum: - DELIVER - ENSURE + ValueRangeType: + oneOf: + - type: number + - type: string + - type: boolean + - type: integer + - $ref: 'TS28623_ComDefs.yaml#/components/schemas/TimeWindow' + - $ref: 'TS28623_ComDefs.yaml#/components/schemas/DateTime' + - $ref: 'TS28623_ComDefs.yaml#/components/schemas/GeoArea' + - $ref: 'TS28623_ComDefs.yaml#/components/schemas/PlmnId' + - $ref: 'TS28623_ComDefs.yaml#/components/schemas/GeoCoordinate ' #-------Definition of the generic dataType --------------# #-------Definition of the generic IntentContext dataType --------------# @@ -199,9 +210,11 @@ components: contextCondition: $ref: '#/components/schemas/Condition' contextValueRange: - type: array - items: - type: number + oneOf: + - type: array + items: + $ref: "#/components/schemas/ValueRangeType" + - $ref: "#/components/schemas/ValueRangeType" #-------Definition of the generic IntentContext dataType --------------# #-------Definition of the generic ExpectationTarget dataType----------# @@ -215,7 +228,11 @@ components: targetCondition: $ref: '#/components/schemas/Condition' targetValueRange: - type: number + oneOf: + - type: array + items: + $ref: "#/components/schemas/ValueRangeType" + - $ref: "#/components/schemas/ValueRangeType" targetContexts: type: array items: @@ -230,7 +247,11 @@ components: contextCondition: $ref: '#/components/schemas/Condition' contextValueRange: - type: number + oneOf: + - type: array + items: + $ref: "#/components/schemas/ValueRangeType" + - $ref: "#/components/schemas/ValueRangeType" #-------Definition of the generic ExpectationTarget dataType----------# #-------Definition of the generic ObjectContext dataType----------------# @@ -244,9 +265,11 @@ components: contextCondition: $ref: '#/components/schemas/Condition' contextValueRange: - type: array - items: - type: number + oneOf: + - type: array + items: + $ref: "#/components/schemas/ValueRangeType" + - $ref: "#/components/schemas/ValueRangeType" #-------Definition of the generic ObjectContext dataType----------------# #-------Definition of the generic ExpectionContext dataType----------------# @@ -260,9 +283,11 @@ components: contextCondition: $ref: '#/components/schemas/Condition' contextValueRange: - type: array - items: - type: number + oneOf: + - type: array + items: + $ref: "#/components/schemas/ValueRangeType" + - $ref: "#/components/schemas/ValueRangeType" #-------Definition of the concrete ExpectionContext dataType----------------# #-------Definition of the generic IntentFulfilmentReport dataType----------------# IntentFulfilmentReport: -- GitLab