Skip to content

Commit

Permalink
Title and abstract are optional
Browse files Browse the repository at this point in the history
  • Loading branch information
vuilleumierc committed Nov 1, 2024
1 parent 3bdc821 commit 0bfcdbf
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions geoservercloud/models/featuretype.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,12 @@ def __init__(
self.namespace: ReferencedObjectModel | None = (
ReferencedObjectModel(namespace_name) if namespace_name else None
)
if title:
self.title: I18N = I18N(("title", "internationalTitle"), title)
if abstract:
self.abstract: I18N = I18N(("abstract", "internationalAbstract"), abstract)
self.title: I18N | None = (
I18N(("title", "internationalTitle"), title) if title else None
)
self.abstract: I18N | None = (
I18N(("abstract", "internationalAbstract"), abstract) if abstract else None
)
self.keywords: list[str] | None = keywords
self.native_bounding_box: dict[str, Any] | None = native_bounding_box
self.lat_lon_bounding_box: dict[str, Any] | None = lat_lon_bounding_box
Expand Down

0 comments on commit 0bfcdbf

Please sign in to comment.