KOKINIO - MANAGER
Edit File: nftables.cpython-312.opt-1.pyc
� KjAN � �R � d dl Z d dl� d dlZd dlZdZ G d� d� Z G d� d� Zy)� N)�*z0.1c � � e Zd ZdZd� Zd� Zy)�SchemaValidatorz+Libnftables JSON validator using jsonschemac � � t j j t j j t � d� }t |d� 5 }t j |� | _ d d d � dd l }|| _ y # 1 sw Y �xY w)Nzschema.json�rr ) �os�path�join�dirname�__file__�open�json�load�schema� jsonschema)�self�schema_path�schema_filer s �6/usr/lib/python3.12/site-packages/nftables/nftables.py�__init__zSchemaValidator.__init__ sW � ��g�g�l�l�2�7�7�?�?�8�#<�m�L�� �+�s� #�{��)�)�K�0�D�K� $��$��� $� #�s �A=�=Bc �R � | j j || j �� y )N)�instancer )r �validater )r r s r r zSchemaValidator.validate"