Lines Matching refs:string
24 static std::string GeneratedFileName(const std::string &path,
25 const std::string &file_name) {
31 std::string GenNativeType(BaseType type) {
47 return "string";
53 template <class T> std::string GenFullName(const T *enum_def) {
54 std::string full_name;
63 template <class T> std::string GenTypeRef(const T *enum_def) {
67 std::string GenType(const std::string &name) {
71 std::string GenType(const Type &type) {
78 std::string typeline;
92 std::string union_type_string("\"anyOf\": [");
121 JsonSchemaGenerator(const Parser &parser, const std::string &path,
122 const std::string &file_name)
137 code_ += " " + GenType("string") + ",";
138 std::string enumdef(" \"enum\": [");
157 std::string comment;
172 std::string typeLine(" \"" + property->name + "\" : { " + GenType(property->value.type) + " }");
185 std::string required_string(" \"required\" : [");
198 std::string closeType(" }");
211 const std::string file_path = GeneratedFileName(path_, file_name_);
212 const std::string final_code = code_.ToString();
218 bool GenerateJsonSchema(const Parser &parser, const std::string &path,
219 const std::string &file_name) {