Skip to content

Commit

Permalink
Merge pull request #1339 from opendatacube/schema-required
Browse files Browse the repository at this point in the history
update metadata type schema and docs
  • Loading branch information
omad committed Nov 1, 2022
2 parents f763038 + 71758ba commit f31812e
Show file tree
Hide file tree
Showing 5 changed files with 475 additions and 448 deletions.
1 change: 1 addition & 0 deletions datacube/model/schema/metadata-type-schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ properties:
- creation_dt
- label
- sources
- search_fields
additionalProperties: false
required:
- name
Expand Down
9 changes: 9 additions & 0 deletions docs/about-core-concepts/metadata-types.rst
Original file line number Diff line number Diff line change
@@ -1,2 +1,11 @@
Metadata Types
==============

.. literalinclude:: ../config_samples/metadata_types/bare_bone.yaml
:language: yaml

.. note::

Metadata type yaml file must contain name, description and dataset keys.

Dataset key must contain id, sources, creation_dt, label and search_fields keys.
1 change: 1 addition & 0 deletions docs/about/whats_new.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ v1.8.next
- Add `rst` documentation lint github action and apply best practices (:pull:`1328`)
- Follow PEP561_ to make type hints available to other packages (:issue:`1330`)
- Add what's new page link to menu and general doc fixes (:pull:`1335`)
- Add `search_fields` to required for metadata type schema and update doc (:pull:`1339`)

.. _PEP561: https://peps.python.org/pep-0561/

Expand Down
Loading

0 comments on commit f31812e

Please sign in to comment.