Struct openapi::Schema [] [src]

pub struct Schema {
    pub ref_path: Option<String>,
    pub description: Option<String>,
    pub schema_type: Option<String>,
    pub format: Option<String>,
    pub enum_values: Option<Vec<String>>,
    pub required: Option<Vec<String>>,
    pub items: Option<Box<Schema>>,
    pub properties: Option<BTreeMap<String, Schema>>,
}

A JSON schema definition describing the shape and properties of an object.

This may also contain a $ref to another definition

Fields

a JSON reference path to another defintion

Trait Implementations

impl Debug for Schema
[src]

Formats the value using the given formatter.

impl PartialEq for Schema
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.