Skip to content

schemas.opengis.net has incorrect bbox in extent.yaml for EDR v1.0 #654

@mrauhala

Description

@mrauhala

Compare these two
https://schemas.opengis.net/ogcapi/edr/1.0/openapi/schemas/extent.yaml
https://schemas.opengis.net/ogcapi/edr/1.1/openapi/schemas/collections/extent.yaml

Version v1.0 has bbox defined incorrectly. Since 1.0->1.1 should have been backward compatible, I assume that v1.0 is incorrect. Now services that declare conformance to v1.0 get validation error for each collection because of this. I assume that this is also the reason why so many EDR services initially has bbox incorrectly as an array and not array of arrays.

v1.0

oneOf:
  - items:
      minItems: 4
      maxItems: 4
      type: number
    type: array  
  - items:
      minItems: 6
      maxItems: 6
      type: number
    type: array

v1.1

oneOf:
  - items:
      type: number
    minItems: 4
    maxItems: 4                
    type: array  
  - items:
      type: number
    minItems: 6
    maxItems: 6
    type: array

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions