Version 4.0.24.12
Validate Project
Performs lint validation of all lookml files in the project.
Returns a list of errors found, if any.
Validating the content of all the files in a project can be computationally intensive
for large projects. For best performance, call validate_project(project_id)
only
when you really want to recompute project validation. To quickly display the results of
the most recent project validation (without recomputing), use project_validation_results(project_id)
Request
POST
/projects/{project_id}/validate
Expand HTTP Path definition...
project_id
string
Project Id
Expand HTTP Query definition...
fields
string
Requested fields
Response
200: Project validation results
Expand ProjectError definition...
code
lock
string
A stable token that uniquely identifies this class of error, ignoring parameter values. Error message text may vary due to parameters or localization, but error codes do not. For example, a "File not found" error will have the same error code regardless of the filename in question or the user's display language
severity
lock
string
Severity: fatal, error, warning, info, success
kind
lock
string
Error classification: syntax, deprecation, model_configuration, etc
message
lock
string
Error message which may contain information such as dashboard or model names that may be considered sensitive in some use cases. Avoid storing or sending this message outside of Looker
field_name
lock
string
The field associated with this error
file_path
lock
string
Name of the file containing this error
line_number
lock
integer
Line number in the file of this error
model_id
lock
string
The model associated with this error
explore
lock
string
The explore associated with this error
help_url
lock
string
A link to Looker documentation about this error
params
lock
object
Error parameters
sanitized_message
lock
string
A version of the error message that does not contain potentially sensitive information. Suitable for situations in which messages are stored or sent to consumers outside of Looker, such as external logs. Sanitized messages will display "(?)" where sensitive information would appear in the corresponding non-sanitized message
project_digest
lock
string
A hash value computed from the project's current state
Expand ModelsNotValidated definition...
name
lock
string
Model name
project_file_id
lock
string
Project file
computation_time
lock
number
Duration of project validation in seconds
400: Bad Request
message
lock
string
Error details
documentation_url
lock
string
Documentation link
404: Not Found
message
lock
string
Error details
documentation_url
lock
string
Documentation link
422: Validation Error
message
lock
string
Error details
Expand ValidationErrorDetail definition...
field
lock
string
Field with error
code
lock
string
Error code
message
lock
string
Error info message
documentation_url
lock
string
Documentation link
documentation_url
lock
string
Documentation link
429: Too Many Requests
message
lock
string
Error details
documentation_url
lock
string
Documentation link
Examples