-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This updates to the latest resource model format, which includes the following changes: 1. `belongsTo` references are now named `has` 2. `subResources` is replaced by two-way `has` references 3. Identifier and parameter definitions are refactored: * `source` is now one of `name`, `path` or `value` * `sourceType` is now `source` * A new source of `input` is added for user-supplied input Our interface remains the same, but the underlying JSON files have changed and our factory code and documentation are somewhat simplified. The code that handles identifiers/parameters is a bit more complex due to having to check several keys in the dictionary based on the source. The model still exposes subresources and references as separate concepts. Due to circular references, resource instances now lazy-load the subresource class when needed. Tests and documentation have been updated to reflect these changes.
- Loading branch information
1 parent
59136a4
commit 6b6cf76
Showing
22 changed files
with
2,437 additions
and
1,262 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,7 @@ tests/.coverage | |
# Test state / virtualenvs | ||
.tox | ||
.coverage | ||
cover | ||
|
||
# Common virtualenv names | ||
venv | ||
|
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
Oops, something went wrong.