mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-08 22:20:56 +00:00
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:
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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(); }
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
{
|
||||
/**
|
||||
|
||||
@@ -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']
|
||||
|
||||
|
||||
Reference in New Issue
Block a user