1.0.0-alpha.5
This commit is contained in:
		
							parent
							
								
									89a34e7a63
								
							
						
					
					
						commit
						4b7e9ace01
					
				
					 6 changed files with 9 additions and 8 deletions
				
			
		| 
						 | 
				
			
			@ -256,6 +256,7 @@ println!("{}", serde_json::to_string_pretty(&schema).unwrap());
 | 
			
		|||
 | 
			
		||||
## Feature Flags
 | 
			
		||||
 | 
			
		||||
- `std` (enabled by default) - implements `JsonSchema` for types in the rust standard library (`JsonSchema` is still implemented on types in `core` and `alloc`, even when this feature is disabled). Disable this feature to use schemars in `no_std` environments.
 | 
			
		||||
- `derive` (enabled by default) - provides `#[derive(JsonSchema)]` macro
 | 
			
		||||
- `preserve_order` - keep the order of struct fields in `Schema` properties
 | 
			
		||||
- `raw_value` - implements `JsonSchema` for `serde_json::value::RawValue` (enables the serde_json `raw_value` feature)
 | 
			
		||||
| 
						 | 
				
			
			@ -280,5 +281,5 @@ For example, to implement `JsonSchema` on types from `chrono`, enable it as a fe
 | 
			
		|||
 | 
			
		||||
```toml
 | 
			
		||||
[dependencies]
 | 
			
		||||
schemars = { version = "1.0.0-alpha.4", features = ["chrono04"] }
 | 
			
		||||
schemars = { version = "1.0.0-alpha.5", features = ["chrono04"] }
 | 
			
		||||
```
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue