Skip to content
Snippets Groups Projects
Commit 9d59939d authored by Rémi's avatar Rémi
Browse files

Apply to items or assets

parent 78000e2b
No related branches found
Tags v0.0.18
No related merge requests found
Pipeline #179952 passed with warnings
from .core import create_extension_cls
__version__ = "0.0.17"
\ No newline at end of file
__version__ = "0.0.18"
\ No newline at end of file
......@@ -116,3 +116,17 @@ def basic_test(
test_item()
if asset_test:
test_asset()
def is_schema_url_synced(cls):
import requests
local_schema = cls.get_schema()
url = cls.get_schema_uri()
remote_schema = requests.get(url).json()
print(
f"Local schema is :\n{local_schema}\nRemote schema is:\n{remote_schema}"
)
if local_schema != remote_schema:
raise ValueError(
f"Please update the schema located in {url}"
)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment