Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions code/API_definitions/qos-booking.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -742,6 +742,7 @@ components:
mapping:
CIRCLE: "#/components/schemas/Circle"
POLYGON: "#/components/schemas/Polygon"
AREAID: "#/components/schemas/AreaId"
AREANAME: "#/components/schemas/AreaName"

AreaType:
Expand All @@ -750,10 +751,12 @@ components:
Type of this area.
CIRCLE - The area is defined as a circle.
POLYGON - The area is defined as a polygon.
AREAID - The area is defined as an area ID.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Currently AREANAME already supports any kind of string values and it it is not limited to human friendly names. What is the benefit of having a separated AREAID for areas identified by UUIDs?

I would wait to have a more clear understanding of the Area discovery mechanisms and the possibility to have a transversal common Area APIs, and if that is the case we may refer explicitly to the equivalence of these fields in the other API.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure. In my understanding, the benefit of a AREAID is to guarantee uniqueness from technical perspective.
I think it is better to keep discussion on it also with those who proposed the common Area API.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would move this one to draft until we have a clear understanding of the new Area API, wdyt?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR is not for Sync26. So it is ok for me to move it to draft.

AREANAME - The area is defined as an area name.
enum:
- CIRCLE
- POLYGON
- AREAID
- AREANAME

Circle:
Expand Down Expand Up @@ -782,6 +785,17 @@ components:
properties:
boundary:
$ref: "#/components/schemas/PointList"
AreaId:
description: The area is defined as an area ID.
allOf:
- $ref: "#/components/schemas/Area"
- type: object
required:
- areaId
properties:
areaId:
type: string
format: uuid

AreaName:
description: The value of "AreaName" might be predefined and only regional or even an operator-specific in this API version. As a prerequisite, the API Provider may offer API Consumer the "AreaName" values, which API consumer can request, in a preparation phase. And then API Consumers can select from the "AreaNames" as Service Areas.
Expand Down
Loading