pub struct NamedType {Show 13 fields
pub id: String,
pub original_name: Option<String>,
pub documentation: Option<String>,
pub title: Option<String>,
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>§documentation: Option<String>Long-form schema description (description in JSON Schema).
title: Option<String>Short human label (title in JSON Schema). Doc generators and IDE
hover surface it; populated verbatim, never derived.
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>