Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/baerwang/openapi-rs
/ functions
Functions
163 in github.com/baerwang/openapi-rs
⨍
Functions
163
◇
Types & classes
36
↓ 11 callers
Function
test_query_validation
(openapi: &OpenAPI, params: &[(&str, &str)], should_succeed: bool)
src/validator/pattern_test.rs:163
↓ 8 callers
Method
method
(&self, open_api: &OpenAPI)
src/request/axum.rs:39
↓ 8 callers
Function
query
(path: &str, query_pairs: &HashMap<String, String>, open_api: &OpenAPI)
src/validator/mod.rs:120
↓ 7 callers
Method
body
(&self, open_api: &OpenAPI)
src/request/axum.rs:83
↓ 7 callers
Function
format_error
(kind: &str, key: &str, value: &str)
src/validator/mod.rs:900
↓ 7 callers
Function
validate_field_format
(key: &str, value: &Value, format: Option<&Format>)
src/validator/mod.rs:460
↓ 7 callers
Function
validate_field_type
(key: &str, value: &Value, field_type: Option<TypeOrUnion>)
src/validator/mod.rs:594
↓ 6 callers
Function
create_openapi_with_parameters
(parameters: Vec<Parameter>)
src/validator/pattern_test.rs:136
↓ 6 callers
Function
get
(query: web::Query<UserQuery>)
examples/actix-web/src/main.rs:30
↓ 6 callers
Method
validator
(&self, valid: impl ValidateRequest)
src/model/parse.rs:81
↓ 5 callers
Method
context
(&self)
src/request/axum.rs:95
↓ 5 callers
Function
validate_pattern
(key: &str, value: &Value, pattern: Option<&String>)
src/validator/mod.rs:1038
↓ 4 callers
Function
body
(path: &str, fields: Value, open_api: &OpenAPI)
src/validator/mod.rs:227
↓ 4 callers
Function
extract_required_and_validate_props
( fields: &Map<String, Value>, schema_ref: &str, components: &ComponentsObject, )
src/validator/mod.rs:909
↓ 4 callers
Function
validate_enum_value
(key: &str, value: &Value, enum_values: &[serde_yaml::Value])
src/validator/mod.rs:508
↓ 3 callers
Function
create_parameter_with_pattern
( name: &str, pattern: Option<String>, required: bool, )
src/validator/pattern_test.rs:73
↓ 2 callers
Function
collect_refs
(schema: &parse::Schema)
src/validator/mod.rs:962
↓ 2 callers
Function
ensure_type
(actual: &Option<TypeOrUnion>, expected: Type)
src/validator/mod.rs:399
↓ 2 callers
Function
init_logger
Initialize logger with default configuration
src/observability/mod.rs:154
↓ 2 callers
Function
make_request
(uri: &str)
examples/observability_test.rs:51
↓ 2 callers
Function
method
(path: &str, method: &str, open_api: &OpenAPI)
src/validator/mod.rs:46
↓ 2 callers
Function
path
(path: &str, uri: &str, open_api: &OpenAPI)
src/validator/mod.rs:64
↓ 2 callers
Method
path
(&self, open_api: &OpenAPI)
src/request/axum.rs:75
↓ 2 callers
Function
validate_numeric_range
(key: &str, value: f64, properties: &Properties)
src/validator/mod.rs:848
↓ 2 callers
Function
validate_properties
( fields: &Map<String, Value>, properties: &Option<HashMap<String, Properties>>, )
src/validator/mod.rs:934
↓ 2 callers
Function
validate_single_type
( key: &str, value: &Value, type_: &Type, properties: &Properties, )
src/validator/mod.rs:732
↓ 1 callers
Function
create_base_openapi
()
src/validator/pattern_test.rs:55
↓ 1 callers
Function
create_parameter_with_schema_pattern
( name: &str, pattern: Option<String>, required: bool, )
src/validator/pattern_test.rs:93
↓ 1 callers
Function
demonstrate_complete_32_spec
Demonstrates a complete OpenAPI 3.2 specification
examples/openapi_32_features.rs:364
↓ 1 callers
Function
demonstrate_info_summary
Demonstrates the info.summary field
examples/openapi_32_features.rs:124
↓ 1 callers
Function
demonstrate_json_schema_dialect
Demonstrates parsing and working with JSON Schema Dialect
examples/openapi_31_features.rs:182
↓ 1 callers
Function
demonstrate_query_method
Demonstrates the QUERY HTTP method
examples/openapi_32_features.rs:268
↓ 1 callers
Function
demonstrate_querystring_parameter
Demonstrates the querystring parameter type
examples/openapi_32_features.rs:168
↓ 1 callers
Function
demonstrate_self_field
Demonstrates the $self field (base URI for the API)
examples/openapi_32_features.rs:74
↓ 1 callers
Function
demonstrate_webhooks
Demonstrates parsing and working with webhooks
examples/openapi_31_features.rs:51
↓ 1 callers
Function
get_schema_info
( refs: &[&str], open_api: &'a OpenAPI, )
src/validator/mod.rs:308
↓ 1 callers
Function
init_logger_with_config
Initialize logger with specified configuration
src/observability/mod.rs:159
↓ 1 callers
Function
make_request_body_with_value
(value: &str)
src/validator/validator_test.rs:26
↓ 1 callers
Function
make_request_with_query_and_body
(query: &str, body: &str)
src/validator/validator_test.rs:928
↓ 1 callers
Method
method
(&self, open_api: &OpenAPI)
src/request/actix_web.rs:48
↓ 1 callers
Method
path
(&self, open_api: &OpenAPI)
src/request/actix_web.rs:71
↓ 1 callers
Method
perform_validation
(&self, valid: impl ValidateRequest)
src/model/parse.rs:94
↓ 1 callers
Function
process_schema_refs
( schema: &parse::Schema, fields: &Map<String, Value>, requireds: &mut HashSet<String>, open_a
src/validator/mod.rs:92
↓ 1 callers
Method
query
(&self, open_api: &OpenAPI)
src/request/axum.rs:47
↓ 1 callers
Method
record_failure
(self, error: String)
src/observability/mod.rs:65
↓ 1 callers
Method
record_success
(self)
src/observability/mod.rs:52
↓ 1 callers
Function
validate_array_items
( arr: &[Value], request: &Request, refs: &[&str], open_api: &OpenAPI, )
src/validator/mod.rs:357
↓ 1 callers
Function
validate_array_length
(key: &str, length: usize, properties: &Properties)
src/validator/mod.rs:874
↓ 1 callers
Function
validate_array_length_with_schema
( length: usize, schema: &parse::ComponentSchemaBase, )
src/validator/mod.rs:372
↓ 1 callers
Function
validate_field_length_limit
(key: &str, value: &Value, properties: &Properties)
src/validator/mod.rs:716
↓ 1 callers
Function
validate_map
( fields: &Map<String, Value>, request: &Request, refs: &[&str], open_api: &OpenAPI, )
src/validator/mod.rs:425
↓ 1 callers
Function
validate_numeric_constraints
(key: &str, value: &Value, schema: &parse::Schema)
src/validator/mod.rs:1011
↓ 1 callers
Function
validate_object_body
( fields: &Map<String, Value>, request: &Request, refs: &[&str], open_api: &OpenAPI, )
src/validator/mod.rs:322
↓ 1 callers
Function
validate_required_fields
( requireds: &HashSet<String>, query_pairs: &HashMap<String, String>, )
src/validator/mod.rs:108
↓ 1 callers
Function
validate_single_type_match
(value: &Value, field_type: &Type)
src/validator/mod.rs:696
↓ 1 callers
Function
validate_string_constraints
(key: &str, value: &Value, schema: &parse::Schema)
src/validator/mod.rs:984
↓ 1 callers
Function
validate_string_length
(key: &str, str_val: &str, properties: &Properties)
src/validator/mod.rs:820
↓ 1 callers
Function
validate_union_types
( key: &str, value: &Value, types: &[Type], properties: &Properties, )
src/validator/mod.rs:786
↓ 1 callers
Function
values_equal
(json_val: &Value, yaml_val: &serde_yaml::Value)
src/validator/mod.rs:525
Function
backward_compat_31_works_with_32_fields
()
tests/tests.rs:755
Function
backward_compat_32_parses_31_spec
()
tests/tests.rs:783
Method
body
(&self, open_api: &OpenAPI)
src/request/actix_web.rs:79
Method
call
(&self, req: ServiceRequest)
src/request/actix_web.rs:180
Function
complex_real_world_api_spec
()
tests/tests.rs:1821
Method
context
(&self)
src/request/actix_web.rs:91
Function
create
(user: web::Json<User>)
examples/actix-web/src/main.rs:54
Function
create_user
(Json(payload): Json<User>)
examples/axum/src/main.rs:123
Method
default
()
src/observability/mod.rs:98
Function
dummy_handler
()
src/request/actix_web.rs:294
Method
extract_body_safely
( mut payload: Payload, _req: &HttpRequest, )
src/request/actix_web.rs:248
Function
format_json_value
(value: &Value)
src/validator/mod.rs:585
Function
format_types_validation
()
src/validator/validator_test.rs:385
Function
format_yaml_value
(value: &serde_yaml::Value)
src/validator/mod.rs:575
Method
from_context
(context: &RequestContext)
src/observability/mod.rs:48
Method
from_openapi
(openapi: crate::model::parse::OpenAPI)
src/request/actix_web.rs:280
Method
from_yaml
(yaml_content: &str)
src/request/actix_web.rs:137
Function
get_users
User related handlers
examples/axum/src/main.rs:99
Method
header
(&self, _: &OpenAPI)
src/request/actix_web.rs:44
Method
header
(&self, _: &OpenAPI)
src/request/axum.rs:35
Function
health_check
()
examples/actix-web/src/main.rs:72
Function
health_check
()
examples/axum/src/main.rs:132
Function
info_summary_edge_cases
()
tests/tests.rs:1194
Function
info_summary_optional_in_32
()
tests/tests.rs:1239
Method
is_31
Check if this is an OpenAPI 3.1 spec (3.1.x)
src/model/parse.rs:72
Method
is_32
Check if this is an OpenAPI 3.2 spec (3.2.x)
src/model/parse.rs:77
Function
json_schema_dialect_optional_field
()
tests/tests.rs:1105
Function
json_schema_dialect_variations
()
tests/tests.rs:1044
Function
main
()
examples/observability_test.rs:6
Function
main
()
examples/openapi_31_features.rs:27
Function
main
()
examples/openapi_32_features.rs:29
Function
main
()
examples/actix-web/src/main.rs:81
Function
main
()
examples/axum/src/main.rs:137
Function
make_request
(uri: &str)
src/validator/validator_test.rs:82
Method
new
(method: String, path: String)
src/observability/mod.rs:28
Method
new
(openapi: OpenAPI)
src/request/actix_web.rs:131
Method
new
( name: &'static str, pattern: &'static str, valid_values: Vec<&'static st
src/validator/pattern_test.rs:40
Method
new_transform
(&self, service: S)
src/request/actix_web.rs:155
Function
openapi_middleware
OpenAPI validation middleware
examples/axum/src/main.rs:36
Function
parse_all_3_1_and_3_2_fields_together
()
tests/tests.rs:807
Function
parse_components_all_of
()
tests/tests.rs:162
next →
1–100 of 163, ranked by callers