Skip to content

Commit

Permalink
Merge pull request #159 from stac-utils/feature/add-more-mimes
Browse files Browse the repository at this point in the history
add more mimetypes
  • Loading branch information
vincentsarago authored Aug 20, 2024
2 parents 9683a6f + 7773994 commit f9eda3b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 3.1.2 (2024-08-20)

- Add more **MimeTypes** (geojsonseq, pbf, mvt, ndjson, openapi_yaml, pdf, csv, parquet)

## 3.1.1 (2024-07-09)

- Cache remote JSON schemas for extensions (#155, @avbentem)
Expand Down
8 changes: 8 additions & 0 deletions stac_pydantic/shared.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,18 +46,26 @@ class MimeTypes(str, Enum):
jpeg = "image/jpeg"
# Vector
geojson = "application/geo+json"
geojsonseq = "application/geo+json-seq"
geopackage = "application/geopackage+sqlite3"
kml = "application/vnd.google-earth.kml+xml"
kmz = "application/vnd.google-earth.kmz"
pbf = "application/x-protobuf"
mvt = "application/vnd.mapbox-vector-tile"
# Others
hdf = "application/x-hdf"
hdf5 = "application/x-hdf5"
xml = "application/xml"
json = "application/json"
ndjson = "application/ndjson"
html = "text/html"
text = "text/plain"
openapi = "application/vnd.oai.openapi+json;version=3.0"
openapi_yaml = "application/vnd.oai.openapi;version=3.0"
jsonschema = "application/schema+json"
pdf = "application/pdf"
csv = "text/csv"
parquet = "application/vnd.apache.parquet"


class AssetRoles(str, AutoValueEnum):
Expand Down
2 changes: 1 addition & 1 deletion stac_pydantic/version.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""stac-pydantic and STAC spec versions."""

__version__ = "3.1.1"
__version__ = "3.1.2"

STAC_VERSION = "1.0.0"

0 comments on commit f9eda3b

Please sign in to comment.