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

null Sources properties written to datapackage.json #209

Closed
Stephen-Gates opened this issue Nov 12, 2017 · 7 comments
Closed

null Sources properties written to datapackage.json #209

Stephen-Gates opened this issue Nov 12, 2017 · 7 comments
Labels
env:MacOS This issue is related to running Data Curator on macOS env:Windows This issue is related to running Data Curator on Windows est:Minor Minor effort to implement fn:Export priority:High problem:Bug A bug
Milestone

Comments

@Stephen-Gates
Copy link
Contributor

Expected Behaviour (for problems)

properties without values entered in the properties panel are not written to datapackage.json

Current Behaviour

data package sources properties without values entered in the properties panel are written to datapackage.json

Steps to Reproduce

When reporting a problem, provide a set of steps so others can reproduce the problem.

  1. Create a data package - don't enter optional or recommended property values
  2. Export data package
  3. Inspect datapackage.json

Your Environment

  • Data Curator version 0.5.0
  • Operating System and version macOS High Sierra 10.13
@Stephen-Gates Stephen-Gates added env:MacOS This issue is related to running Data Curator on macOS fn:Export priority:Low problem:Bug A bug labels Nov 12, 2017
@Stephen-Gates Stephen-Gates added this to the v0.7.0 milestone Nov 13, 2017
@Stephen-Gates Stephen-Gates modified the milestones: v0.7.0, v1.x.x Dec 1, 2017
@Stephen-Gates Stephen-Gates added the env:Windows This issue is related to running Data Curator on Windows label Dec 2, 2017
@Stephen-Gates Stephen-Gates changed the title export data package contains sources when none are defined in the package properties null Sources properties written to datapackage.json Dec 31, 2017
@Stephen-Gates
Copy link
Contributor Author

Nulls in the Sources property is invalid. The spec states that each Source must have a title.

@Stephen-Gates Stephen-Gates modified the milestones: v1.x.x, 0.9.0 Jan 10, 2018
@ghost ghost added the est:Minor Minor effort to implement label Jan 10, 2018
@ghost
Copy link

ghost commented Jan 18, 2018

@Stephen-Gates,
So does that rule (ie: source must be present and must have at least title) also apply to each table?

@Stephen-Gates
Copy link
Contributor Author

@ghost ghost closed this as completed in 11270bb Jan 18, 2018
@Stephen-Gates
Copy link
Contributor Author

@mattRedBox Sources is optional as a whole but if it has any values it must include a title.

This validation is too strict

screenshot 2018-01-19 20 31 04

@Stephen-Gates Stephen-Gates reopened this Jan 19, 2018
@ghost
Copy link

ghost commented Jan 24, 2018

Hi @Stephen-Gates
Just tested this again and I put in the requirement because of the return from frictionless libraries. of error message:

"Descriptor validation error:
Array is too short (0), minimum 1
at "/sources" in descriptor and
at "/properties/sources/minItems" in profile"

if either table or package does not have any sources.

@Stephen-Gates
Copy link
Contributor Author

thanks @mattRedBox can you raise an issue for that as it appears to clash with the spec

@ghost
Copy link

ghost commented Jan 24, 2018

Sorry - that one's on me :P
We were sending through an empty array of sources, so json validation at frictionless end was simply reporting cannot have empty array.

@ghost ghost closed this as completed in e467121 Jan 24, 2018
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
env:MacOS This issue is related to running Data Curator on macOS env:Windows This issue is related to running Data Curator on Windows est:Minor Minor effort to implement fn:Export priority:High problem:Bug A bug
Projects
None yet
Development

No branches or pull requests

1 participant