import urllib.request
import json

with urllib.request.urlopen("http://localhost:8000/openapi.json") as response:
    data = json.loads(response.read().decode())

props = data['components']['schemas']['CarmodooSearchResultItem']['properties']
print("Properties in CarmodooSearchResultItem:")
for p in props.keys():
    print(f"  - {p}")
print(f"\ncheck_num present: {'check_num' in props}")
