Skip to content
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

[fix] Allow Resource to have 'url' member #107

Merged
merged 1 commit into from
Jul 16, 2019
Merged

Conversation

ntucker
Copy link
Collaborator

@ntucker ntucker commented Jul 16, 2019

Fixes #106

This maintains url's type as readonly string unless overridden. However, technically in JS people can set (this is fine as we don't enforce JS-side anyway). Setting JS side is necessary to make setting default property work. Technically this still limits descendants to only using string type for url. However, this seems unlikely to be a problem as I can't imagine something named 'url' being a number. Most likely any issues with this will be if someone uses an object type. Will revisit if that becomes an issue.

@ntucker ntucker merged commit 4cbdb8e into master Jul 16, 2019
@ntucker ntucker deleted the allow-url-property branch July 16, 2019 03:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Using a url property in a resource response
2 participants