o
    ht                     @   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.
    schemas.zutf-8)encodingN)r   __package__joinpathiterdirname
startswithis_filejsonloads	read_textr   from_contents)versionchildchildrenpathcontents r   S/var/www/vscode/kcb/lib/python3.10/site-packages/jsonschema_specifications/_core.py_schemas   s   r   )	__doc__r   importlib.resourcesr   ImportErrorimportlib_resourcesreferencingr   r   r   r   r   r   <module>   s    