pub struct NamedType {Show 14 fields
pub id: String,
pub original_name: Option<String>,
pub title: Option<String>,
pub description: Option<String>,
pub deprecated: bool,
pub read_only: bool,
pub write_only: bool,
pub external_docs: Option<ExternalDocs>,
pub default: Option<ValueRef>,
pub examples: Vec<(String, Example)>,
pub xml: Option<XmlObject>,
pub definition: TypeDef,
pub extensions: Vec<(String, ValueRef)>,
pub location: Option<SpecLocation>,
}Fields§
§id: String§original_name: Option<String>§title: Option<String>JSON Schema title — short human label.
description: Option<String>JSON Schema / OAS description (CommonMark).
deprecated: boolJSON Schema 2020-12 deprecated.
read_only: boolJSON Schema readOnly at the schema level. Generators that
distinguish request from response shapes can opt to drop
read_only types from their request surface.
write_only: boolJSON Schema writeOnly at the schema level. Generators that
distinguish request from response shapes can opt to drop
write_only types from their response surface.
external_docs: Option<ExternalDocs>Per-schema externalDocs (OAS Schema Object).
default: Option<ValueRef>JSON Schema default at the schema level. ValueRef indexes
into crate::Ir::values; compound defaults are pooled there.
examples: Vec<(String, Example)>OAS example / examples on the schema. Named entries; 3.0
example: <literal> lands under the synthetic key "_default".
xml: Option<XmlObject>OAS xml block — name override, namespace, prefix, attribute
placement, array wrapping. None unless the spec declared one.
definition: TypeDef§extensions: Vec<(String, ValueRef)>x-* extensions declared on the schema. Each entry pairs a key
with a ValueRef into crate::Ir::values; compound values
are pooled there.
location: Option<SpecLocation>