• Home
  • Raw
  • Download

Lines Matching refs:Indent

164   std::string Indent(int indent) const {  in Indent()  function in flatbuffers::jsons::JsonSchemaGenerator
173 code_ += Indent(1) + in generate()
176 code_ += Indent(1) + "\"definitions\": {" + NewLine(); in generate()
179 code_ += Indent(2) + "\"" + GenFullName(*e) + "\" : {" + NewLine(); in generate()
180 code_ += Indent(3) + GenType("string") + "," + NewLine(); in generate()
181 auto enumdef(Indent(3) + "\"enum\": ["); in generate()
189 code_ += Indent(2) + "}," + NewLine(); // close type in generate()
194 code_ += Indent(2) + "\"" + GenFullName(structure) + "\" : {" + NewLine(); in generate()
195 code_ += Indent(3) + GenType("object") + "," + NewLine(); in generate()
209 Indent(3) + "\"description\" : " + description + "," + NewLine(); in generate()
211 code_ += Indent(3) + "\"properties\" : {" + NewLine(); in generate()
218 arrayInfo = "," + NewLine() + Indent(8) + "\"minItems\": " + in generate()
220 NewLine() + Indent(8) + "\"maxItems\": " + in generate()
226 "," + NewLine() + Indent(8) + "\"deprecated\" : true,"; in generate()
228 std::string typeLine = Indent(4) + "\"" + property->name + "\""; in generate()
229 typeLine += " : {" + NewLine() + Indent(8); in generate()
233 typeLine += NewLine() + Indent(7) + "}"; in generate()
237 code_ += Indent(3) + "}," + NewLine(); // close properties in generate()
244 auto required_string(Indent(3) + "\"required\" : ["); in generate()
255 code_ += Indent(3) + "\"additionalProperties\" : false" + NewLine(); in generate()
256 auto closeType(Indent(2) + "}"); in generate()
260 code_ += Indent(1) + "}," + NewLine(); // close definitions in generate()
263 code_ += Indent(1) + "\"$ref\" : \"#/definitions/" + in generate()