1 unstable release

Uses new Rust 2024

new 0.1.0 May 12, 2025

#1114 in Web programming


Used in tinc

MIT/Apache

215KB
3.5K SLoC

openapiv3_1

[!WARNING]
This crate is under active development and may not be stable.

crates.io docs.rs


Rust implementation of OpenAPI Spec v3.1.x

A lof the code was taken from utoipa.

The main difference is the full JSON Schema 2020-12 Definitions.

Features

  • debug: Enables derive(Debug) on all the types.
  • yaml: Enables to_yaml function.

Alternatives

  • openapiv3: Implements the openapi v3.0.x spec, does not implement full json schema draft 2020-12 spec.
  • utoipa: A fully fletched openapi-type-generator implementing some of the v3.1.x spec.
  • schemars: A fully fletched jsonschema-type-generator implementing some of the json schema draft 2020-12 spec.

Status

This crate is currently under development and is not yet stable.

Unit tests are not yet fully implemented. Use at your own risk.

License

This project is licensed under the MIT or Apache-2.0 license. You can choose between one of them if you use this work.

SPDX-License-Identifier: MIT OR Apache-2.0

Dependencies

~2.4–4MB
~76K SLoC