
                         b    S r SSKJr  SSKJr  SSKJr  SSKJr   " S S\R                  5      r	g)	z9A command that validates YAML data against a JSON Schema.    )base)yaml)yaml_validator)
console_ioc                   .    \ rS rSrSr\S 5       rS rSrg)ValidateYAML   zValidate a YAML file against a JSON Schema.

{command} validates YAML / JSON files against
[JSON Schemas](https://json-schema.org/).
c                 D    U R                  SSS9  U R                  SSS9  g )Nschema_filez.The path to a file containing the JSON Schema.)help	yaml_filezOThe path to a file containing YAML / JSON data. Use `-` for the standard input.)add_argument)parsers    !lib/surface/meta/validate_yaml.pyArgsValidateYAML.Args    s8    
=  ? $  &    c                     [         R                  " UR                  SS9n[        R                  " U5      n[
        R                  " UR                  5      R                  U5        g )NF)binary)	r   ReadFromFileOrStdinr   r   loadr   	Validatorr   Validate)selfargscontentsparsed_yamls       r   RunValidateYAML.Run*   sE    --dnnUKH))H%KT--.77Dr    N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r   __static_attributes__r    r   r   r   r      s!     & &Er   r   N)
r%   googlecloudsdk.callioper   googlecloudsdk.corer   r   googlecloudsdk.core.consoler   Commandr   r    r   r   <module>r,      s+     @ ) $ . 2E4<< Er   