generateOpenApi property

bool generateOpenApi
final

Whether to generate an OpenAPI 3.0 specification file.

When true, the generator will create a .openapi.json file containing a RESTful OpenAPI 3.0 specification that represents the tools as standard API endpoints following REST conventions.

The generated spec maps tool operations to HTTP methods:

  • Create operations → POST /{resource}
  • List operations → GET /{resource}
  • Get by ID → GET /{resource}/{id}
  • Update operations → PATCH /{resource}/{id}
  • Delete operations → DELETE /{resource}/{id}

Defaults to false.

Implementation

final bool generateOpenApi;