faa-swim / swim-discovery-service

1 stars 1 forks source link

Difference between the definition and response #12

Closed luxdlzu closed 2 years ago

luxdlzu commented 2 years ago

In the SDS Schema, sds/1.0.1/services.json, the service is defined as "Object", but the response of JSON is "Object Array". Which one is correct?

GET: https://nsrr.noblis.org/smxs/services GET: http://112.172.247.116:8002/smxs/services

wznira commented 2 years ago

From the schema, I see services is defined as an array. @luxdlzu, can you clarify?

luxdlzu commented 2 years ago

In the SDS schema, the following properties are defined as "Object".

wznira commented 2 years ago

The spec probably needs to be updated. We changed service-category from object to array to support the cases where multiple categories are specified.

caroluri commented 2 years ago

The SMXS requirements (and the SMXS service description in NSRR) call for any service to select one value for interface-type, one value for service-availability-status, and one or more values for service-category. Therefore the schema needs to allow for selecting multiple values of service-category.

wznira commented 2 years ago

JSON schemas have been updated on https://discovery.swim.aero/sds/1.0.1/