diff options
Diffstat (limited to 'graphics/asymptote/LspCpp/third_party/rapidjson/doc')
-rw-r--r-- | graphics/asymptote/LspCpp/third_party/rapidjson/doc/features.md | 10 | ||||
-rw-r--r-- | graphics/asymptote/LspCpp/third_party/rapidjson/doc/schema.md | 8 |
2 files changed, 14 insertions, 4 deletions
diff --git a/graphics/asymptote/LspCpp/third_party/rapidjson/doc/features.md b/graphics/asymptote/LspCpp/third_party/rapidjson/doc/features.md index 0d79e7f892..4d159370ac 100644 --- a/graphics/asymptote/LspCpp/third_party/rapidjson/doc/features.md +++ b/graphics/asymptote/LspCpp/third_party/rapidjson/doc/features.md @@ -22,13 +22,15 @@ * RapidJSON should be fully RFC4627/ECMA-404 compliance. * Support JSON Pointer (RFC6901). * Support JSON Schema Draft v4. +* Support Swagger v2 schema. +* Support OpenAPI v3.0.x schema. * Support Unicode surrogate. * Support null character (`"\u0000"`) - * For example, `["Hello\u0000World"]` can be parsed and handled gracefully. There is API for getting/setting lengths of string. +* For example, `["Hello\u0000World"]` can be parsed and handled gracefully. There is API for getting/setting lengths of string. * Support optional relaxed syntax. - * Single line (`// ...`) and multiple line (`/* ... */`) comments (`kParseCommentsFlag`). - * Trailing commas at the end of objects and arrays (`kParseTrailingCommasFlag`). - * `NaN`, `Inf`, `Infinity`, `-Inf` and `-Infinity` as `double` values (`kParseNanAndInfFlag`) +* Single line (`// ...`) and multiple line (`/* ... */`) comments (`kParseCommentsFlag`). +* Trailing commas at the end of objects and arrays (`kParseTrailingCommasFlag`). +* `NaN`, `Inf`, `Infinity`, `-Inf` and `-Infinity` as `double` values (`kParseNanAndInfFlag`) * [NPM compliant](http://github.com/Tencent/rapidjson/blob/master/doc/npm.md). ## Unicode diff --git a/graphics/asymptote/LspCpp/third_party/rapidjson/doc/schema.md b/graphics/asymptote/LspCpp/third_party/rapidjson/doc/schema.md index 238d7a56ae..4da4474b2e 100644 --- a/graphics/asymptote/LspCpp/third_party/rapidjson/doc/schema.md +++ b/graphics/asymptote/LspCpp/third_party/rapidjson/doc/schema.md @@ -24,7 +24,15 @@ if (sd.Parse(schemaJson).HasParseError()) { // the schema is not a valid JSON. // ... } + SchemaDocument schema(sd); // Compile a Document to SchemaDocument +if (!schema.GetError().ObjectEmpty()) { + // there was a problem compiling the schema + StringBuffer sb; + Writer<StringBuffer> w(sb); + schema.GetError().Accept(w); + printf("Invalid schema: %s\n", sb.GetString()); +} // sd is no longer needed here. Document d; |