-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
KDP-1528 update spec adherence and remove unused packages
- Loading branch information
1 parent
bb021f3
commit 8198d1b
Showing
12 changed files
with
59 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,5 +65,3 @@ repos: | |
pass_filenames: false | ||
additional_dependencies: | ||
- pydantic | ||
- covjson-pydantic | ||
- types-python-dateutil |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
from typing import Dict | ||
from typing import List | ||
from typing import Optional | ||
|
||
from .data_queries import DataQueries | ||
from .extent import Extent | ||
from .link import Link | ||
from .my_base_model import EDRBaseModel | ||
from .parameter import Parameter | ||
|
||
|
||
# TODO Difference between Instance and Collection? | ||
class Instance(EDRBaseModel): | ||
id: str | ||
title: Optional[str] = None | ||
description: Optional[str] = None | ||
keywords: Optional[List[str]] = None | ||
links: List[Link] | ||
extent: Extent | ||
data_queries: Optional[DataQueries] = None | ||
# TODO According to req A.13 it should be CRSDetails object | ||
crs: Optional[List[str]] = None | ||
output_formats: Optional[List[str]] = None | ||
parameter_names: Dict[str, Parameter] | ||
# TODO According to req A.13 MAY have distanceunits. If radius is in link, it SHALL have distanceunits | ||
distanceunits: Optional[List[str]] = None | ||
|
||
|
||
class InstancesModel(EDRBaseModel): | ||
links: List[Link] | ||
instances: List[Instance] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters