MCPcopy Create free account

hub / github.com/baerwang/openapi-rs / functions

Functions163 in github.com/baerwang/openapi-rs

↓ 11 callersFunctiontest_query_validation
(openapi: &OpenAPI, params: &[(&str, &str)], should_succeed: bool)
src/validator/pattern_test.rs:163
↓ 8 callersMethodmethod
(&self, open_api: &OpenAPI)
src/request/axum.rs:39
↓ 8 callersFunctionquery
(path: &str, query_pairs: &HashMap<String, String>, open_api: &OpenAPI)
src/validator/mod.rs:120
↓ 7 callersMethodbody
(&self, open_api: &OpenAPI)
src/request/axum.rs:83
↓ 7 callersFunctionformat_error
(kind: &str, key: &str, value: &str)
src/validator/mod.rs:900
↓ 7 callersFunctionvalidate_field_format
(key: &str, value: &Value, format: Option<&Format>)
src/validator/mod.rs:460
↓ 7 callersFunctionvalidate_field_type
(key: &str, value: &Value, field_type: Option<TypeOrUnion>)
src/validator/mod.rs:594
↓ 6 callersFunctioncreate_openapi_with_parameters
(parameters: Vec<Parameter>)
src/validator/pattern_test.rs:136
↓ 6 callersFunctionget
(query: web::Query<UserQuery>)
examples/actix-web/src/main.rs:30
↓ 6 callersMethodvalidator
(&self, valid: impl ValidateRequest)
src/model/parse.rs:81
↓ 5 callersMethodcontext
(&self)
src/request/axum.rs:95
↓ 5 callersFunctionvalidate_pattern
(key: &str, value: &Value, pattern: Option<&String>)
src/validator/mod.rs:1038
↓ 4 callersFunctionbody
(path: &str, fields: Value, open_api: &OpenAPI)
src/validator/mod.rs:227
↓ 4 callersFunctionextract_required_and_validate_props
( fields: &Map<String, Value>, schema_ref: &str, components: &ComponentsObject, )
src/validator/mod.rs:909
↓ 4 callersFunctionvalidate_enum_value
(key: &str, value: &Value, enum_values: &[serde_yaml::Value])
src/validator/mod.rs:508
↓ 3 callersFunctioncreate_parameter_with_pattern
( name: &str, pattern: Option<String>, required: bool, )
src/validator/pattern_test.rs:73
↓ 2 callersFunctioncollect_refs
(schema: &parse::Schema)
src/validator/mod.rs:962
↓ 2 callersFunctionensure_type
(actual: &Option<TypeOrUnion>, expected: Type)
src/validator/mod.rs:399
↓ 2 callersFunctioninit_logger
Initialize logger with default configuration
src/observability/mod.rs:154
↓ 2 callersFunctionmake_request
(uri: &str)
examples/observability_test.rs:51
↓ 2 callersFunctionmethod
(path: &str, method: &str, open_api: &OpenAPI)
src/validator/mod.rs:46
↓ 2 callersFunctionpath
(path: &str, uri: &str, open_api: &OpenAPI)
src/validator/mod.rs:64
↓ 2 callersMethodpath
(&self, open_api: &OpenAPI)
src/request/axum.rs:75
↓ 2 callersFunctionvalidate_numeric_range
(key: &str, value: f64, properties: &Properties)
src/validator/mod.rs:848
↓ 2 callersFunctionvalidate_properties
( fields: &Map<String, Value>, properties: &Option<HashMap<String, Properties>>, )
src/validator/mod.rs:934
↓ 2 callersFunctionvalidate_single_type
( key: &str, value: &Value, type_: &Type, properties: &Properties, )
src/validator/mod.rs:732
↓ 1 callersFunctioncreate_base_openapi
()
src/validator/pattern_test.rs:55
↓ 1 callersFunctioncreate_parameter_with_schema_pattern
( name: &str, pattern: Option<String>, required: bool, )
src/validator/pattern_test.rs:93
↓ 1 callersFunctiondemonstrate_complete_32_spec
Demonstrates a complete OpenAPI 3.2 specification
examples/openapi_32_features.rs:364
↓ 1 callersFunctiondemonstrate_info_summary
Demonstrates the info.summary field
examples/openapi_32_features.rs:124
↓ 1 callersFunctiondemonstrate_json_schema_dialect
Demonstrates parsing and working with JSON Schema Dialect
examples/openapi_31_features.rs:182
↓ 1 callersFunctiondemonstrate_query_method
Demonstrates the QUERY HTTP method
examples/openapi_32_features.rs:268
↓ 1 callersFunctiondemonstrate_querystring_parameter
Demonstrates the querystring parameter type
examples/openapi_32_features.rs:168
↓ 1 callersFunctiondemonstrate_self_field
Demonstrates the $self field (base URI for the API)
examples/openapi_32_features.rs:74
↓ 1 callersFunctiondemonstrate_webhooks
Demonstrates parsing and working with webhooks
examples/openapi_31_features.rs:51
↓ 1 callersFunctionget_schema_info
( refs: &[&str], open_api: &'a OpenAPI, )
src/validator/mod.rs:308
↓ 1 callersFunctioninit_logger_with_config
Initialize logger with specified configuration
src/observability/mod.rs:159
↓ 1 callersFunctionmake_request_body_with_value
(value: &str)
src/validator/validator_test.rs:26
↓ 1 callersFunctionmake_request_with_query_and_body
(query: &str, body: &str)
src/validator/validator_test.rs:928
↓ 1 callersMethodmethod
(&self, open_api: &OpenAPI)
src/request/actix_web.rs:48
↓ 1 callersMethodpath
(&self, open_api: &OpenAPI)
src/request/actix_web.rs:71
↓ 1 callersMethodperform_validation
(&self, valid: impl ValidateRequest)
src/model/parse.rs:94
↓ 1 callersFunctionprocess_schema_refs
( schema: &parse::Schema, fields: &Map<String, Value>, requireds: &mut HashSet<String>, open_a
src/validator/mod.rs:92
↓ 1 callersMethodquery
(&self, open_api: &OpenAPI)
src/request/axum.rs:47
↓ 1 callersMethodrecord_failure
(self, error: String)
src/observability/mod.rs:65
↓ 1 callersMethodrecord_success
(self)
src/observability/mod.rs:52
↓ 1 callersFunctionvalidate_array_items
( arr: &[Value], request: &Request, refs: &[&str], open_api: &OpenAPI, )
src/validator/mod.rs:357
↓ 1 callersFunctionvalidate_array_length
(key: &str, length: usize, properties: &Properties)
src/validator/mod.rs:874
↓ 1 callersFunctionvalidate_array_length_with_schema
( length: usize, schema: &parse::ComponentSchemaBase, )
src/validator/mod.rs:372
↓ 1 callersFunctionvalidate_field_length_limit
(key: &str, value: &Value, properties: &Properties)
src/validator/mod.rs:716
↓ 1 callersFunctionvalidate_map
( fields: &Map<String, Value>, request: &Request, refs: &[&str], open_api: &OpenAPI, )
src/validator/mod.rs:425
↓ 1 callersFunctionvalidate_numeric_constraints
(key: &str, value: &Value, schema: &parse::Schema)
src/validator/mod.rs:1011
↓ 1 callersFunctionvalidate_object_body
( fields: &Map<String, Value>, request: &Request, refs: &[&str], open_api: &OpenAPI, )
src/validator/mod.rs:322
↓ 1 callersFunctionvalidate_required_fields
( requireds: &HashSet<String>, query_pairs: &HashMap<String, String>, )
src/validator/mod.rs:108
↓ 1 callersFunctionvalidate_single_type_match
(value: &Value, field_type: &Type)
src/validator/mod.rs:696
↓ 1 callersFunctionvalidate_string_constraints
(key: &str, value: &Value, schema: &parse::Schema)
src/validator/mod.rs:984
↓ 1 callersFunctionvalidate_string_length
(key: &str, str_val: &str, properties: &Properties)
src/validator/mod.rs:820
↓ 1 callersFunctionvalidate_union_types
( key: &str, value: &Value, types: &[Type], properties: &Properties, )
src/validator/mod.rs:786
↓ 1 callersFunctionvalues_equal
(json_val: &Value, yaml_val: &serde_yaml::Value)
src/validator/mod.rs:525
Functionbackward_compat_31_works_with_32_fields
()
tests/tests.rs:755
Functionbackward_compat_32_parses_31_spec
()
tests/tests.rs:783
Methodbody
(&self, open_api: &OpenAPI)
src/request/actix_web.rs:79
Methodcall
(&self, req: ServiceRequest)
src/request/actix_web.rs:180
Functioncomplex_real_world_api_spec
()
tests/tests.rs:1821
Methodcontext
(&self)
src/request/actix_web.rs:91
Functioncreate
(user: web::Json<User>)
examples/actix-web/src/main.rs:54
Functioncreate_user
(Json(payload): Json<User>)
examples/axum/src/main.rs:123
Methoddefault
()
src/observability/mod.rs:98
Functiondummy_handler
()
src/request/actix_web.rs:294
Methodextract_body_safely
( mut payload: Payload, _req: &HttpRequest, )
src/request/actix_web.rs:248
Functionformat_json_value
(value: &Value)
src/validator/mod.rs:585
Functionformat_types_validation
()
src/validator/validator_test.rs:385
Functionformat_yaml_value
(value: &serde_yaml::Value)
src/validator/mod.rs:575
Methodfrom_context
(context: &RequestContext)
src/observability/mod.rs:48
Methodfrom_openapi
(openapi: crate::model::parse::OpenAPI)
src/request/actix_web.rs:280
Methodfrom_yaml
(yaml_content: &str)
src/request/actix_web.rs:137
Functionget_users
User related handlers
examples/axum/src/main.rs:99
Methodheader
(&self, _: &OpenAPI)
src/request/actix_web.rs:44
Methodheader
(&self, _: &OpenAPI)
src/request/axum.rs:35
Functionhealth_check
()
examples/actix-web/src/main.rs:72
Functionhealth_check
()
examples/axum/src/main.rs:132
Functioninfo_summary_edge_cases
()
tests/tests.rs:1194
Functioninfo_summary_optional_in_32
()
tests/tests.rs:1239
Methodis_31
Check if this is an OpenAPI 3.1 spec (3.1.x)
src/model/parse.rs:72
Methodis_32
Check if this is an OpenAPI 3.2 spec (3.2.x)
src/model/parse.rs:77
Functionjson_schema_dialect_optional_field
()
tests/tests.rs:1105
Functionjson_schema_dialect_variations
()
tests/tests.rs:1044
Functionmain
()
examples/observability_test.rs:6
Functionmain
()
examples/openapi_31_features.rs:27
Functionmain
()
examples/openapi_32_features.rs:29
Functionmain
()
examples/actix-web/src/main.rs:81
Functionmain
()
examples/axum/src/main.rs:137
Functionmake_request
(uri: &str)
src/validator/validator_test.rs:82
Methodnew
(method: String, path: String)
src/observability/mod.rs:28
Methodnew
(openapi: OpenAPI)
src/request/actix_web.rs:131
Methodnew
( name: &'static str, pattern: &'static str, valid_values: Vec<&'static st
src/validator/pattern_test.rs:40
Methodnew_transform
(&self, service: S)
src/request/actix_web.rs:155
Functionopenapi_middleware
OpenAPI validation middleware
examples/axum/src/main.rs:36
Functionparse_all_3_1_and_3_2_fields_together
()
tests/tests.rs:807
Functionparse_components_all_of
()
tests/tests.rs:162
next →1–100 of 163, ranked by callers