# Module /web/app/graph/openapi

Automatic OpenAPI 3.1 specification generator from /web/app route graphs and Struct schemas.

```tangu
(use /web/app/graph/openapi)
```

## Functions & symbols

### graph->openapi

`(graph->openapi graph info overrides)`

Construct an OpenAPI spec from an App-Graph.

| Parameter | Type | Optional | Description |
| :--- | :--- | :--- | :--- |
| `graph` | `Any` | no | — |
| `info` | `Any` | no | — |
| `overrides` | `Any` | no | — |

### routes->openapi

`(routes->openapi routes info)`

Constructs an OpenAPI 3.0.3 specification directly from route arrays and optional Struct metadata.

| Parameter | Type | Optional | Description |
| :--- | :--- | :--- | :--- |
| `routes` | `Any` | no | — |
| `info` | `Any` | no | — |

### struct->openapi-schema

`(struct->openapi-schema struct-type)`

Converts a Tangu `Struct` type into an OpenAPI 3.0 JSON Schema map.

| Parameter | Type | Optional | Description |
| :--- | :--- | :--- | :--- |
| `struct-type` | `Any` | no | — |
