async function initializeDataDirectory() {
  const dataDir = path.join(process.cwd(), 'data');
  try {
    await fs.access(dataDir);
  } catch {
    console.log('Creating data directory...');
    await fs.mkdir(dataDir, { recursive: true });
  }
}
@swagger
/api-docs/openapi.json:
  get:
    summary: Retrieve the OpenAPI specification
    description: |
      Returns the complete OpenAPI specification for the Paperless-AI API.
      This endpoint attempts to serve a static OpenAPI JSON file first, falling back
      to dynamically generating the specification if the file cannot be read.
      
      The OpenAPI specification document contains all API endpoints, parameters,
      request bodies, responses, and schemas for the entire application.
    tags: [API, System]
    responses:
      200:
        description: OpenAPI specification returned successfully
        content:
          application/json:
            schema:
              type: object
              description: The complete OpenAPI specification
      404:
        description: OpenAPI specification file not found
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Error'
      500:
        description: Server error occurred while retrieving the OpenAPI specification
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Error'