openapi-gen 0.3.1

Rust macro to generate client from OpenAPI spec.
Documentation
use openapi_gen::openapi_client;

// Test that client documentation includes API info
openapi_client!("openapi.json", "FullyDocumentedApi");

#[test]
fn test_comprehensive_documentation() {
    // The client should be fully documented with:
    // - API title and description from the OpenAPI spec
    // - Version information (2.1.0)
    // - License information (MIT)
    // - Contact information (test@example.com)
    // - Terms of service
    // - Usage examples
    
    let _client = FullyDocumentedApi::new("https://api.test.com/v2");
    
    // Test that we can call the generated methods
    // (This is a compile-time test - if it compiles, the docs were generated correctly)
}

#[test]
fn test_method_signatures() {
    let _client = FullyDocumentedApi::new("https://api.test.com/v2");
    
    // Test that we have properly typed methods that match the OpenAPI spec
    // Each method should have proper documentation from the operation summary/description
    
    // Note: These are compile-time tests - we're not actually calling the methods
    // but verifying they exist with the correct signatures
    
    // The existence of these method calls validates that:
    // 1. The methods were generated
    // 2. They have the correct parameter types
    // 3. They have the correct return types
    // 4. Documentation was generated without breaking the code
    
    // Example methods that should exist based on the Petstore API:
    // client.add_pet(...);
    // client.update_pet(...);
    // client.find_pets_by_status(...);
    // client.get_pet_by_id(...);
}