From 7ec2fddef16a500a0091b388dd48dc725ed33362 Mon Sep 17 00:00:00 2001 From: Abram Booth Date: Tue, 21 May 2024 19:34:08 -0400 Subject: [PATCH] cache openapi json --- trove/openapi.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/trove/openapi.py b/trove/openapi.py index 0f6549738..ab3160837 100644 --- a/trove/openapi.py +++ b/trove/openapi.py @@ -1,3 +1,4 @@ +import functools import itertools import json from typing import Iterable @@ -19,6 +20,7 @@ } +@functools.cache def get_trove_openapi_json() -> str: return json.dumps(get_trove_openapi(), indent=2)