This commit is contained in:
Piotr Siuszko 2025-07-04 09:31:26 +02:00
parent 59cb4b6dc7
commit 15125a3de5
2 changed files with 5 additions and 5 deletions

View File

@ -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`].
#[serde(skip_serializing_if = "Vec::is_empty", default)]
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)]
pub kind: Option<SchemaKind>,
/// 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)]
pub enum SchemaKind {
/// Struct

View File

@ -849,11 +849,11 @@ pub enum InternalSchemaType {
EnumVariant(VariantInfo),
/// Holds named fields for struct, tuple, and tuple struct types.
FieldsHolder(FieldsInformation),
/// Represents an Optional type (e.g., Option<T>).
/// Represents an Optional type (e.g., `Option<T>`).
Optional {
/// Generic information about the wrapped type T in Option<T>.
/// Generic information about the wrapped type `T` in `Option<T>`.
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>,
},
/// Represents a Map type (e.g., `HashMap`<K, V>).