openapi icon indicating copy to clipboard operation
openapi copied to clipboard

openapi schema serialization for rust

Results 26 openapi issues
Sort by recently updated
recently updated
newest added

This PR uses the derive_builder crate to derive builder classes for all structs. This enables writing an OpenApi Spec in a much more readable and straight forward fashion (No need...

The current version we depend on uses the obsolete `difference` crate so let's upgrade `pretty-assertions` to the latest version.

Commit e2d506c ("Replace failure dependency with thiserror/anyhow") already replaced the use of obsolete failure crate, but let's also remove it from dependencies.

Added the `SecurityRequirement` struct and `Method` enum

Add field "security" to the Spec struct to support Security Requirements

I've started working on code based on this library and working with Operations is difficult I want to do something like: ``` for operation in operations { ... } ```...

There seem to be lots of unmerged PRs, and unreleased code changes. Is help needed?

1. Also boxed the variants because they are extremely large....I don't want this on the stack. Signed-off-by: Hanif Bin Ariffin

Added: * Support for deprecated operations in V2 * see https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#fixed-fields-5 * Support for deprecated parameters in V3 * see https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md#fixed-fields-10 * Support for deprecated schemas in V3 * see...

1. Enums can hold any value: boolean, strings, numbers...so just use JsonValue 2. Items can point to Ref so wrap Schema inside ObjectOrReference 3. Reorder ObjectOrReference because they are untagged,...