Skip to content

Commit

Permalink
cache openapi json
Browse files Browse the repository at this point in the history
  • Loading branch information
aaxelb committed May 21, 2024
1 parent 7a3e6e8 commit 7ec2fdd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions trove/openapi.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import functools
import itertools
import json
from typing import Iterable
Expand All @@ -19,6 +20,7 @@
}


@functools.cache
def get_trove_openapi_json() -> str:
return json.dumps(get_trove_openapi(), indent=2)

Expand Down

0 comments on commit 7ec2fdd

Please sign in to comment.