graviteeio_cli/commands/apim/apis/spec_group/lint.py
def lint(obj, api_id, file):
    """This command allow to run a serie of tests to verify that api specification is correctly formed."""

    try:
        with open(file, 'r') as f:
            api_spec = f.read()
    except FileNotFoundError:
        raise GraviteeioError("Missing values file {}".format(file))

    gio_config: GraviteeioConfig = obj['config']
    lint_service.validate_from_file(file, api_spec, DocumentType.oas, gio_config.linter_conf)
This command allow to run a serie of tests to verify that api specification is correctly formed.
This command allow to run a serie of tests to verify that api specification is correctly formed.
This command allow to run a serie of tests to verify that api specification is correctly formed .
def lint(obj, api_id, file):
    try:
        with open(file, 'r') as f:
            api_spec = f.read()
    except FileNotFoundError:
        raise GraviteeioError("Missing values file {}".format(file))
    gio_config: GraviteeioConfig = obj['config']
    lint_service.validate_from_file(file, api_spec, DocumentType.oas, gio_config.linter_conf)
def lint ( obj , api_id , file ) : try : with open ( file , 'r' ) as f : api_spec = f . read ( ) except FileNotFoundError : raise GraviteeioError ( "Missing values file {}" . format ( file ) ) gio_config : GraviteeioConfig = obj [ 'config' ] lint_service . validate_from_file ( file , api_spec , DocumentType . oas , gio_config . linter_conf )
This command allow to run a serie of tests to verify that api specification is correctly formed.
This command allow to run a serie of tests to verify that api specification is correctly formed .
"""This command allow to run a serie of tests to verify that api specification is correctly formed."""
obj
api_id
file