Skip to content

Leinnan/bevy_remote_ext

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Bevy remote ext

Custom version of bevy_remote package, with focus on better support of JSON Schema draft 2020-12.

End goal is making it better support the standard and being able to use schemas in various IDEs for content validation.

To use this package, add it to your Cargo.toml file (remember to remove the original bevy_remote dependency/feature):

[dependencies]
bevy_remote = {git = "https://github.com/Leinnan/bevy_remote_ext.git"}

Using

If you have asset that are reflectable Rust type, you can call export_type_json_schema from TypeRegistrySchemaReader trait for that type and save the result in file and specify in IDE.

Like here: VSCode

ReflectJsonSchema

Some libraries are implementing custom serialization, like glam for various types. While I did not found the way to detect that, in this version we can add provide the schema for those types yourself, instead of relying on the version autogenerated based on the reflect info. Then it can be used like that : app.register_type_data::<glam::Vec3, ReflectJsonSchema>();.

About

Custom version of bevy_remote, with better schema support

Resources

License

MIT and 2 other licenses found

Licenses found

MIT
LICENSE
Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages