File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 2
2
3
3
// The example validates JSON text from stdin with a JSON schema specified in the argument.
4
4
5
+ #define RAPIDJSON_HAS_STDSTRING 1
6
+
5
7
#include " rapidjson/error/en.h"
6
8
#include " rapidjson/filereadstream.h"
7
9
#include " rapidjson/schema.h"
Original file line number Diff line number Diff line change @@ -2118,7 +2118,7 @@ class GenericSchemaDocument {
2118
2118
SchemaType* typeless_;
2119
2119
internal::Stack<Allocator> schemaMap_; // Stores created Pointer -> Schemas
2120
2120
internal::Stack<Allocator> schemaRef_; // Stores Pointer(s) from $ref(s) until resolved
2121
- SValue uri_;
2121
+ SValue uri_; // Schema document URI
2122
2122
};
2123
2123
2124
2124
// ! GenericSchemaDocument using Value type.
Original file line number Diff line number Diff line change @@ -2136,7 +2136,7 @@ class RemoteSchemaDocumentProvider : public IGenericRemoteSchemaDocumentProvider
2136
2136
2137
2137
virtual const SchemaDocumentType* GetRemoteDocument (const char * uri, SizeType length) {
2138
2138
for (size_t i = 0 ; i < kCount ; i++)
2139
- if (typename SchemaDocumentType::SType (uri, length) == sd_[i]->GetURI ())
2139
+ if (typename SchemaDocumentType::SValue (uri, length) == sd_[i]->GetURI ())
2140
2140
return sd_[i];
2141
2141
return 0 ;
2142
2142
}
You can’t perform that action at this time.
0 commit comments