Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
R
rapidjson
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
rapidjson
Commits
c79958a2
Commit
c79958a2
authored
Jun 29, 2016
by
Milo Yip
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix #670 remote schema provider document
parent
f51d7c9d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
schema.md
doc/schema.md
+2
-2
schema.zh-cn.md
doc/schema.zh-cn.md
+2
-2
No files found.
doc/schema.md
View file @
c79958a2
...
...
@@ -152,7 +152,7 @@ JSON Schema supports [`$ref` keyword](http://spacetelescope.github.io/understand
{
"$ref"
:
"definitions.json#/address"
}
~~~
As
`Schema
Validator
`
does not know how to resolve such URI, it needs a user-provided
`IRemoteSchemaDocumentProvider`
instance to do so.
As
`Schema
Document
`
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;
Schema
Validator validator(schema
, &provider);
Schema
Document schema(sd
, &provider);
~~~
## Conformance
...
...
doc/schema.zh-cn.md
View file @
c79958a2
...
...
@@ -152,7 +152,7 @@ JSON Schema 支持 [`$ref` 关键字](http://spacetelescope.github.io/understand
{
"$ref"
:
"definitions.json#/address"
}
~~~
由于
`Schema
Validator
`
并不知道如何处理那些 URI,它需要使用者提供一个
`IRemoteSchemaDocumentProvider`
的实例去处理。
由于
`Schema
Document
`
并不知道如何处理那些 URI,它需要使用者提供一个
`IRemoteSchemaDocumentProvider`
的实例去处理。
~~~
class MyRemoteSchemaDocumentProvider : public IRemoteSchemaDocumentProvider {
...
...
@@ -165,7 +165,7 @@ public:
// ...
MyRemoteSchemaDocumentProvider provider;
Schema
Validator validator(schema
, &provider);
Schema
Document schema(sd
, &provider);
~~~
## 标准的符合程度
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment