gotcha 0.3.0

Enhanced web framework built on top of Axum with OpenAPI, metrics, and configuration management
Documentation
1
2
3
4
5
6
7
8
9
10
11
use gotcha::Schematic;
use std::collections::HashMap;
use assert_json_diff::assert_json_eq;

fn main() {
    let schema = HashMap::<String, String>::generate_schema();
    let schema_json = serde_json::to_value(&schema.schema).unwrap();
    println!("schema_json: {:?}", schema_json);
    let expected_json: serde_json::Value = serde_json::from_str(include_str!("hashmap.json")).unwrap();
    assert_json_eq!(schema_json,expected_json);
}