> For the complete documentation index, see [llms.txt](https://docs.ladybug.tools/dragonfly-primer/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ladybug.tools/dragonfly-primer/components/2_serialize/validate_model.md).

# Validate Model

![](/files/rjwwOyNtPMMuIMsTMILD)

![](/files/JbjR7vL6PrMAuQsonhXq) - [\[source code\]](https://github.com/ladybug-tools/dragonfly-grasshopper/blob/master/dragonfly_grasshopper/src//DF%20Validate%20Model.py)

Get a validation report that contains a summary of all issues with the Model.

This includes basic properties like adjacency checks and all geometry checks. Furthermore, extension attributes for Energy and Radiance can be checked to ensure that the model can be simulated correctly in these engines.

### Inputs

* **model \[Required]**

A Dragonfly Model object to be validated. This can also be the file path to a Model DFJSON that will be validated.

* **extension**

Optional text for the name of the dragonfly extension for which validation will occur. The value input here is case-insensitive such that "radiance" and "Radiance" will both result in the model being checked for validity with dragonfly-radiance. This value can also be set to "Generic" in order to run checks for all installed extensions. Using "Generic" will run all except the most limiting of checks (like DOE2's lack of support for courtyards) with the goal of producing a model that is export-able to multiple engines (albeit with a little extra postprocessing for particularly limited engines). Some common dragonfly extension names that can be input here if they are installed include the following. (Default: Generic).

```
* Radiance

* EnergyPlus

* OpenStudio

* DOE2
```

* **validate \[Required]**

Set to "True" to validate the the Model and get a report of all issues with the model.

### Outputs

* **report**

A report summarizing any issues with the input \_model. If anything is invalid about the input model, this component will give a warning and this report will contain information about the specific parts of the model that are invalid. Otherwise, this report will simply say that the input model is valid.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.ladybug.tools/dragonfly-primer/components/2_serialize/validate_model.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
