Escape characters in jsonschema descriptions (#5644)

* Escape JSON Schema comments

* Add quotes to monster comment

Thus exercising the JSON Schema comment escape support.
This commit is contained in:
Marc Butler
2020-03-13 06:10:30 +11:00
committed by GitHub
parent 45a2b07cbd
commit 0e3fdd0eea
19 changed files with 25 additions and 20 deletions

View File

@@ -1028,7 +1028,7 @@ impl<'a: 'b, 'b> ReferrableBuilder<'a, 'b> {
pub enum MonsterOffset {}
#[derive(Copy, Clone, Debug, PartialEq)]
/// an example documentation comment: monster object
/// an example documentation comment: "monster object"
pub struct Monster<'a> {
pub _tab: flatbuffers::Table<'a>,
}