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

@@ -9,7 +9,7 @@ using global::System;
using global::System.Collections.Generic;
using global::FlatBuffers;
/// an example documentation comment: monster object
/// an example documentation comment: "monster object"
public struct Monster : IFlatbufferObject
{
private Table __p;

View File

@@ -8,7 +8,7 @@ import (
MyGame "MyGame"
)
/// an example documentation comment: monster object
/// an example documentation comment: "monster object"
type MonsterT struct {
Pos *Vec3T
Mana int16

View File

@@ -9,7 +9,7 @@ import com.google.flatbuffers.*;
@SuppressWarnings("unused")
/**
* an example documentation comment: monster object
* an example documentation comment: "monster object"
*/
public final class Monster extends Table {
public static void ValidateVersion() { Constants.FLATBUFFERS_1_11_1(); }

View File

@@ -7,7 +7,7 @@ import kotlin.math.sign
import com.google.flatbuffers.*
/**
* an example documentation comment: monster object
* an example documentation comment: "monster object"
*/
@Suppress("unused")
@ExperimentalUnsignedTypes

View File

@@ -4,7 +4,7 @@
local flatbuffers = require('flatbuffers')
-- an example documentation comment: monster object
-- an example documentation comment: "monster object"
local Monster = {} -- the module
local Monster_mt = {} -- the class metatable

View File

@@ -8,7 +8,7 @@ use \Google\FlatBuffers\Table;
use \Google\FlatBuffers\ByteBuffer;
use \Google\FlatBuffers\FlatBufferBuilder;
/// an example documentation comment: monster object
/// an example documentation comment: "monster object"
class Monster extends Table
{
/**

View File

@@ -6,7 +6,7 @@ import flatbuffers
from flatbuffers.compat import import_numpy
np = import_numpy()
# an example documentation comment: monster object
# an example documentation comment: "monster object"
class Monster(object):
__slots__ = ['_tab']