-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* added ability to import schema from python module/package * updated docs and an error. This branch is to support #71 * fixed py dict from import is converted to string due to later processing of the schema, some misc warnings in docs * clarafied a point about python objects in the docs Authored-by: Glen.Nicholls <Glen.Nicholls@kratosdefense.com>
- Loading branch information
1 parent
5727d04
commit e6177b0
Showing
5 changed files
with
94 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
SCHEMA = { | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"title": "An example", | ||
"id": "http://example.com/schemas/example.json", | ||
"description": "This is just a tiny example of a schema rendered by `sphinx-jsonschema <http://github.com/lnoor/sphinx-jsonschema>`_.\n\nYes that's right you can use *reStructuredText* in a description.", | ||
"type": "string", | ||
"minLength": 10, | ||
"maxLength": 100, | ||
"pattern": "^[A-Z]+$" | ||
} |