Skip to main content

infrahub_sdk.ctl.validate

Functions

callback

callback() -> None

Helper to validate the format of various files.

validate_schema

validate_schema(schema: Path, _: str = CONFIG_PARAM) -> None

Validate the format of a schema file either in JSON or YAML

validate_graphql

validate_graphql(query: str, variables: Optional[list[str]] = typer.Argument(None, help='Variables to pass along with the query. Format key=value key=value.'), debug: bool = typer.Option(False, help='Display more troubleshooting information.'), branch: str = typer.Option(None, help='Branch on which to validate the GraphQL Query.'), _: str = CONFIG_PARAM, out: str = typer.Option(None, help='Path to a file to save the result.')) -> None

Validate the format of a GraphQL Query stored locally by executing it on a remote GraphQL endpoint