MCPcopy Index your code
hub / github.com/Metaswitch/swagger-rs

github.com/Metaswitch/swagger-rs @7.0.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release 7.0.0 ↗ · + Follow
168 symbols 274 edges 16 files 33 documented · 20%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

swagger-rs

Build Status crates.io

A set of common utilities for crates generated by the rust-server openapi-generator generator

Releasing a new version

  1. Run ./release-changelog.sh <version> to update the changelog and Cargo.toml
  2. Commit and push your changes.
  3. Wait for a travis build to complete successfully.
  4. Run cargo publish.
  5. Tag the new version and push the tag.

Extension points exported contracts — how you extend this code

HasRemoteAddr (Interface)
Connection which has a remote address, which can thus be composited. [3 implementers]
src/composites.rs
RequestParser (Interface)
A trait for retrieving swagger-related information from a request. This allows other middlewares to retrieve API-relate [2 …
src/request_parser.rs
ErrorBound (Interface)
Helper Bound for Errors for MakeService/Service wrappers [1 implementers]
src/lib.rs
RcBound (Interface)
Bound for Request Context for MakeService wrappers [1 implementers]
src/auth.rs
BodyExt (Interface)
Additional function for converting body stream into Vec [1 implementers]
src/body.rs
Has (Interface)
Defines methods for accessing, modifying, adding and removing the data stored in a context. Used to specify the requirem
src/context.rs
NotFound (Interface)
Trait for generating a default "not found" response. Must be implemented on the `Response` associated type for `MakeServ [1 …
src/composites.rs
Pop (Interface)
Defines a method for permanently extracting a value, changing the resulting type. Used to specify that a hyper service c
src/context.rs

Core symbols most depended-on inside this repo

unwrap
called by 31
src/nullable_format.rs
map
called by 15
src/nullable_format.rs
and_then
called by 5
src/nullable_format.rs
create_multipart_headers
called by 5
src/multipart/related.rs
as_ref
called by 4
src/nullable_format.rs
validate
called by 4
src/nullable_format.rs
clone
called by 2
src/auth.rs
call
called by 2
src/auth.rs

Shape

Method 66
Function 55
Class 33
Interface 11
Enum 3

Languages

Rust100%

Modules by API surface

src/nullable_format.rs43 symbols
src/one_any_of.rs29 symbols
src/auth.rs19 symbols
src/composites.rs13 symbols
src/base64_format.rs13 symbols
src/context.rs12 symbols
src/connector.rs8 symbols
src/multipart/related.rs7 symbols
src/request_parser.rs5 symbols
src/lib.rs4 symbols
src/header.rs4 symbols
src/drop_context.rs4 symbols

For agents

$ claude mcp add swagger-rs \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact