Skip to content

Commit

Permalink
format (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
marshHawk4 authored Oct 14, 2024
1 parent 96b45ee commit 5e3eb30
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
12 changes: 8 additions & 4 deletions cdr_schemas/cdr_responses/cma.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
from datetime import datetime
from typing import List, Optional, Union

from geojson_pydantic import MultiPolygon
from pydantic import BaseModel
from datetime import datetime


class BestBounds(BaseModel):
type: str
coordinates: List[List[List[Union[float, int]]]]


class CMA(BaseModel):
cma_id: str
crs: str
mineral: str
download_url: str
extent: Optional[BestBounds]
extent: Optional[MultiPolygon]
resolution: List[int]
description: Optional[str]=""
creation_date: Optional[datetime]
description: Optional[str] = ""
creation_date: Optional[datetime]
8 changes: 5 additions & 3 deletions cdr_schemas/cdr_responses/cogs.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
from typing import List, Optional

from pydantic import BaseModel
from .cma import BestBounds, CMA

from .cma import CMA, BestBounds


class CogMeta(BaseModel):
Expand All @@ -12,8 +14,8 @@ class CogMeta(BaseModel):
publisher: str = ""
cog_size: Optional[int] = None
authors: List[str] = []
provider_name: str= ""
display_links_str: str= ""
provider_name: str = ""
display_links_str: str = ""
no_map: bool = False
provider_url: str = ""
original_download_url: str = ""
Expand Down

0 comments on commit 5e3eb30

Please sign in to comment.