Docs fix
This commit is contained in:
parent
59cb4b6dc7
commit
15125a3de5
@ -155,7 +155,7 @@ pub struct JsonSchemaBevyType {
|
|||||||
/// Bevy specific field, names of the types that type reflects. Mapping of the names to the data types is provided by [`SchemaTypesMetadata`].
|
/// Bevy specific field, names of the types that type reflects. Mapping of the names to the data types is provided by [`SchemaTypesMetadata`].
|
||||||
#[serde(skip_serializing_if = "Vec::is_empty", default)]
|
#[serde(skip_serializing_if = "Vec::is_empty", default)]
|
||||||
pub reflect_type_data: Vec<Cow<'static, str>>,
|
pub reflect_type_data: Vec<Cow<'static, str>>,
|
||||||
/// Bevy specific field, [`TypeInfo`] type mapping.
|
/// Bevy specific field, [`bevy_reflect::TypeInfo`] type mapping.
|
||||||
#[serde(skip_serializing_if = "Option::is_none", default)]
|
#[serde(skip_serializing_if = "Option::is_none", default)]
|
||||||
pub kind: Option<SchemaKind>,
|
pub kind: Option<SchemaKind>,
|
||||||
/// JSON Schema specific field.
|
/// JSON Schema specific field.
|
||||||
@ -288,7 +288,7 @@ impl From<JsonSchemaBevyType> for JsonSchemaVariant {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Kind of json schema, maps [`TypeInfo`] type
|
/// Kind of json schema, maps [`bevy_reflect::TypeInfo`] type
|
||||||
#[derive(Debug, Serialize, Deserialize, Clone, PartialEq, Default, Reflect)]
|
#[derive(Debug, Serialize, Deserialize, Clone, PartialEq, Default, Reflect)]
|
||||||
pub enum SchemaKind {
|
pub enum SchemaKind {
|
||||||
/// Struct
|
/// Struct
|
||||||
|
@ -849,11 +849,11 @@ pub enum InternalSchemaType {
|
|||||||
EnumVariant(VariantInfo),
|
EnumVariant(VariantInfo),
|
||||||
/// Holds named fields for struct, tuple, and tuple struct types.
|
/// Holds named fields for struct, tuple, and tuple struct types.
|
||||||
FieldsHolder(FieldsInformation),
|
FieldsHolder(FieldsInformation),
|
||||||
/// Represents an Optional type (e.g., Option<T>).
|
/// Represents an Optional type (e.g., `Option<T>`).
|
||||||
Optional {
|
Optional {
|
||||||
/// Generic information about the wrapped type T in Option<T>.
|
/// Generic information about the wrapped type `T` in `Option<T>`.
|
||||||
generic: GenericInfo,
|
generic: GenericInfo,
|
||||||
/// Schema type information for the wrapped type T in Option<T>.
|
/// Schema type information for the wrapped type `T` in `Option<T>`.
|
||||||
schema_type_info: Box<SchemaTypeInfo>,
|
schema_type_info: Box<SchemaTypeInfo>,
|
||||||
},
|
},
|
||||||
/// Represents a Map type (e.g., `HashMap`<K, V>).
|
/// Represents a Map type (e.g., `HashMap`<K, V>).
|
||||||
|
Loading…
Reference in New Issue
Block a user