MCPcopy Create free account
hub / github.com/baerwang/openapi-rs / create_base_openapi

Function create_base_openapi

src/validator/pattern_test.rs:55–71  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

53 }
54
55 fn create_base_openapi() -> OpenAPI {
56 OpenAPI {
57 openapi: "3.1.0".to_string(),
58 info: InfoObject {
59 title: "Test API".to_string(),
60 description: None,
61 version: "1.0.0".to_string(),
62 summary: None,
63 },
64 servers: vec![],
65 paths: HashMap::new(),
66 components: None,
67 json_schema_dialect: None,
68 webhooks: None,
69 self_ref: None,
70 }
71 }
72
73 fn create_parameter_with_pattern(
74 name: &str,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected