diff --git a/core/standard/openapi/schemas/collections/DataQuery.yaml b/core/standard/openapi/schemas/collections/DataQuery.yaml new file mode 100644 index 000000000..3972a3563 --- /dev/null +++ b/core/standard/openapi/schemas/collections/DataQuery.yaml @@ -0,0 +1,36 @@ +description: Property to contain any extra metadata information that is specific + to an individual data query +type: object +required: + - title + - description + - output_formats + - default_output_format + - crs_details +properties: + title: + description: title of the query + type: string + example: Position query + description: + description: description of the query + type: string + example: Query to return data for a defined well known text point + output_formats: + description: list of output formats supported by the Position query + type: array + items: + type: string + example: + - CoverageJSON + - GeoJSON + - IWXXM + - GRIB + default_output_format: + description: default output format for the Position query + type: string + crs_details: + description: List of key/value definitions for the CRS's supported by the Position query. The key is the query parameter and the value is the Well Known Text description + type: array + items: + $ref: crsObject.yaml diff --git a/core/standard/openapi/schemas/collections/areaDataQuery.yaml b/core/standard/openapi/schemas/collections/areaDataQuery.yaml index 329e9f8e0..646f6dab7 100644 --- a/core/standard/openapi/schemas/collections/areaDataQuery.yaml +++ b/core/standard/openapi/schemas/collections/areaDataQuery.yaml @@ -1,36 +1,11 @@ -description: Property to contain any extra metadata information that is specific - to an individual data queries -type: object +allOf: + - $ref: DataQuery.yaml +required: + - query_type properties: - title: - description: title of the query - type: string - example: Area query - description: - description: description of the query - type: string - example: Query to return data for a defined area query_type: description: Type of EDR query type: string enum: - area example: area - output_formats: - description: list of output formats supported by the Area query - type: array - items: - type: string - example: - - CoverageJSON - - GeoJSON - - IWXXM - - GRIB - default_output_format: - description: default output format for the Area query - type: string - crs_details: - description: List of key/value definitions for the CRS's supported by the Area query. The key is the query parameter and the value is the Well Known Text description - type: array - items: - $ref: crsObject.yaml diff --git a/core/standard/openapi/schemas/collections/corridorDataQuery.yaml b/core/standard/openapi/schemas/collections/corridorDataQuery.yaml index 89a332715..dd3f8886c 100644 --- a/core/standard/openapi/schemas/collections/corridorDataQuery.yaml +++ b/core/standard/openapi/schemas/collections/corridorDataQuery.yaml @@ -1,15 +1,8 @@ -description: Property to contain any extra metadata information that is specific - to an individual data queries -type: object +allOf: + - $ref: DataQuery.yaml +required: + - query_type properties: - title: - description: title of the query - type: string - example: Corridor query - description: - description: description of the query - type: string - example: Query to return data for a defined corridor query_type: description: Type of EDR query type: string @@ -32,21 +25,3 @@ properties: example: - m - hPa - output_formats: - description: list of output formats the supported by the Corridor query - type: array - items: - type: string - example: - - CoverageJSON - - GeoJSON - - IWXXM - - GRIB - default_output_format: - description: default output format for the Corridor query - type: string - crs_details: - description: List of key/value definitions for the CRS's supported by the Corridor query. The key is the query parameter and the value is the Well Known Text description - type: array - items: - $ref: crsObject.yaml diff --git a/core/standard/openapi/schemas/collections/cubeDataQuery.yaml b/core/standard/openapi/schemas/collections/cubeDataQuery.yaml index ab04f2f4e..83d2f3eca 100644 --- a/core/standard/openapi/schemas/collections/cubeDataQuery.yaml +++ b/core/standard/openapi/schemas/collections/cubeDataQuery.yaml @@ -1,44 +1,19 @@ -description: Property to contain any extra metadata information that is specific - to an individual data queries -type: object +allOf: + - $ref: DataQuery.yaml +required: + - query_type properties: - title: - description: title of the query - type: string - example: Cube query - description: - description: description of the query - type: string - example: Query to return data for a defined well known text point query_type: description: Type of EDR query type: string enum: - cube - example: cube + example: cube height_units: - description: list of height distance units distance values can be specified in + description: list of z distance units vertical values can be specified in type: array items: type: string example: - m - - hPa - output_formats: - description: list of output formats supported by the Cube query - type: array - items: - type: string - example: - - CoverageJSON - - GeoJSON - - IWXXM - - GRIB - default_output_format: - description: default output format of the Cube query - type: string - crs_details: - description: List of key/value definitions for the CRS's supported by the Cube query. The key is the query parameter and the value is the Well Known Text description - type: array - items: - $ref: crsObject.yaml + - hPa diff --git a/core/standard/openapi/schemas/collections/locationsDataQuery.yaml b/core/standard/openapi/schemas/collections/locationsDataQuery.yaml index a5e9959e7..5b5087d55 100644 --- a/core/standard/openapi/schemas/collections/locationsDataQuery.yaml +++ b/core/standard/openapi/schemas/collections/locationsDataQuery.yaml @@ -1,36 +1,11 @@ -description: Property to contain any extra metadata information that is specific - to an individual data queries -type: object +allOf: + - $ref: DataQuery.yaml +required: + - query_type properties: - title: - description: title of the query - type: string - example: Locations query - description: - description: description of the query - type: string - example: Query to return data for a defined well known text point query_type: description: Type of EDR query type: string enum: - locations example: locations - output_formats: - description: list of output formats supported by the Locations query - type: array - items: - type: string - example: - - CoverageJSON - - GeoJSON - - IWXXM - - GRIB - default_output_format: - description: default output format of the Locations query - type: string - crs_details: - description: List of key/value definitions for the CRS's supported by the Locations query. The key is the query parameter and the value is the Well Known Text description - type: array - items: - $ref: crsObject.yaml diff --git a/core/standard/openapi/schemas/collections/positionDataQuery.yaml b/core/standard/openapi/schemas/collections/positionDataQuery.yaml index 899c16eca..c236d6b88 100644 --- a/core/standard/openapi/schemas/collections/positionDataQuery.yaml +++ b/core/standard/openapi/schemas/collections/positionDataQuery.yaml @@ -1,36 +1,11 @@ -description: Property to contain any extra metadata information that is specific - to an individual data queries -type: object +allOf: + - $ref: DataQuery.yaml +required: + - query_type properties: - title: - description: title of the query - type: string - example: Position query - description: - description: description of the query - type: string - example: Query to return data for a defined well known text point query_type: description: Type of EDR query type: string enum: - position example: position - output_formats: - description: list of output formats supported by the Position query - type: array - items: - type: string - example: - - CoverageJSON - - GeoJSON - - IWXXM - - GRIB - default_output_format: - description: default output format for the Position query - type: string - crs_details: - description: List of key/value definitions for the CRS's supported by the Position query. The key is the query parameter and the value is the Well Known Text description - type: array - items: - $ref: crsObject.yaml diff --git a/core/standard/openapi/schemas/collections/radiusDataQuery.yaml b/core/standard/openapi/schemas/collections/radiusDataQuery.yaml index 2df4d1448..fb31980ad 100644 --- a/core/standard/openapi/schemas/collections/radiusDataQuery.yaml +++ b/core/standard/openapi/schemas/collections/radiusDataQuery.yaml @@ -1,15 +1,6 @@ -description: Property to contain any extra metadata information that is specific - to an individual data queries -type: object +allOf: + - $ref: DataQuery.yaml properties: - title: - description: title of the query - type: string - example: Radius query - description: - description: description of the query - type: string - example: Query to return data for a defined well known text point query_type: description: Type of EDR query type: string @@ -24,21 +15,3 @@ properties: example: - km - miles - output_formats: - description: list of formats supported by the Radius query - type: array - items: - type: string - example: - - CoverageJSON - - GeoJSON - - IWXXM - - GRIB - default_output_format: - description: default outputformat for the Radius query - type: string - crs_details: - description: List of key/value definitions for the CRS's supported by the Radius query. The key is the query parameter and the value is the Well Known Text description - type: array - items: - $ref: crsObject.yaml diff --git a/core/standard/openapi/schemas/collections/trajectoryDataQuery.yaml b/core/standard/openapi/schemas/collections/trajectoryDataQuery.yaml index a111b1c6c..141069ebf 100644 --- a/core/standard/openapi/schemas/collections/trajectoryDataQuery.yaml +++ b/core/standard/openapi/schemas/collections/trajectoryDataQuery.yaml @@ -1,36 +1,9 @@ -description: Property to contain any extra metadata information that is specific - to an individual data queries -type: object +allOf: + - $ref: DataQuery.yaml properties: - title: - description: title of the query - type: string - example: Trajectory query - description: - description: description of the query - type: string - example: Query to return data for a defined well known text point query_type: description: Type of EDR query type: string enum: - trajectory example: trajectory - output_formats: - description: list of ouputformats supported by the Trajectory query - type: array - items: - type: string - example: - - CoverageJSON - - GeoJSON - - IWXXM - - GRIB - default_output_format: - description: default outputformat for the Trajectory query - type: string - crs_details: - description: List of key/value definitions for the CRS's supported by a Trajectory query. The key is the query parameter and the value is the Well Known Text description - type: array - items: - $ref: crsObject.yaml