Rust crate for serializing and deserializing open api documents

open api open api documents

open api

Rust crate for serializing and deserializing open api documents

Documentation

install

add the following to your Cargo.toml file

usage

Doug Tangren (softprops) 2017

Issues

Collection of the latest Issues

rbtcollins

rbtcollins

1

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

JRAndreassen

JRAndreassen

1

Hi...

First, great work...

I'm having a lot of trouble with parsing yaml files. But, it's really difficult to determine where the error lies. All I get is: error: Yaml(Message("data did not match any variant of untagged enum OpenApi", None)) I've trace'd it, I even created a Manual Deserializer. It parses the top level, but has problems with a sub-level parsing (in "components").

Is there a way to get it to generate a better error. At least the token it barfs on ?

Thanks JR

gabcbrown

gabcbrown

14

Crate version 0.1.5 does not include OpenApi 3.0 support, though it looks like the code for it has already been written. Can this be published?

JordiPolo

JordiPolo

0

Support keys in the format x-vendorextension. I believe these can be written at any level so maybe is a challenge to do with Serde

JordiPolo

JordiPolo

4

Support for $ref as text was added before. But ideally these $ref are deserialized into pointers to other structs or something like that. The deserialization should fail if the ref does not point to any known point. To validate if a ref exist in the doc I'm doing this really really terrible code: https://github.com/JordiPolo/oatool/blob/master/src/main.rs#L26

If real support is added, then all this code disappears as a non-proper ref would cause deserialization error.

JordiPolo

JordiPolo

1

I've started working on code based on this library and working with Operations is difficult I want to do something like:

But each operation is a different field in the structure, I do not know if it's possible to iterate them in Rust

JordiPolo

JordiPolo

1

Currently there is support for OpenAPI 2.0. I think OpenAPI < 2.0 and > 2.0 are not compatible with 2.0 so probably the deserialization should check the version and fail gracefully

Information - Updated Mar 06, 2022

Stars: 97
Forks: 43
Issues: 20

Repositories & Extras

Rust library for Self Organising Maps (SOM)

Add rusticsom as a dependency in Cargo

Rust library for Self Organising Maps (SOM)

Rust library for parsing configuration files

The 'option' can be any string with no whitespace

Rust library for parsing configuration files

Rust library for the Pimoroni Four Letter pHAT

This library aims to port ht16k33 (or rather a fork, as of right now) so credit goes to ht16k33-diet

Rust library for the Pimoroni Four Letter pHAT

Rust library for emulating 32-bit RISC-V

This library can execute instructions against any memory and register file that implements

Rust library for emulating 32-bit RISC-V

Rust library for connecting to the IPFS HTTP API using Hyper/Actix

You can use actix-web as a backend instead of hyper

Rust library for connecting to the IPFS HTTP API using Hyper/Actix

Rust library to manipulate file system access control lists (ACL) on macOS, Linux, and FreeBSD

This module provides two high level functions, getfacl and setfacl

Rust library to manipulate file system access control lists (ACL) on macOS, Linux, and FreeBSD

Rust library translation (rust-src/rust-std/stdlib/rustlib translation)

This is the place to translate Having a documentation in your native language is essential if you don't speak English, and still enjoyable even if...

Rust library translation (rust-src/rust-std/stdlib/rustlib translation)

Rust library for using Infrared hardware decoders (For example a Vishay TSOP* decoder),

enabling remote control support for embedded project

Rust library for using Infrared hardware decoders (For example a Vishay TSOP* decoder),

Rust library for interaction with the OriginTrail Decentralized Knowledge Graph

open up an issue on this repository and let us know

Rust library for interaction with the OriginTrail Decentralized Knowledge Graph

Rust library for parsing COLLADA files

Notice: This library is built around files exported from Blender 2

Rust library for parsing COLLADA files

Rust library for low-level abstraction of MIPS32 processors

This project is licensed under the terms of the MIT license

Rust library for low-level abstraction of MIPS32 processors
Facebook Instagram Twitter GitHub Dribbble
Privacy