o
    mit                     @   sT   d Z ddlZzddlmZ W n ey   ddlmZ Y nw ddlmZ dd ZdS )z<
Load all the JSON Schema specification's official schemas.
    N)files)Resourcec                  c   s    t td D ]6} | jdrq
|  D ](}| r |gn| }|D ]}|jdr/q&t|j	dd}t
|V  q&qq
dS )z
    All schemas we ship.
    Zschemas.zutf-8)encodingN)r   __package__joinpathiterdirname
startswithis_filejsonloads	read_textr   Zfrom_contents)versionchildchildrenpathcontents r   Y/home/kim/smarthome/.venv/lib/python3.10/site-packages/jsonschema_specifications/_core.py_schemas   s   r   )	__doc__r   importlib.resourcesr   ImportErrorZimportlib_resourcesZreferencingr   r   r   r   r   r   <module>   s    