openapi-gen 0.3.1

Rust macro to generate client from OpenAPI spec.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use openapi_gen::openapi_client;

// Generate client with documentation
openapi_client!("openapi.json", "DocumentedPetStoreApi");

#[test]
fn test_generated_documentation() {
    // Test that the client compiles and can be instantiated
    let _client = DocumentedPetStoreApi::new("https://api.example.com");
    
    // The generated structs and methods should have documentation
    // This test mainly verifies compilation with the new doc generation
}