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

Move parts of lib/entity/ to wikidata-sdk #31

Open
nichtich opened this issue Dec 23, 2018 · 1 comment
Open

Move parts of lib/entity/ to wikidata-sdk #31

nichtich opened this issue Dec 23, 2018 · 1 comment

Comments

@nichtich
Copy link
Contributor

validate_and_format_data.js and included parts should be moved to wikidata-sdk and made public to expand the flexible format of edit-entity to the more strict, consistent and verbose entity format. This is the opposite of simplify with additional reduction (see maxlath/wikibase-sdk#40). Maybe name it expand?

@maxlath
Copy link
Owner

maxlath commented May 1, 2021

Sorry for the late answer.

The problem with transferring this feature is that the format expansion done in wikibase-edit depends on fetching properties datatypes, while wikibase-sdk is purposefully not doing http requests internally, keeping it a dependency-free nodejs/browser agnostic lib. That said, wikibase-edit already has those capacities, and could maybe expose a function to do this expansion, independently from actually doing the edit. I would be curious to know your use-case: is that still a need you have?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants