Commit c79958a2 authored by Milo Yip's avatar Milo Yip

Fix #670 remote schema provider document

parent f51d7c9d
......@@ -152,7 +152,7 @@ JSON Schema supports [`$ref` keyword](http://spacetelescope.github.io/understand
{ "$ref": "definitions.json#/address" }
~~~
As `SchemaValidator` does not know how to resolve such URI, it needs a user-provided `IRemoteSchemaDocumentProvider` instance to do so.
As `SchemaDocument` does not know how to resolve such URI, it needs a user-provided `IRemoteSchemaDocumentProvider` instance to do so.
~~~
class MyRemoteSchemaDocumentProvider : public IRemoteSchemaDocumentProvider {
......@@ -165,7 +165,7 @@ public:
// ...
MyRemoteSchemaDocumentProvider provider;
SchemaValidator validator(schema, &provider);
SchemaDocument schema(sd, &provider);
~~~
## Conformance
......
......@@ -152,7 +152,7 @@ JSON Schema 支持 [`$ref` 关键字](http://spacetelescope.github.io/understand
{ "$ref": "definitions.json#/address" }
~~~
由于 `SchemaValidator` 并不知道如何处理那些 URI,它需要使用者提供一个 `IRemoteSchemaDocumentProvider` 的实例去处理。
由于 `SchemaDocument` 并不知道如何处理那些 URI,它需要使用者提供一个 `IRemoteSchemaDocumentProvider` 的实例去处理。
~~~
class MyRemoteSchemaDocumentProvider : public IRemoteSchemaDocumentProvider {
......@@ -165,7 +165,7 @@ public:
// ...
MyRemoteSchemaDocumentProvider provider;
SchemaValidator validator(schema, &provider);
SchemaDocument schema(sd, &provider);
~~~
## 标准的符合程度
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment