Skip to content
This repository has been archived by the owner on Oct 2, 2024. It is now read-only.

fix schema #1

Merged
merged 4 commits into from
Sep 5, 2023
Merged

fix schema #1

merged 4 commits into from
Sep 5, 2023

Conversation

fmigneault-crim
Copy link

Added

  • Added example model architecture summary text.

Changed

  • Modified $id if the extension schema to refer to the expected location when eventually released
    (https://schemas.stacspec.org/v1.0.0-beta.3/extensions/dl-model/json-schema/schema.json).
  • Replaced dtype field by data_type to better align with the corresponding field of
    raster:bands.
  • Replaced nodata_value field by nodata to better align with the corresponding field of
    raster:bands.
  • Refactored schema to use distinct definitions and references instead of embedding all objects
    within dl-model properties.
  • Allow schema to contain other dlm:-prefixed elements using patternProperties and explicitly
    deny other additionalProperties.
  • Allow class_name_mapping to be directly provided as a mapping of index-based properties and class-name values.

Deprecated

  • Specifying class_name_mapping by array is deprecated.
    Direct mapping as an object of index to class name should be used.
    For backward compatibility, mapping as array and using nested objects with index and class_name properties
    is still permitted, although overly verbose compared to the direct mapping.

Removed

  • Field nodata_value.
  • Field dtype.

Fixed

  • Fixed references to other STAC extensions to use the official schema links on https://stac-extensions.github.io/.
  • Fixed examples to refer to local files.
  • Fixed formatting of tables and descriptions in README.

@fmigneault-crim fmigneault-crim self-assigned this Sep 5, 2023
@fmigneault-crim fmigneault-crim merged commit a51106a into main Sep 5, 2023
@fmigneault-crim fmigneault-crim deleted the fix-schema branch September 5, 2023 14:56
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants