oapi-profile-builder 3.7.1__tar.gz → 3.7.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {oapi_profile_builder-3.7.1/src/oapi_profile_builder.egg-info → oapi_profile_builder-3.7.2}/PKG-INFO +1 -1
- {oapi_profile_builder-3.7.1 → oapi_profile_builder-3.7.2}/pyproject.toml +1 -1
- {oapi_profile_builder-3.7.1 → oapi_profile_builder-3.7.2}/src/oapi_profile_builder/generate.py +36 -9
- {oapi_profile_builder-3.7.1 → oapi_profile_builder-3.7.2/src/oapi_profile_builder.egg-info}/PKG-INFO +1 -1
- {oapi_profile_builder-3.7.1 → oapi_profile_builder-3.7.2}/LICENSE +0 -0
- {oapi_profile_builder-3.7.1 → oapi_profile_builder-3.7.2}/README.md +0 -0
- {oapi_profile_builder-3.7.1 → oapi_profile_builder-3.7.2}/setup.cfg +0 -0
- {oapi_profile_builder-3.7.1 → oapi_profile_builder-3.7.2}/src/oapi_profile_builder/__init__.py +0 -0
- {oapi_profile_builder-3.7.1 → oapi_profile_builder-3.7.2}/src/oapi_profile_builder/cite.py +0 -0
- {oapi_profile_builder-3.7.1 → oapi_profile_builder-3.7.2}/src/oapi_profile_builder/cite_features.py +0 -0
- {oapi_profile_builder-3.7.1 → oapi_profile_builder-3.7.2}/src/oapi_profile_builder/cli.py +0 -0
- {oapi_profile_builder-3.7.1 → oapi_profile_builder-3.7.2}/src/oapi_profile_builder/compile.py +0 -0
- {oapi_profile_builder-3.7.1 → oapi_profile_builder-3.7.2}/src/oapi_profile_builder/cover.py +0 -0
- {oapi_profile_builder-3.7.1 → oapi_profile_builder-3.7.2}/src/oapi_profile_builder/models.py +0 -0
- {oapi_profile_builder-3.7.1 → oapi_profile_builder-3.7.2}/src/oapi_profile_builder/server_validation.py +0 -0
- {oapi_profile_builder-3.7.1 → oapi_profile_builder-3.7.2}/src/oapi_profile_builder.egg-info/SOURCES.txt +0 -0
- {oapi_profile_builder-3.7.1 → oapi_profile_builder-3.7.2}/src/oapi_profile_builder.egg-info/dependency_links.txt +0 -0
- {oapi_profile_builder-3.7.1 → oapi_profile_builder-3.7.2}/src/oapi_profile_builder.egg-info/entry_points.txt +0 -0
- {oapi_profile_builder-3.7.1 → oapi_profile_builder-3.7.2}/src/oapi_profile_builder.egg-info/requires.txt +0 -0
- {oapi_profile_builder-3.7.1 → oapi_profile_builder-3.7.2}/src/oapi_profile_builder.egg-info/top_level.txt +0 -0
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "oapi-profile-builder"
|
|
7
|
-
version = "3.7.
|
|
7
|
+
version = "3.7.2"
|
|
8
8
|
description = "Authoritative tooling for creating OGC API Service Profiles (EDR, Features)"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = { file = "LICENSE" }
|
{oapi_profile_builder-3.7.1 → oapi_profile_builder-3.7.2}/src/oapi_profile_builder/generate.py
RENAMED
|
@@ -676,21 +676,48 @@ def _collection_response_schema(coll: Collection,
|
|
|
676
676
|
if coll.extent and coll.extent.temporal:
|
|
677
677
|
t = coll.extent.temporal
|
|
678
678
|
temporal_props = {"trs": {"type": "string", **_const(t.trs, version)}}
|
|
679
|
-
if t.interval:
|
|
680
|
-
|
|
679
|
+
if t.interval:
|
|
680
|
+
temporal_props["interval"] = {
|
|
681
|
+
"type": "array",
|
|
682
|
+
"items": {"type": "array", "items": {"type": "string", "nullable": True}},
|
|
683
|
+
**_const(t.interval, version)
|
|
684
|
+
}
|
|
685
|
+
if t.values:
|
|
686
|
+
temporal_props["values"] = {
|
|
687
|
+
"type": "array",
|
|
688
|
+
"items": {"type": "string"},
|
|
689
|
+
**_const(t.values, version)
|
|
690
|
+
}
|
|
681
691
|
extent_props["temporal"] = {"type": "object", "required": ["trs"], "properties": temporal_props}
|
|
682
692
|
if coll.extent and coll.extent.vertical:
|
|
683
693
|
v = coll.extent.vertical
|
|
684
694
|
vertical_props = {"vrs": {"type": "string", **_const(v.vrs, version)}}
|
|
685
|
-
if v.interval:
|
|
686
|
-
|
|
695
|
+
if v.interval:
|
|
696
|
+
vertical_props["interval"] = {
|
|
697
|
+
"type": "array",
|
|
698
|
+
"items": {"type": "array", "items": {"type": "number"}},
|
|
699
|
+
**_const(v.interval, version)
|
|
700
|
+
}
|
|
701
|
+
if v.values:
|
|
702
|
+
vertical_props["values"] = {
|
|
703
|
+
"type": "array",
|
|
704
|
+
"items": {"type": "string"},
|
|
705
|
+
**_const(v.values, version)
|
|
706
|
+
}
|
|
687
707
|
if getattr(v, "positive", None): vertical_props["positive"] = {"type": "string", **_const(v.positive, version)}
|
|
688
708
|
extent_props["vertical"] = {"type": "object", "required": ["vrs"], "properties": vertical_props}
|
|
689
709
|
if coll.extent and coll.extent.custom:
|
|
690
|
-
custom_items = [
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
710
|
+
custom_items = []
|
|
711
|
+
for c in coll.extent.custom:
|
|
712
|
+
custom_items.append({
|
|
713
|
+
"type": "object",
|
|
714
|
+
"required": ["id", "interval", "reference"],
|
|
715
|
+
"properties": {
|
|
716
|
+
"id": {"type": "string", **_const(c.id, version)},
|
|
717
|
+
"interval": {"type": "array", "items": {"type": "string"}, **_const(c.interval, version)},
|
|
718
|
+
"reference": {"type": "string", **_const(c.reference, version)},
|
|
719
|
+
}
|
|
720
|
+
})
|
|
694
721
|
extent_props["custom"] = {"type": "array", "items": {"oneOf": custom_items}}
|
|
695
722
|
|
|
696
723
|
dq_props = {}
|
|
@@ -720,7 +747,7 @@ def _collection_response_schema(coll: Collection,
|
|
|
720
747
|
"id": {"type": "string", **_const(coll.id, version)},
|
|
721
748
|
"title": {"type": "string", **_const(coll.title, version)} if coll.title else {"type": "string"},
|
|
722
749
|
"description": {"type": "string", **_const(coll.description, version)} if coll.description else {"type": "string"},
|
|
723
|
-
"keywords": {"type": "array", "items": {"type": "string"
|
|
750
|
+
"keywords": {"type": "array", "items": {"type": "string"}},
|
|
724
751
|
"links": _LINKS_ARRAY, "crs": crs_array_schema, "output_formats": output_formats_schema,
|
|
725
752
|
"parameter_names": param_names_schema,
|
|
726
753
|
"extent": {"type": "object", "required": ["spatial"], "properties": extent_props},
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{oapi_profile_builder-3.7.1 → oapi_profile_builder-3.7.2}/src/oapi_profile_builder/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{oapi_profile_builder-3.7.1 → oapi_profile_builder-3.7.2}/src/oapi_profile_builder/cite_features.py
RENAMED
|
File without changes
|
|
File without changes
|
{oapi_profile_builder-3.7.1 → oapi_profile_builder-3.7.2}/src/oapi_profile_builder/compile.py
RENAMED
|
File without changes
|
|
File without changes
|
{oapi_profile_builder-3.7.1 → oapi_profile_builder-3.7.2}/src/oapi_profile_builder/models.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|