
    Fh9                        S r SSKJr  SSKrSSKrSSKJr  \R                  (       a  SSKJ	r	  \" \R                  R                  \5      5      R                  5       rSS jrS	S jrg)
zOpenAPI spec utils.    )annotationsN)PathSpecc                 F    SSK Jn   [        5       nU R                  " U5      $ )zGet the OpenAPI spec object.r   r   )openapi_core.spec.pathsr   get_openapi_spec_dict	from_dict)r   openapi_spec_dicts     iC:\Users\julio\OneDrive\Documentos\Trabajo\Ideas Frescas\venv\Lib\site-packages\jupyterlab_server/spec.pyget_openapi_specr      s    ,-/>>+,,    c                 h    SSK Jn   [        S-  nU " SS9nUR                  UR	                  SS95      $ )z%Get the OpenAPI spec as a dictionary.r   )YAMLzrest-api.ymlsafe)typzutf-8)encoding)ruamel.yamlr   HEREload	read_text)r   pathyamls      r   r	   r	      s3     . DFD99T^^W^566r   )returnr   )r   zdict[str, typing.Any])__doc__
__future__r   ostypingpathlibr   TYPE_CHECKINGr   r   r   dirname__file__resolver   r   r	    r   r   <module>r%      sL     " 	  	,BGGOOH%&..0-7r   