Skip to content

Commit 5ef8604

Browse files
Merge pull request #186 from developmentseed/patch/json-to-model-dump
update deprecated
2 parents 12698fb + 434c030 commit 5ef8604

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

morecantile/scripts/cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ def tiles(ctx, zoom, input, identifier, seq, tms): # noqa: C901
411411
def tms(identifier):
412412
"""Print TMS JSON."""
413413
tms = morecantile.tms.get(identifier)
414-
click.echo(tms.json(exclude_none=True))
414+
click.echo(tms.model_dump_json(exclude_none=True))
415415

416416

417417
################################################################################
@@ -465,7 +465,7 @@ def custom(
465465
extent_crs=CRS.from_epsg(extent_epsg) if extent_epsg else None,
466466
title=title or "Custom TileMatrixSet",
467467
)
468-
click.echo(tms.json(exclude_none=True))
468+
click.echo(tms.model_dump_json(exclude_none=True))
469469

470470

471471
################################################################################

0 commit comments

Comments
 (0)