Skip to content

Commit

Permalink
Fix Tencent#670 remote schema provider document
Browse files Browse the repository at this point in the history
  • Loading branch information
miloyip committed Jun 29, 2016
1 parent f51d7c9 commit c79958a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions doc/schema.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -165,7 +165,7 @@ public:
// ...
MyRemoteSchemaDocumentProvider provider;
SchemaValidator validator(schema, &provider);
SchemaDocument schema(sd, &provider);
~~~

## Conformance
Expand Down
4 changes: 2 additions & 2 deletions doc/schema.zh-cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -165,7 +165,7 @@ public:
// ...
MyRemoteSchemaDocumentProvider provider;
SchemaValidator validator(schema, &provider);
SchemaDocument schema(sd, &provider);
~~~

## 标准的符合程度
Expand Down

0 comments on commit c79958a

Please sign in to comment.