Skip to content

fields extension includes empty "collections" attribute on Collection records #327

@alukach

Description

@alukach

Using docker compose up...

▶ curl -s http://localhost:8082/collections\?fields\=id | jq .collections
[
  {
    "id": "joplin",
    "collection": null,
    "links": [
      {
        "rel": "items",
        "type": "application/geo+json",
        "href": "http://localhost:8082/api/v1/pgstac/collections/joplin/items"
      },
      {
        "rel": "parent",
        "type": "application/json",
        "href": "http://localhost:8082/api/v1/pgstac/"
      },
      {
        "rel": "root",
        "type": "application/json",
        "href": "http://localhost:8082/api/v1/pgstac/"
      },
      {
        "rel": "self",
        "type": "application/json",
        "href": "http://localhost:8082/api/v1/pgstac/collections/joplin"
      },
      {
        "rel": "http://www.opengis.net/def/rel/ogc/1.0/queryables",
        "type": "application/schema+json",
        "title": "Queryables",
        "href": "http://localhost:8082/api/v1/pgstac/collections/joplin/queryables"
      }
    ]
  }
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions