-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support dereferencing #41
Conversation
350f48c
to
56e5d52
Compare
@georgiana-b |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
@@ -133,15 +133,15 @@ By default, the gem uses the standard [Data Package Schema](http://specs.frictio | |||
The gem comes with schemas for the standard Data Package Schema, as well as the [Tabular Data Package Schema](http://specs.frictionlessdata.io/tabular-data-package/), and the [Fiscal Data Package Schema](http://fiscal.dataprotocols.org/spec/). These can be referred to via an identifier, expressed as a symbol. | |||
|
|||
```ruby | |||
package = DataPackage::Package.new(nil, :tabular) # Or :fiscal | |||
package = DataPackage::Package.new(nil, schema: 'tabular-data-package') # Or 'fiscal-data-package' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removing schema
argument will be in next chunk of changes? Because now it's a part of descriptor - descriptor.profile
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup, that part is in #43.
Fixes #38
Changes made in this PR:
remove support for JSON references in Schema
support for dereferencing an object's path and URL values
dereference Resource descriptor's
schema
anddialect
refactor Package class
remove unnecessary distinction between local, remote and inline Resources
I initially also developed support for JSON references, but that turned out to be useless for now. However, I pushed that code to feature/dereferencing-JSON-pointers in case it will be needed in the future.